Skip to content

Commit

Permalink
#13 updating footer component
Browse files Browse the repository at this point in the history
  • Loading branch information
samgildea committed Apr 13, 2021
1 parent 77e93b5 commit 48d0009
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
21 changes: 15 additions & 6 deletions src/components/footer/footer-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const FooterContainer = styled.div`
width: 100%;
color: #ffffff;
position: absolute;
bottom:
`

export const FooterMainContent = styled.div`
Expand All @@ -21,6 +22,8 @@ export const FooterMainContent = styled.div`
export const SocialSection = styled.div`
padding-left: 80px;
padding-top: 50px;
@media (max-width: ${dimensions.maxwidthTablet}px) {
padding-left: 32px;
}
Expand All @@ -34,6 +37,9 @@ export const FooterHeader = styled.div`
export const SocialIcons = styled.div`
display: flex;
padding-top: 15px;
img {
padding-right: 16px;
}
`

export const SocialPlaceholder = styled.div`
Expand Down Expand Up @@ -146,7 +152,7 @@ export const AddressSection = styled.div`
padding-top: 16px;
`
export const ScoutSection = styled.div`
margin-top: 32px;
margin-top: 65px;
color: #ffffff;
@media (max-width: ${dimensions.maxwidthTablet}px) {
Expand All @@ -162,6 +168,7 @@ export const FooterSection = styled.div`
export const SockContainer = styled.div`
z-index: 1;
position: relative;
`

export const SockContent = styled.div`
Expand Down Expand Up @@ -201,7 +208,8 @@ export const SockEmailForm = styled.form`
}
}
input[type="text"]::placeholder {
input[type="text"],
select {
font-size: calc(20px + (32 - 20) * ((100vw - 320px) / (1440 - 320)));
color: #302f51;
}
Expand Down Expand Up @@ -229,14 +237,15 @@ export const SockCTA = styled.a`
export const FooterImage = styled.div`
position: absolute;
z-index: 0;
height: 753px;
height: 768px;
@media (max-width: ${dimensions.maxwidthTablet}px) {
height: 1080px;
}
img {
width: 100vw;
object-fit: cover;
height: 100%;
}
`
10 changes: 1 addition & 9 deletions src/components/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,11 @@ export default function footer({ data }) {
</LinkSection>

<EmailSection>
<form>
<input
type="text"
placeholder="your@email.com"
name="email"
required
/>
</form>
<SocialIcons>
{data.prismicFooter.data.social_media.map(social => {
return (
<a href={social.social_link}>
<SocialPlaceholder />
<img src={social.social_icon.url} />
</a>
)
})}
Expand Down

0 comments on commit 48d0009

Please sign in to comment.