forked from adrianhajdin/portfolio_website
-
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.
Merge pull request adrianhajdin#1 from adrianhajdin/hero_section
Hero section + Acomplishment section done
- Loading branch information
Showing
10 changed files
with
302 additions
and
15 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
import { Section, SectionTitle } from '../../styles/GlobalComponents'; | ||
import { Box, Boxes, BoxNum, BoxText } from './AcomplishmentsStyles'; | ||
const data = [ | ||
{ | ||
number: 20, | ||
text: 'Open Source Projects', | ||
text2: '10 Pull Requests', | ||
}, | ||
{ | ||
number: 1000, | ||
text: 'Students', | ||
}, | ||
{ | ||
number: 10, | ||
text: 'Github Followers', | ||
}, | ||
{ | ||
number: 400, | ||
text: 'Github Stars', | ||
}, | ||
]; | ||
|
||
const Acomplishments = () => { | ||
return ( | ||
<Section> | ||
<SectionTitle>Personal Achievements</SectionTitle> | ||
<Boxes> | ||
{data.map((card, index) => { | ||
return ( | ||
<Box key={index}> | ||
<BoxNum>{`${card.number}+`}</BoxNum> | ||
<BoxText>{card.text}</BoxText> | ||
{card.text2 && <BoxText>{card.text2}</BoxText>} | ||
</Box> | ||
); | ||
})} | ||
</Boxes> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default Acomplishments; |
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
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.md} { | ||
height: 112px; | ||
padding: 16px; | ||
} | ||
@media ${props => props.theme.breakpoints.sm} { | ||
height: 82px; | ||
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; | ||
} | ||
` |
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import Image from 'next/image'; | ||
import React from 'react'; | ||
import { | ||
SectionDivider, | ||
SectionText, | ||
SectionTitle | ||
} from '../../styles/GlobalComponents'; | ||
import Button from '../../styles/GlobalComponents/Button'; | ||
import { HeroSection, LeftSection, RightSection } from './HeroStyles'; | ||
|
||
const Hero = (props) => { | ||
return ( | ||
<> | ||
<HeroSection> | ||
<LeftSection> | ||
<SectionTitle main> | ||
Welcome To <br /> | ||
My Personal Portfolio | ||
</SectionTitle> | ||
<SectionText> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut labore et dolore magna aliqua. At | ||
auctor urna nunc id cursus metus aliquam eleifend mi. | ||
</SectionText> | ||
<Button onClick={props.handleClick}>Learn More</Button> | ||
</LeftSection> | ||
<RightSection> | ||
<Image | ||
src="/images/profile.jpeg" | ||
alt="this is my profile" | ||
width="500" | ||
height="600" | ||
/> | ||
</RightSection> | ||
</HeroSection> | ||
<SectionDivider /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Hero; | ||
|
||
// <Section flexrow> | ||
// <HeroBG | ||
// alt="none" | ||
// src="https://images.unsplash.com/photo-1622028026821-cb2acfc38bf6?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80" | ||
// /> | ||
// <div> | ||
// <SectionTitle main> | ||
// Welcome To <br /> | ||
// My Personal Portfolio | ||
// </SectionTitle> | ||
// <SectionText> | ||
// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
// eiusmod tempor incididunt ut labore et dolore magna aliqua. At auctor | ||
// urna nunc id cursus metus aliquam eleifend mi. | ||
// </SectionText> | ||
// <Button onClick={props.handleClick}>Request a Demo</Button> | ||
// <SectionDivider /> | ||
// </div> | ||
// </Section> |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import styled from 'styled-components' | ||
|
||
|
||
export const HeroSection = styled.section` | ||
display: flex; | ||
flex-direction: row; | ||
padding: 2rem; | ||
padding-top: 3rem; | ||
` | ||
|
||
export const RightSection = styled.div` | ||
width: 40%; | ||
display:flex; | ||
justify-content: center; | ||
padding: 1rem; | ||
` | ||
|
||
export const LeftSection = styled.div` | ||
width: 60%; | ||
` | ||
|
||
export const HeroBG = styled.img` | ||
` | ||
|
||
export const HeroSponsorsContainer = styled.div` | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 0 0 80px; | ||
@media ${(props) => props.theme.breakpoints.md} { | ||
margin-bottom: 64px; | ||
} | ||
@media ${(props) => props.theme.breakpoints.sm} { | ||
margin-bottom: 24px; | ||
flex-wrap: wrap; | ||
} | ||
` | ||
|
||
export const HeroSponsorLogo = styled.img` | ||
width: 1fr; | ||
height: 80px; | ||
@media ${(props) => props.theme.breakpoints.lg} { | ||
height: 50px; | ||
} | ||
@media ${(props) => props.theme.breakpoints.md} { | ||
height: 32px; | ||
flex-basis: 33%; | ||
margin-bottom: 8px; | ||
} | ||
` |
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
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
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
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