-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
samgildea
committed
Apr 29, 2021
1 parent
a937839
commit 7733e13
Showing
2 changed files
with
118 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
// import { graphql } from "gatsby" | ||
import { graphql } from "gatsby" | ||
|
||
// import React from "react" | ||
// import Layout from "../components/layout" | ||
import React from "react" | ||
import Layout from "../components/layout" | ||
|
||
// export default function About({ data }) { | ||
// const aboutData = data.prismicAboutPage.data | ||
export default function About({ data }) { | ||
const aboutData = data.prismicAboutPage.data | ||
|
||
// return ( | ||
// <Layout> | ||
// <h1>{aboutData.company_background_section_heading}</h1> | ||
// </Layout> | ||
// ) | ||
// } | ||
return ( | ||
<Layout> | ||
<h1>{aboutData.company_background_section_heading}</h1> | ||
</Layout> | ||
) | ||
} | ||
|
||
// export const query = graphql` | ||
// query AboutQuery { | ||
// prismicAboutPage { | ||
// data { | ||
// company { | ||
// company_name | ||
// } | ||
// company_background_description | ||
// company_background_section_heading | ||
// company_comparison_section_heading | ||
// company_team_heading | ||
// cta_button_destination | ||
// cta_button_text | ||
// industry_context_explanation { | ||
// explanation_description | ||
// } | ||
// industry_context_heading | ||
// mission_description | ||
// mission_heading | ||
// product_benefit { | ||
// product_benefit_title | ||
// } | ||
// product_feature { | ||
// product_feature_name | ||
// } | ||
// products_navigation_button_destination | ||
// products_navigation_button_text | ||
// team_member_information { | ||
// contact_button_destination | ||
// contact_button_text | ||
// team_member_description | ||
// team_member_title | ||
// } | ||
// } | ||
// } | ||
// } | ||
// ` | ||
export const query = graphql` | ||
query AboutQuery { | ||
prismicAboutPage { | ||
data { | ||
company { | ||
company_name | ||
} | ||
company_background_description | ||
company_background_section_heading | ||
company_comparison_section_heading | ||
company_team_heading | ||
cta_button_destination | ||
cta_button_text | ||
industry_context_explanation { | ||
explanation_description | ||
} | ||
industry_context_heading | ||
mission_description | ||
mission_heading | ||
product_benefit { | ||
product_benefit_title | ||
} | ||
product_feature { | ||
product_feature_name | ||
} | ||
products_navigation_button_destination | ||
products_navigation_button_text | ||
team_member_information { | ||
contact_button_destination | ||
contact_button_text | ||
team_member_description | ||
team_member_title | ||
} | ||
} | ||
} | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
// import React from "react" | ||
// import { graphql } from "gatsby" | ||
import React from "react" | ||
import { graphql } from "gatsby" | ||
|
||
// export default function ProductSection({ data }) { | ||
// const productSectionData = data.prismicProductPage.data | ||
export default function ProductSection({ data }) { | ||
const productSectionData = data.prismicProductPage.data | ||
|
||
// return ( | ||
// <div> | ||
// {/* Mapping over individual products. TODO: separate products based on category (homeowner or commerical) */} | ||
// {productSectionData.products.map(product => { | ||
// return <h1>{product.product.document.data.product_title}</h1> | ||
// })} | ||
// </div> | ||
// ) | ||
// } | ||
return ( | ||
<div> | ||
{/* Mapping over individual products. TODO: separate products based on category (homeowner or commerical) */} | ||
{productSectionData.products.map(product => { | ||
return <h1>{product.product.document.data.product_title}</h1> | ||
})} | ||
</div> | ||
) | ||
} | ||
|
||
// export const query = graphql` | ||
// query ProductPageQuery { | ||
// prismicProductPage { | ||
// data { | ||
// featured_product_description | ||
// featured_product_heading | ||
// featured_product_name | ||
// learn_more_button_text | ||
// learn_more_button_text_destination | ||
// model_scope { | ||
// model_scope_heading | ||
// } | ||
// product_page_main_heading | ||
export const query = graphql` | ||
query ProductPageQuery { | ||
prismicProductPage { | ||
data { | ||
featured_product_description | ||
featured_product_heading | ||
featured_product_name | ||
learn_more_button_text | ||
learn_more_button_text_destination | ||
model_scope { | ||
model_scope_heading | ||
} | ||
product_page_main_heading | ||
// products { | ||
// product { | ||
// document { | ||
// ... on PrismicProduct { | ||
// data { | ||
// product_title | ||
// button_destination | ||
// button_title | ||
// cta_title | ||
// feature_title | ||
// features { | ||
// feature_name | ||
// feature_description { | ||
// text | ||
// } | ||
// feature_image { | ||
// url | ||
// } | ||
// } | ||
// icon_section_title | ||
// icons { | ||
// icon_text | ||
// icon_image { | ||
// url | ||
// } | ||
// } | ||
// product_description { | ||
// text | ||
// } | ||
// product_images { | ||
// image { | ||
// url | ||
// } | ||
// } | ||
// product_type | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// ` | ||
products { | ||
product { | ||
document { | ||
... on PrismicProduct { | ||
data { | ||
product_title | ||
button_destination | ||
button_title | ||
cta_title | ||
feature_title | ||
features { | ||
feature_name | ||
feature_description { | ||
text | ||
} | ||
feature_image { | ||
url | ||
} | ||
} | ||
icon_section_title | ||
icons { | ||
icon_text | ||
icon_image { | ||
url | ||
} | ||
} | ||
product_description { | ||
text | ||
} | ||
product_images { | ||
image { | ||
url | ||
} | ||
} | ||
product_type | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
` |