From 0c1b767a76d68d0d7f2e0aa053895465a42d86d4 Mon Sep 17 00:00:00 2001 From: samgildea Date: Sat, 17 Apr 2021 19:06:48 -0400 Subject: [PATCH] #49 merging master and updating sun icon --- src/components/homepage/index.js | 2 +- src/schemas/Homepage.json | 250 ++++++++++++++++--------------- 2 files changed, 133 insertions(+), 119 deletions(-) diff --git a/src/components/homepage/index.js b/src/components/homepage/index.js index f94880b..67ed1e9 100644 --- a/src/components/homepage/index.js +++ b/src/components/homepage/index.js @@ -22,7 +22,7 @@ import { } from "./index-styles" import TreeIcon from "../../vectors/renewable-tree-icon.svg" - +import SunIcon from "../../vectors/sun-icon.svg" import { Helmet } from "react-helmet" export default function HomePage({ data }) { diff --git a/src/schemas/Homepage.json b/src/schemas/Homepage.json index 3ea2daf..d558a72 100644 --- a/src/schemas/Homepage.json +++ b/src/schemas/Homepage.json @@ -1,166 +1,172 @@ { - "Main": {}, - "Hero Section": { - "hero_headline": { - "type": "Text", - "config": { - "label": "Hero Headline" + "Main" : { }, + "Hero Section" : { + "hero_headline" : { + "type" : "Text", + "config" : { + "label" : "Hero Headline" } }, - "hero_subtext": { - "type": "Text", - "config": { - "label": "Hero Subtext" + "hero_subtext" : { + "type" : "Text", + "config" : { + "label" : "Hero Subtext" } }, - "hero_cta_text": { - "type": "Text", - "config": { - "label": "Hero Button Text" + "hero_cta_text" : { + "type" : "Text", + "config" : { + "label" : "Hero Button Text" } }, - "hero_button_destination": { - "type": "Link", - "config": { - "label": "Hero Button Destination" + "hero_button_destination" : { + "type" : "Link", + "config" : { + "label" : "Hero Button Destination" } }, - "hero_background_image": { - "type": "Image", - "config": { - "constraint": {}, - "thumbnails": [], - "label": "Hero Background Image" + "hero_background_image" : { + "type" : "Image", + "config" : { + "constraint" : { }, + "thumbnails" : [ ], + "label" : "Hero Background Image" } } }, - "Intro to Solar": { - "section_title": { - "type": "Text", - "config": { - "label": "Section title" + "Intro to Solar" : { + "section_title" : { + "type" : "Text", + "config" : { + "label" : "Section title" } }, - "section_description": { - "type": "Text", - "config": { - "label": "Section Description" + "section_description" : { + "type" : "Text", + "config" : { + "label" : "Section Description" } }, - "button_text": { - "type": "Text", - "config": { - "label": "Button Text" + "button_text" : { + "type" : "Text", + "config" : { + "label" : "Button Text" } }, - "button_destination": { - "type": "Link", - "config": { - "label": "Button Destination" + "button_destination" : { + "type" : "Link", + "config" : { + "label" : "Button Destination" } }, - "section_image": { - "type": "Image", - "config": { - "constraint": {}, - "thumbnails": [], - "label": "Section Image" + "section_image_alt" : { + "type" : "Text", + "config" : { + "label" : "section image alt" + } + }, + "section_image" : { + "type" : "Image", + "config" : { + "constraint" : { }, + "thumbnails" : [ ], + "label" : "Section Image" } } }, - "Impact Section": { - "impact_section_title": { - "type": "Text", - "config": { - "label": "Impact Section Title" - } - }, - "impact_description": { - "type": "Text", - "config": { - "label": "Impact Description" - } - }, - "impact_image": { - "type": "Image", - "config": { - "constraint": {}, - "thumbnails": [], - "label": "Impact Image" - } - }, - "impact_example": { - "type": "Group", - "config": { - "fields": { - "impact_example_image": { - "type": "Image", - "config": { - "constraint": {}, - "thumbnails": [], - "label": "Impact Example Image" + "Impact Section" : { + "impact_section_title" : { + "type" : "Text", + "config" : { + "label" : "Impact Section Title" + } + }, + "impact_description" : { + "type" : "Text", + "config" : { + "label" : "Impact Description" + } + }, + "impact_image" : { + "type" : "Image", + "config" : { + "constraint" : { }, + "thumbnails" : [ ], + "label" : "Impact Image" + } + }, + "impact_example" : { + "type" : "Group", + "config" : { + "fields" : { + "impact_example_image" : { + "type" : "Image", + "config" : { + "constraint" : { }, + "thumbnails" : [ ], + "label" : "Impact Example Image" } }, - "impact_big_text": { - "type": "Text", - "config": { - "label": "Impact Big Text" + "impact_big_text" : { + "type" : "Text", + "config" : { + "label" : "Impact Big Text" } }, - "impact_small_text": { - "type": "Text", - "config": { - "label": "Impact Small Text" + "impact_small_text" : { + "type" : "Text", + "config" : { + "label" : "Impact Small Text" } } }, - "label": "Impact Example" + "label" : "Impact Example" } } }, - "Email Section": { - "email_eyebrow_heading": { - "type": "Text", - "config": { - "label": "Email Eyebrow Heading" + "Email Section" : { + "email_eyebrow_heading" : { + "type" : "Text", + "config" : { + "label" : "Email Eyebrow Heading" } }, - "enter_email_label": { - "type": "Text", - "config": { - "label": "Enter Email Label" + "enter_email_label" : { + "type" : "Text", + "config" : { + "label" : "Enter Email Label" } }, - "email_description": { - "type": "Text", - "config": { - "label": "Email Description" + "email_description" : { + "type" : "Text", + "config" : { + "label" : "Email Description" } }, - "sign_up_button_text": { - "type": "Text", - "config": { - "label": "Sign Up Button Text" + "sign_up_button_text" : { + "type" : "Text", + "config" : { + "label" : "Sign Up Button Text" } }, - "sign_up_button_destination": { - "type": "Link", - "config": { - "label": "Sign Up Button Destination" + "sign_up_button_destination" : { + "type" : "Link", + "config" : { + "label" : "Sign Up Button Destination" } } }, - "Solutions": { - "solutions_header": { - "type": "Text", - "config": { - "label": "Solutions Header" + "Solutions" : { + "solutions_header" : { + "type" : "Text", + "config" : { + "label" : "Solutions Header" } }, - "use_cases": { - "type": "Group", - "config": { - "fields": { + "use_cases" : { + "type" : "Group", + "config" : { + "fields" : { "use_case" : { "type" : "Link", "config" : { @@ -170,7 +176,15 @@ } } }, - "label": "Use Cases" + "label" : "Use Cases" + } + }, + "use" : { + "type" : "Link", + "config" : { + "select" : "document", + "customtypes" : [ "use_case" ], + "label" : "use" } } }