Skip to content

Commit

Permalink
53 functionality for adding partner data in strapi (#55)
Browse files Browse the repository at this point in the history
* feat(backend): ✨ Create partner content type

* feat(frontend): ✨ Map backend partner data to partner page

Used graphql query to map backend partner data to the partner page

* style(frontend): 💄 Change the width for all cards in partner page to have the same width.

* fix(frontend): 🐛 Export edge runtime

---------

Co-authored-by: Lucas Tran <lucastran1107@gmail.com>
  • Loading branch information
2 people authored and GitHub committed Jan 29, 2024
1 parent 04e1c42 commit 6b7e1ae
Show file tree
Hide file tree
Showing 12 changed files with 2,266 additions and 253 deletions.
35 changes: 35 additions & 0 deletions backend/src/api/partner/content-types/partner/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"kind": "collectionType",
"collectionName": "partners",
"info": {
"singularName": "partner",
"pluralName": "partners",
"displayName": "Partner"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"partnerName": {
"type": "string",
"required": true
},
"logoUrl": {
"type": "string"
},
"logoImage": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
},
"websiteUrl": {
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions backend/src/api/partner/controllers/partner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* partner controller
*/

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

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

0 comments on commit 6b7e1ae

Please sign in to comment.