Skip to content

Commit

Permalink
updating schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
samgildea committed Apr 29, 2021
1 parent a937839 commit 7733e13
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 118 deletions.
96 changes: 48 additions & 48 deletions src/pages/about.js
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
}
}
}
}
`
140 changes: 70 additions & 70 deletions src/pages/products.js
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
}
}
}
}
}
}
}
}
`

0 comments on commit 7733e13

Please sign in to comment.