Skip to content

Commit

Permalink
change footer and ContactBox spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-parag committed Mar 9, 2021
1 parent 4ebcd96 commit 21faed3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions components/ContactBox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const ContactContainer = styled.a`
position: relative;
box-shadow: 0px 1px 3px rgba(0,0,0,0.12);
transition: all 120ms ease-out 0s;
@media screen and (max-width: ${designTokens.breakpoints[4]}) {
padding-top: ${designTokens.space[6]};
}
&:hover, &:focus {
text-decoration: none;
img {
Expand All @@ -22,8 +25,7 @@ const ContactContainer = styled.a`
}
`

const ContactTitle = styled.h2`
font-size: ${designTokens.fontSizes[4]};
const ContactTitle = styled.h3`
margin-top: 0;
margin-bottom: ${designTokens.space[2]};
`
Expand Down Expand Up @@ -62,13 +64,20 @@ const ImgContainer = styled.div`
padding: ${designTokens.space[2]};
border: ${designTokens.space[2]} solid var(--grey0);
z-index: 2;
@media screen and (max-width: ${designTokens.breakpoints[4]}) {
width: ${designTokens.space[8]};
height: ${designTokens.space[8]};
top: -${designTokens.space[5]};
}
img {
position: absolute;
z-index: 3;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 120ms ease-out 0s;
width: calc(${designTokens.space[7]} + ${designTokens.space[2]});
display: block;
}
&:after {
content: '';
Expand All @@ -89,7 +98,7 @@ export default function ContactBox() {
return(
<ContactContainer href="mailto:[email protected]">
<ImgContainer>
<img width="72" src="/static/thanks.png"/>
<img src="/static/thanks.png"/>
</ImgContainer>
<ContactContent>
<ContactTitle>
Expand Down

1 comment on commit 21faed3

@vercel
Copy link

@vercel vercel bot commented on 21faed3 Mar 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.