Skip to content

Commit

Permalink
added component Team
Browse files Browse the repository at this point in the history
  • Loading branch information
volkram committed Oct 21, 2023
1 parent f955019 commit 2e708e2
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/api/about/content-types/about/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"blocks.follow",
"blocks.logo-grid",
"blocks.partner",
"blocks.brevo-newsletter-form"
"blocks.brevo-newsletter-form",
"blocks.team"
],
"pluginOptions": {
"i18n": {
Expand Down
6 changes: 5 additions & 1 deletion src/components/blocks/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
"collectionName": "components_blocks_intros",
"info": {
"icon": "align-center",
"displayName": "Intro"
"displayName": "Intro",
"description": ""
},
"options": {},
"attributes": {
"content": {
"type": "richtext",
"required": true
},
"align_left": {
"type": "boolean"
}
}
}
16 changes: 16 additions & 0 deletions src/components/blocks/team.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"collectionName": "components_blocks_teams",
"info": {
"displayName": "Team",
"icon": "user"
},
"options": {},
"attributes": {
"team_member": {
"displayName": "Team-Member",
"type": "component",
"repeatable": true,
"component": "team.team-member"
}
}
}
37 changes: 37 additions & 0 deletions src/components/team/team-member.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"collectionName": "components_team_team_members",
"info": {
"displayName": "Team-Member",
"icon": "user",
"description": ""
},
"options": {},
"attributes": {
"name": {
"type": "string",
"required": true
},
"position": {
"type": "string",
"required": true
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
},
"text": {
"type": "richtext"
},
"email": {
"type": "email",
"required": false
},
"phone": {
"type": "string"
}
}
}

0 comments on commit 2e708e2

Please sign in to comment.