Skip to content

Instantly share code, notes, and snippets.

@muchirijane
Created November 15, 2020 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muchirijane/bfb2d4f390c2eb84a2c16350e61e240a to your computer and use it in GitHub Desktop.
Save muchirijane/bfb2d4f390c2eb84a2c16350e61e240a to your computer and use it in GitHub Desktop.
import styled from 'styled-components';
import {BiCheck, BiDetail, BiDish} from 'react-icons/bi';
import {Container} from '../../Globalstyles';
export const WorksContent = styled.section`
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
margin-top: 3rem;
`;
export const WorksContainer = styled(Container)`
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 5rem 8rem;
color: #333333;
${Container};
`;
export const WorksTitle = styled.h2`
font-size: clamp(2rem, 8.5vw, 5rem);
font-weight: bold;
`;
export const WorksCardContent = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 5rem;
@media only screen and (max-width:900px){
flex-direction: column;
}
`;
export const WorksCard = styled.div`
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 30rem;
height: 30rem;
background-color: #fff;
box-shadow: 0px 5px 40px rgba(0, 0, 0, 0.19);
border-radius: 20px;
transition: all .5s ease;
&:not(:last-child) {
margin-right: 5rem;
@media only screen and (min-width: 1300px){
margin-right: 10rem;
}
@media only screen and (min-width: 1500px){
margin-right: 20rem;
}
@media only screen and (max-width:900px){
margin-bottom: 10rem;
margin-right: 0;
}
@media only screen and (max-width: 800px){
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.12);
}
}
@media only screen and (max-width:900px){
width: 50rem;
}
@media only screen and (max-width:500px){
width: 30rem;
}
@media only screen and (min-width:1890px){
width: 40rem;
}
&:hover {
box-shadow: 0px 10px 80px rgba(0, 0, 0, 0.21);
transform: scale(1.05);
background-color: #E38B06;
color: #fff;
}
`;
export const WorksIconContainer = styled.div`
width: 9rem;
height: 9rem;
border-radius: 50%;
border: 2px solid #333;
transition: all .3s ease-out;
margin-top: 2rem;
display: flex;
justify-content: center;
align-items: center;
`;
export const WorksIcon1 = styled(BiCheck)`
color: #333;
font-size: 8rem;
`;
export const WorksIcon2 = styled(BiDetail)`
color: #333;
font-size: 6rem;
`;
export const WorksIcon3 = styled(BiDish)`
color: #333;
font-size: 6rem;
`;
export const WorksCardTitle = styled.h3`
font-size: 2.4rem;
font-weight: bold;
padding-top: 1rem;
`;
export const WorksCardText = styled.p`
font-size: 1.8rem;
padding: 1rem 2rem;
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment