Skip to content

Commit

Permalink
37 create initial people page (#61)
Browse files Browse the repository at this point in the history
* feat(frontend): ✨ make initial people page

* style(frontend): 💄 Add some styling to projects table

* feat(frontend): ✨ add people data query to team page

* feat(frontend): ✨ Add people to peoples page and put them in categories

Co-authored-by: Mats <mnyflot@gmail.com>

* refactor(frontend): ♻️ Fix eslint and prettier errors

---------

Co-authored-by: Mats <mnyflot@gmail.com>
Co-authored-by: Jakob Grøtan Gregusson <jakobgg@stud.ntnu.no>
  • Loading branch information
3 people authored and GitHub committed Jan 31, 2024
1 parent d9e39c3 commit c9db0df
Show file tree
Hide file tree
Showing 17 changed files with 4,296 additions and 332 deletions.
51 changes: 51 additions & 0 deletions backend/src/api/person/content-types/person/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"kind": "collectionType",
"collectionName": "people",
"info": {
"singularName": "person",
"pluralName": "people",
"displayName": "person",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true
},
"workTitle": {
"type": "string",
"required": false
},
"employeeLink": {
"type": "string"
},
"profilePicture": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"profilePictureURL": {
"type": "string"
},
"role": {
"type": "enumeration",
"enum": [
"Researchers",
"PhD candidates",
"Engineers",
"Contact us"
],
"required": true
}
}
}
9 changes: 9 additions & 0 deletions backend/src/api/person/controllers/person.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* person controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::person.person');
Loading

0 comments on commit c9db0df

Please sign in to comment.