-
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 #49-homepage-solar-section
- Loading branch information
Showing
11 changed files
with
2,312 additions
and
251 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
|
@@ -7,13 +7,21 @@ import { | |
SocialSection, | ||
FooterHeader, | ||
SocialIcons, | ||
SocialPlaceholder, | ||
LinkSection, | ||
LinkColumn, | ||
EmailSection, | ||
AddressSection, | ||
ScoutSection, | ||
FooterSection, | ||
SockContainer, | ||
SockContent, | ||
ConnectTitle, | ||
SockEmailForm, | ||
SockDescription, | ||
SockCTA, | ||
FooterImage, | ||
} from "./footer-styles" | ||
import { Sub1, Body } from "../../style/type-styles" | ||
|
||
export default function footer({ data }) { | ||
return ( | ||
|
@@ -22,8 +30,17 @@ export default function footer({ data }) { | |
query prismicFooter { | ||
prismicFooter { | ||
data { | ||
powerhouse_title | ||
sock_description | ||
sock_title | ||
address | ||
footer_image_alt | ||
footer_image { | ||
url | ||
} | ||
social_media { | ||
social_type | ||
social_icon { | ||
url | ||
} | ||
|
@@ -34,68 +51,93 @@ export default function footer({ data }) { | |
} | ||
`} | ||
render={data => ( | ||
<FooterContainer> | ||
<FooterMainContent> | ||
<SocialSection> | ||
<FooterHeader>Powerhouse</FooterHeader> | ||
<AddressSection> | ||
123 Lorem Ipsum Dolor Tempor Incididunt YZ, 12345 123-456-7890 | ||
</AddressSection> | ||
</SocialSection> | ||
<FooterSection> | ||
<FooterImage> | ||
<img | ||
alt={data.prismicFooter.data.footer_image_alt} | ||
src={data.prismicFooter.data.footer_image.url} | ||
/> | ||
</FooterImage> | ||
<SockContainer> | ||
<SockContent> | ||
<ConnectTitle> | ||
<Sub1> | ||
<label>{data.prismicFooter.data.sock_title}</label> | ||
</Sub1> | ||
<SockEmailForm> | ||
<input type="text" placeholder="Enter your email" /> | ||
</SockEmailForm> | ||
<SockDescription> | ||
<Body>{data.prismicFooter.data.sock_description}</Body> | ||
</SockDescription> | ||
|
||
<SockCTA role="button" type="submit"> | ||
Sign Up | ||
</SockCTA> | ||
</ConnectTitle> | ||
</SockContent> | ||
</SockContainer> | ||
|
||
<FooterContainer> | ||
<FooterMainContent> | ||
<SocialSection> | ||
<FooterHeader> | ||
{data.prismicFooter.data.powerhouse_title} | ||
</FooterHeader> | ||
<AddressSection> | ||
{data.prismicFooter.data.address}{" "} | ||
</AddressSection> | ||
</SocialSection> | ||
|
||
<LinkSection> | ||
<LinkColumn> | ||
<ul> | ||
<li> | ||
<a href="/about">Home</a> | ||
</li> | ||
<li> | ||
<a href="/about">About</a> | ||
</li> | ||
<li> | ||
<a href="/about">Process</a> | ||
</li> | ||
</ul> | ||
</LinkColumn> | ||
<LinkSection> | ||
<LinkColumn> | ||
<ul> | ||
<li> | ||
<a href="/about">Home</a> | ||
</li> | ||
<li> | ||
<a href="/about">About</a> | ||
</li> | ||
<li> | ||
<a href="/about">Process</a> | ||
</li> | ||
</ul> | ||
</LinkColumn> | ||
|
||
<LinkColumn> | ||
<ul> | ||
<li> | ||
<a href="/about">Products</a> | ||
</li> | ||
<li> | ||
<a href="/about">Solutions</a> | ||
</li> | ||
<li> | ||
<a href="/about">FAQ</a> | ||
</li> | ||
</ul> | ||
</LinkColumn> | ||
</LinkSection> | ||
<LinkColumn> | ||
<ul> | ||
<li> | ||
<a href="/about">Products</a> | ||
</li> | ||
<li> | ||
<a href="/about">Solutions</a> | ||
</li> | ||
<li> | ||
<a href="/about">FAQ</a> | ||
</li> | ||
</ul> | ||
</LinkColumn> | ||
</LinkSection> | ||
|
||
<EmailSection> | ||
<form> | ||
<input | ||
type="text" | ||
placeholder="[email protected]" | ||
name="email" | ||
required | ||
/> | ||
</form> | ||
<SocialIcons> | ||
{data.prismicFooter.data.social_media.map(social => { | ||
return ( | ||
<a href={social.social_link}> | ||
<SocialPlaceholder /> | ||
</a> | ||
) | ||
})} | ||
</SocialIcons> | ||
<EmailSection> | ||
<SocialIcons> | ||
{data.prismicFooter.data.social_media.map((social, idx) => { | ||
return ( | ||
<a key={idx} href={social.social_link}> | ||
<img | ||
alt={social.social_type} | ||
src={social.social_icon.url} | ||
/> | ||
</a> | ||
) | ||
})} | ||
</SocialIcons> | ||
|
||
<ScoutSection>Made with love by Scout</ScoutSection> | ||
</EmailSection> | ||
</FooterMainContent> | ||
</FooterContainer> | ||
<ScoutSection>Made with love by Scout</ScoutSection> | ||
</EmailSection> | ||
</FooterMainContent> | ||
</FooterContainer> | ||
</FooterSection> | ||
)} | ||
/> | ||
) | ||
|
Oops, something went wrong.