-
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.
change footer and ContactBox spacing
- Loading branch information
1 parent
4ebcd96
commit 21faed3
Showing
1 changed file
with
12 additions
and
3 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 |
---|---|---|
|
@@ -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 { | ||
|
@@ -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]}; | ||
` | ||
|
@@ -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: ''; | ||
|
@@ -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> | ||
|
21faed3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: