-
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
May 6, 2021
1 parent
78e6e73
commit d56d172
Showing
3 changed files
with
76 additions
and
100 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,73 +1,73 @@ | ||
import React from "react" | ||
import { graphql } from "gatsby" | ||
import Layout from "../components/layout" | ||
import SingularProduct from "../components/singular-product/singular-product" | ||
// import React from "react" | ||
// import { graphql } from "gatsby" | ||
// import Layout from "../components/layout" | ||
// import SingularProduct from "../components/singular-product/singular-product" | ||
|
||
export default function Home({ data }) { | ||
const productData = data.prismicProduct.data | ||
// export default function Home({ data }) { | ||
// const productData = data.prismicProduct.data | ||
|
||
return ( | ||
<Layout> | ||
<SingularProduct data={productData} /> | ||
</Layout> | ||
) | ||
} | ||
// return ( | ||
// <Layout> | ||
// <SingularProduct data={productData} /> | ||
// </Layout> | ||
// ) | ||
// } | ||
|
||
export const query = graphql` | ||
query ProductQuery { | ||
prismicProduct { | ||
data { | ||
button_destination | ||
button_title | ||
cta_title | ||
feature_icon { | ||
url | ||
dimensions { | ||
height | ||
width | ||
} | ||
} | ||
feature_title | ||
features { | ||
feature_description { | ||
text | ||
} | ||
feature_image { | ||
dimensions { | ||
height | ||
width | ||
} | ||
url | ||
} | ||
feature_name | ||
} | ||
icon_section_title | ||
icons { | ||
icon_image { | ||
dimensions { | ||
height | ||
width | ||
} | ||
url | ||
} | ||
icon_text | ||
} | ||
product_description { | ||
text | ||
} | ||
product_images { | ||
image { | ||
dimensions { | ||
height | ||
width | ||
} | ||
url | ||
} | ||
} | ||
product_title | ||
product_type | ||
// export const query = graphql` | ||
// query ProductQuery { | ||
// prismicProduct { | ||
// data { | ||
// button_destination | ||
// button_title | ||
// cta_title | ||
// feature_icon { | ||
// url | ||
// dimensions { | ||
// height | ||
// width | ||
// } | ||
// } | ||
// feature_title | ||
// features { | ||
// feature_description { | ||
// text | ||
// } | ||
// feature_image { | ||
// dimensions { | ||
// height | ||
// width | ||
// } | ||
// url | ||
// } | ||
// feature_name | ||
// } | ||
// icon_section_title | ||
// icons { | ||
// icon_image { | ||
// dimensions { | ||
// height | ||
// width | ||
// } | ||
// url | ||
// } | ||
// icon_text | ||
// } | ||
// product_description { | ||
// text | ||
// } | ||
// product_images { | ||
// image { | ||
// dimensions { | ||
// height | ||
// width | ||
// } | ||
// url | ||
// } | ||
// } | ||
// product_title | ||
// product_type | ||
|
||
} | ||
} | ||
} | ||
` | ||
// } | ||
// } | ||
// } | ||
// ` |
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
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