Skip to content

Commit

Permalink
created homepage content types
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreysmith committed May 12, 2022
1 parent 32068c0 commit cf8f674
Show file tree
Hide file tree
Showing 17 changed files with 343 additions and 26 deletions.
14 changes: 14 additions & 0 deletions app/dist/src/components/layout/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"collectionName": "components_layout_footers",
"info": {
"displayName": "footer",
"icon": "arrow-down"
},
"options": {},
"attributes": {
"text": {
"type": "richtext",
"default": "If you’d like to report any mistakes, inconsistencies or omissions please let us know by writing an e-mail to [email protected]. We’ll do our best to integrate your feedback."
}
}
}
24 changes: 24 additions & 0 deletions app/dist/src/components/layout/navbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"collectionName": "components_layout_navbars",
"info": {
"displayName": "navbar",
"icon": "bible"
},
"options": {},
"attributes": {
"bannerText": {
"type": "richtext",
"default": "If you are fleeing war in Ukraine, you can access financial support from UNHCR. Details here."
},
"links": {
"type": "component",
"repeatable": true,
"component": "links.link"
},
"partners": {
"type": "component",
"repeatable": true,
"component": "links.partners"
}
}
}
20 changes: 20 additions & 0 deletions app/dist/src/components/links/link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collectionName": "components_links_links",
"info": {
"displayName": "link",
"icon": "expand-arrows-alt"
},
"options": {},
"attributes": {
"url": {
"type": "string",
"required": true,
"default": "https://www.google.com"
},
"text": {
"type": "string",
"required": true,
"default": "Google"
}
}
}
23 changes: 23 additions & 0 deletions app/dist/src/components/links/partners.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"collectionName": "components_links_partners",
"info": {
"displayName": "Partners",
"icon": "address-book"
},
"options": {},
"attributes": {
"url": {
"type": "string",
"required": true,
"default": "https://www.google.com"
},
"logo": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": true,
"required": true
}
}
}
20 changes: 20 additions & 0 deletions app/dist/src/components/meta/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collectionName": "components_meta_metadata",
"info": {
"displayName": "metadata",
"icon": "asterisk"
},
"options": {},
"attributes": {
"metaTitle": {
"type": "string",
"default": "Title",
"required": true
},
"metaDescription": {
"type": "string",
"required": true,
"default": "Description"
}
}
}
26 changes: 26 additions & 0 deletions app/dist/src/components/section/hero-right-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"collectionName": "components_section_hero_right_images",
"info": {
"displayName": "Hero Right Image",
"icon": "address-card"
},
"options": {},
"attributes": {
"title": {
"type": "string",
"default": "Ukrainians fleeing war at home are welcomed to Romania",
"required": true
},
"description": {
"type": "richtext",
"default": "Anybody fleeing Ukraine can enter Romania through any of the official border crossings. On this platform created by Code for Romania in partnership with the Department of Emergency Situations of the Ministry of Internal Affairs, the UN Refugee Agency, the International Organization for Migration and the Romanian National Council for Refugees civilians fleeing the war in Ukraine can find all relevant information about seeking protection in Romania."
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}
28 changes: 28 additions & 0 deletions app/dist/src/components/section/homepage-cta-icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"collectionName": "components_section_homepage_cta_icons",
"info": {
"displayName": "Homepage CTA Icons",
"icon": "american-sign-language-interpreting"
},
"options": {},
"attributes": {
"title": {
"type": "string",
"required": true,
"default": "Google"
},
"url": {
"type": "string",
"default": "https://www.google.com",
"required": true
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
}
}
}
15 changes: 15 additions & 0 deletions app/dist/src/components/section/three-by-one-cta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"collectionName": "components_section_three_by_one_ctas",
"info": {
"displayName": "Three By One CTA",
"icon": "atom"
},
"options": {},
"attributes": {
"HomepageCTAIcons": {
"type": "component",
"repeatable": true,
"component": "section.homepage-cta-icons"
}
}
}
29 changes: 3 additions & 26 deletions app/src/admin/app.example.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@
export default {
config: {
locales: [
// 'ar',
// 'fr',
// 'cs',
// 'de',
// 'dk',
// 'es',
// 'he',
// 'id',
// 'it',
// 'ja',
// 'ko',
// 'ms',
// 'nl',
// 'no',
// 'pl',
// 'pt-BR',
// 'pt',
// 'ru',
// 'sk',
// 'sv',
// 'th',
// 'tr',
// 'uk',
// 'vi',
// 'zh-Hans',
// 'zh',
'es',
'ru',
'ua'
],
},
bootstrap(app) {
Expand Down
14 changes: 14 additions & 0 deletions app/src/components/layout/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"collectionName": "components_layout_footers",
"info": {
"displayName": "footer",
"icon": "arrow-down"
},
"options": {},
"attributes": {
"text": {
"type": "richtext",
"default": "If you’d like to report any mistakes, inconsistencies or omissions please let us know by writing an e-mail to [email protected]. We’ll do our best to integrate your feedback."
}
}
}
24 changes: 24 additions & 0 deletions app/src/components/layout/navbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"collectionName": "components_layout_navbars",
"info": {
"displayName": "navbar",
"icon": "bible"
},
"options": {},
"attributes": {
"bannerText": {
"type": "richtext",
"default": "If you are fleeing war in Ukraine, you can access financial support from UNHCR. Details here."
},
"links": {
"type": "component",
"repeatable": true,
"component": "links.link"
},
"partners": {
"type": "component",
"repeatable": true,
"component": "links.partners"
}
}
}
20 changes: 20 additions & 0 deletions app/src/components/links/link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collectionName": "components_links_links",
"info": {
"displayName": "link",
"icon": "expand-arrows-alt"
},
"options": {},
"attributes": {
"url": {
"type": "string",
"required": true,
"default": "https://www.google.com"
},
"text": {
"type": "string",
"required": true,
"default": "Google"
}
}
}
23 changes: 23 additions & 0 deletions app/src/components/links/partners.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"collectionName": "components_links_partners",
"info": {
"displayName": "Partners",
"icon": "address-book"
},
"options": {},
"attributes": {
"url": {
"type": "string",
"required": true,
"default": "https://www.google.com"
},
"logo": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": true,
"required": true
}
}
}
20 changes: 20 additions & 0 deletions app/src/components/meta/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collectionName": "components_meta_metadata",
"info": {
"displayName": "metadata",
"icon": "asterisk"
},
"options": {},
"attributes": {
"metaTitle": {
"type": "string",
"default": "Title",
"required": true
},
"metaDescription": {
"type": "string",
"required": true,
"default": "Description"
}
}
}
26 changes: 26 additions & 0 deletions app/src/components/section/hero-right-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"collectionName": "components_section_hero_right_images",
"info": {
"displayName": "Hero Right Image",
"icon": "address-card"
},
"options": {},
"attributes": {
"title": {
"type": "string",
"default": "Ukrainians fleeing war at home are welcomed to Romania",
"required": true
},
"description": {
"type": "richtext",
"default": "Anybody fleeing Ukraine can enter Romania through any of the official border crossings. On this platform created by Code for Romania in partnership with the Department of Emergency Situations of the Ministry of Internal Affairs, the UN Refugee Agency, the International Organization for Migration and the Romanian National Council for Refugees civilians fleeing the war in Ukraine can find all relevant information about seeking protection in Romania."
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}
28 changes: 28 additions & 0 deletions app/src/components/section/homepage-cta-icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"collectionName": "components_section_homepage_cta_icons",
"info": {
"displayName": "Homepage CTA Icons",
"icon": "american-sign-language-interpreting"
},
"options": {},
"attributes": {
"title": {
"type": "string",
"required": true,
"default": "Google"
},
"url": {
"type": "string",
"default": "https://www.google.com",
"required": true
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
}
}
}
15 changes: 15 additions & 0 deletions app/src/components/section/three-by-one-cta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"collectionName": "components_section_three_by_one_ctas",
"info": {
"displayName": "Three By One CTA",
"icon": "atom"
},
"options": {},
"attributes": {
"HomepageCTAIcons": {
"type": "component",
"repeatable": true,
"component": "section.homepage-cta-icons"
}
}
}

0 comments on commit cf8f674

Please sign in to comment.