Skip to content

Commit e65f3c6

Browse files
committed
Add transitions
1 parent 7b2c679 commit e65f3c6

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

web/src/components/Button/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const StyledLink = styled(GatsbyLink)`
1313
props.primary ? "var(--white)" : "var(--peach)"};
1414
color: ${(props) => (props.primary ? "var(--black)" : "var(--white)")};
1515
text-decoration: none;
16+
transition: var(--transition);
1617
&:hover {
1718
cursor: pointer;
1819
background-color: var(--light-peach);

web/src/components/ContactForm/styles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export const SubmitButton = styled.button`
4747
background-color: var(--white);
4848
color: var(--black);
4949
text-decoration: none;
50+
transition: var(--transition);
51+
5052
&:hover {
5153
cursor: pointer;
5254
background-color: var(--light-peach);

web/src/components/Footer/styles.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ export const SocialsList = styled.ul`
114114
margin: 40px auto;
115115
padding-left: 0;
116116
117+
a {
118+
transition: var(--transition);
119+
}
120+
117121
a:hover,
118122
a:focus {
119123
filter: brightness(1.4);

web/src/components/ProjectLink/styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const ProjectLink = styled(Link)`
2525
top: 0;
2626
left: 0;
2727
border-radius: 15px;
28+
transition: var(--transition);
2829
}
2930
&:hover,
3031
&:focus {

web/src/styles/GlobalStyles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const GlobalStyle = createGlobalStyle`
99
--dark-grey: hsl(264, 5%, 20%);
1010
--light-grey: hsl(210, 17%, 95%);
1111
--site-container: 1111px;
12+
--transition: all 0.3s ease-in-out;
1213
}
1314
html {
1415
box-sizing: border-box;

0 commit comments

Comments
 (0)