Skip to content

Commit

Permalink
fix(buttons): added styled button
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Nov 6, 2021
1 parent b247785 commit 1d3eb6c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/Layout/Button/styledButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import styled, {css, keyframes} from 'styled-components';

export const StyledDivButton = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 5rem;
color: white;
margin-bottom: 5rem;
${props => props.Primary && css`
background: rgb(235, 183, 65);
`}
`;

export const StyledButtonH2 = styled.h2`
padding-bottom: 1%;
`;

const personalbtn = keyframes`
0% {
left: 250%;
}
100% {
left: 0%;
}
`;
export const StyledButtonATag = styled.a`
border: 2px solid #204740;
box-sizing: inherit;
cursor: pointer;
display: inline-block;
font-size: 1.8em;
margin-bottom: 10px;
padding: 10px 20px;
background-color: transparent;
transition: all 0.5s;
text-decoration: none;
left: 35%;
overflow: hidden;
animation: ${personalbtn} 10s steps(1) -1s normal;
color: #fff;
border-color: #fff;
&:hover {
text-decoration: none;
border-color: #206a5d;
background-color: #204740;
color: #fff;
}
`;

0 comments on commit 1d3eb6c

Please sign in to comment.