Skip to content

Commit

Permalink
next-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Goketech committed Jan 7, 2023
1 parent f4e2c9e commit fc0c323
Show file tree
Hide file tree
Showing 47 changed files with 2,977 additions and 525 deletions.
27 changes: 27 additions & 0 deletions components/Acomplishments/Acomplishments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react';

import { Section, SectionDivider, SectionTitle } from '../../styles/GlobalComponents';
import { Box, Boxes, BoxNum, BoxText } from './AcomplishmentsStyles';

const data = [
{ number: 20, text: 'Open Source Projects'},
{ number: 1000, text: 'Students', },
{ number: 1900, text: 'Github Followers', },
{ number: 5000, text: 'Github Stars', }
];

const Acomplishments = () => (
<Section>
<SectionTitle>Personal Accomplishments</SectionTitle>
<Boxes>
{data.map((card, index) => (
<Box key={index}>
<BoxNum>{card.number}+</BoxNum>
<BoxText>{card.text}</BoxText>
</Box>
))}
</Boxes>
</Section>
);

export default Acomplishments;
134 changes: 134 additions & 0 deletions components/Acomplishments/AcomplishmentsStyles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
import styled from "styled-components"

export const Boxes = styled.div`
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
margin: 24px 0 40px;
@media ${props => props.theme.breakpoints.md}{
gap: 16px;
margin: 20px 0 32px;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
@media ${props => props.theme.breakpoints.sm}{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
max-width: 500px;
margin: 24px auto;
}
`

export const Box = styled.div`
background: #212D45;
border-radius: 12px;
height: 144px;
padding: 24px;
@media ${props => props.theme.breakpoints.lg} {
height: 210px;
}
@media ${props => props.theme.breakpoints.md} {
height: 135px;
padding: 16px;
}
@media ${props => props.theme.breakpoints.sm} {
height: 110px;
padding: 12px;
&:nth-child(2n){
grid-row:2;
}
}
`
export const BoxNum = styled.h5`
font-style: normal;
font-weight: 600;
font-size: 36px;
line-height: 40px;
letter-spacing: 0.01em;
color: #FFFFFF;
margin-bottom: 8px;
@media ${props => props.theme.breakpoints.md} {
font-size: 28px;
line-height: 32px;
}
@media ${props => props.theme.breakpoints.sm} {
font-size: 24px;
line-height: 26px;
}
`

export const BoxText = styled.p`
font-style: normal;
font-weight: normal;
font-size: 18px;
line-height: 24px;
letter-spacing: 0.02em;
color: rgba(255, 255, 255, 0.75);
@media ${props => props.theme.breakpoints.md}{
font-size: 16px;
line-height: 20px;
};
@media ${props => props.theme.breakpoints.sm} {
font-size: 10px;
line-height: 14px;
}
`

export const Join = styled.div`
display: flex;
max-width: 1040px;
justify-content: center;
align-items: center;
padding-bottom: 80px;
@media ${props => props.theme.breakpoints.md}{
display: flex;
justify-content: center;
padding-bottom: 64px;
}
@media ${props => props.theme.breakpoints.sm}{
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 32px;
}
`

export const JoinText = styled.h5`
display: flex;
font-size: 24px;
line-height: 40px;
letter-spacing: 0.02em;
color: rgba(255, 255, 255, 0.5);
@media ${props => props.theme.breakpoints.md}{
line-height: 32px;
font-size: 20px;
};
@media ${props => props.theme.breakpoints.sm}{
font-size: 16px;
line-height: 24px;
margin: 0 0 16px;
}
`

export const IconContainer = styled.div`
display: flex;
@media ${props => props.theme.breakpoints.sm}{
width: 160px;
justify-content: space-between;
}
`
Loading

0 comments on commit fc0c323

Please sign in to comment.