-
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.
Merge branch 'master' into #18-about-page-mission-section
- Loading branch information
Showing
28 changed files
with
1,471 additions
and
129 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
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
const path = require("path") | ||
const productTemplate = path.resolve(__dirname, "./src/templates/product.js") | ||
const useCaseTemplate = path.resolve(__dirname, "./src/templates/use_case.js") | ||
|
||
exports.createPages = async ({ graphql, actions }) => { | ||
const { createPage } = actions | ||
|
||
// Query all Pages with their IDs and template data. | ||
const pages = await graphql(` | ||
{ | ||
allPrismicProduct { | ||
edges { | ||
node { | ||
id | ||
uid | ||
data { | ||
product_title | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`) | ||
|
||
const use_cases = await graphql(` | ||
{ | ||
allPrismicUseCase { | ||
edges { | ||
node { | ||
uid | ||
data { | ||
preview_title | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`) | ||
|
||
// Create pages for each Page in Prismic using the selected template. | ||
use_cases.data.allPrismicUseCase.edges.forEach(node => { | ||
createPage({ | ||
path: `/${node.node.uid}`, | ||
component: useCaseTemplate, | ||
context: { | ||
uid: node.node.uid, | ||
}, | ||
}) | ||
}) | ||
|
||
// Create pages for each Page in Prismic using the selected template. | ||
pages.data.allPrismicProduct.edges.forEach(node => { | ||
createPage({ | ||
path: `/${node.node.uid}`, | ||
component: productTemplate, | ||
context: { | ||
uid: node.node.uid, | ||
}, | ||
}) | ||
}) | ||
|
||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
import styled from "styled-components" | ||
import dimensions from "../../style/dimensions" | ||
export const FooterContainer = styled.div` | ||
background-color: #848484; | ||
width: 100%; | ||
color: #ffffff; | ||
` | ||
|
||
export const FooterMainContent = styled.div` | ||
@media (min-width: ${dimensions.maxwidthTablet}px) { | ||
display: flex; | ||
} | ||
` | ||
|
||
export const SocialSection = styled.div` | ||
padding-left: 80px; | ||
padding-top: 50px; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
padding-left: 32px; | ||
} | ||
` | ||
|
||
export const FooterHeader = styled.div` | ||
font-weight: bold; | ||
font-size: 24px; | ||
` | ||
|
||
export const SocialIcons = styled.div` | ||
display: flex; | ||
padding-top: 15px; | ||
` | ||
|
||
export const SocialPlaceholder = styled.div` | ||
width: 24px; | ||
height: 24px; | ||
background-color: #a4a4a4; | ||
border-radius: 8px; | ||
margin-right: 16px; | ||
` | ||
export const EmailText = styled.div` | ||
text-decoration: underline; | ||
font-size: 18px; | ||
font-weight: bold; | ||
padding-top: 25px; | ||
` | ||
|
||
export const LinkSection = styled.div` | ||
display: flex; | ||
margin-left: 9vw; | ||
padding-top: 50px; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
margin-left: 0px; | ||
} | ||
li { | ||
padding-bottom: 47px; | ||
font-size: 18px; | ||
font-weight: bold; | ||
} | ||
a { | ||
text-decoration: none; | ||
color: #ffffff; | ||
} | ||
ul { | ||
list-style: none; | ||
} | ||
` | ||
|
||
export const LinkColumn = styled.div` | ||
padding-right: 9vw; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
padding-right: 0; | ||
} | ||
` | ||
|
||
export const EmailSection = styled.div` | ||
margin-left: 32px; | ||
input { | ||
width: 20vw; | ||
height: 36px; | ||
margin-top: 10px; | ||
border: solid #626262 1px; | ||
} | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
input { | ||
width: 80%; | ||
height: 36px; | ||
margin-top: 10px; | ||
border: solid #626262 1px; | ||
} | ||
} | ||
input::placeholder { | ||
padding-left: 14px; | ||
} | ||
@media (min-width: ${dimensions.maxwidthTablet}px) { | ||
padding-top: 50px; | ||
position: absolute; | ||
right: 62px; | ||
} | ||
` | ||
|
||
export const BottomLinks = styled.div` | ||
a { | ||
text-decoration: none; | ||
color: black; | ||
} | ||
ul { | ||
display: flex; | ||
justify-content: center; | ||
list-style: none; | ||
padding-bottom: 30px; | ||
} | ||
li { | ||
font-size: 12px; | ||
padding-right: 28px; | ||
} | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
ul { | ||
display: flex; | ||
justify-content: center; | ||
list-style: none; | ||
padding-top: 80px; | ||
padding-bottom: 12px; | ||
} | ||
} | ||
` | ||
|
||
export const AddressSection = styled.div` | ||
width: 177px; | ||
padding-top: 16px; | ||
` | ||
export const ScoutSection = styled.div` | ||
margin-top: 32px; | ||
color: #ffffff; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
padding-bottom: 48px; | ||
} | ||
` |
Oops, something went wrong.