-
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 : aboutme 영역
- Loading branch information
Showing
15 changed files
with
294 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
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,179 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import SvgIcon from "@mui/material/SvgIcon"; | ||
import GitHubIcon from "@mui/icons-material/GitHub"; | ||
import InstagramIcon from "@mui/icons-material/Instagram"; | ||
import AlternateEmailIcon from "@mui/icons-material/AlternateEmail"; | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
padding: 15px; | ||
gap: 10px; | ||
border-radius: 10px; | ||
background-color: ${(props) => props.theme.boxBgColor}; | ||
color: ${(props) => props.theme.textColor}; | ||
`; | ||
|
||
const Title = styled.div` | ||
@media (max-width: 820px) { | ||
font-size: 15px; | ||
} | ||
display: flex; | ||
font-size: 18px; | ||
font-weight: 700; | ||
`; | ||
|
||
const ContentBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
`; | ||
|
||
const ProfileBox = styled.div` | ||
@media (max-width: 820px) { | ||
width: 30%; | ||
gap: 12px; | ||
} | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 20px; | ||
`; | ||
|
||
const ProfileImg = styled.img` | ||
@media (max-width: 820px) { | ||
width: 120px; | ||
height: 120px; | ||
} | ||
width: 180px; | ||
height: 180px; | ||
margin-top: 15px; | ||
border-radius: 50%; | ||
object-fit: cover; | ||
`; | ||
|
||
const ProfileName = styled.div` | ||
@media (max-width: 820px) { | ||
font-size: 18px; | ||
} | ||
display: flex; | ||
font-size: 20px; | ||
font-weight: 900; | ||
`; | ||
|
||
const DescBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
line-height: 1.1; | ||
`; | ||
|
||
const ProfileDesc = styled.div` | ||
@media (max-width: 820px) { | ||
font-size: 13px; | ||
} | ||
font-size: 15px; | ||
color: #d9d9d9; | ||
opacity: 0.7; | ||
`; | ||
|
||
const IconBox = styled.div` | ||
@media (max-width: 820px) { | ||
gap: 15px; | ||
} | ||
display: flex; | ||
flex-direction: row; | ||
gap: 20px; | ||
margin-bottom: 10px; | ||
svg { | ||
@media (max-width: 820px) { | ||
font-size: 25px; | ||
} | ||
font-size: 30px; | ||
&:hover { | ||
color: #b6dcec; | ||
} | ||
} | ||
`; | ||
|
||
const IntroBox = styled.div` | ||
@media (min-width: 820px) { | ||
display: none; | ||
} | ||
display: flex; | ||
width: 70%; | ||
flex-direction: column; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
`; | ||
|
||
const IntroTite = styled.div` | ||
font-size: 30px; | ||
text-align: center; | ||
line-height: 1.3; | ||
font-weight: 700; | ||
`; | ||
|
||
const IntroDesc = styled.div` | ||
text-align: center; | ||
line-height: 1.5; | ||
font-size: 20px; | ||
font-weight: 500; | ||
color: #8c8c8c; | ||
`; | ||
|
||
function AboutMe() { | ||
return ( | ||
<Wrapper> | ||
<Title>About Me</Title> | ||
<ContentBox> | ||
<ProfileBox> | ||
<ProfileImg | ||
src={`${process.env.PUBLIC_URL}/img/bond.webp`} | ||
alt="bond" | ||
/> | ||
<ProfileName>sheepdog</ProfileName> | ||
<DescBox> | ||
<ProfileDesc>FrontEnd Developer</ProfileDesc> | ||
<ProfileDesc>Busan, Korea</ProfileDesc> | ||
</DescBox> | ||
<IconBox> | ||
<SvgIcon | ||
onClick={() => { | ||
window.open("https://github.com/sheepdog13"); | ||
}} | ||
component={GitHubIcon} | ||
fontSize={"inherit"} | ||
/> | ||
<SvgIcon | ||
onClick={() => { | ||
window.open("https://www.instagram.com/jo_chang_uk/"); | ||
}} | ||
component={InstagramIcon} | ||
fontSize={"inherit"} | ||
/> | ||
<SvgIcon | ||
onClick={() => { | ||
window.open(`mailto:[email protected]`); | ||
}} | ||
component={AlternateEmailIcon} | ||
fontSize={"inherit"} | ||
/> | ||
</IconBox> | ||
</ProfileBox> | ||
<IntroBox> | ||
<IntroTite>Blog</IntroTite> | ||
<IntroDesc> | ||
안녕하세요 자바스크립트를 <br /> 주로 다루는 기술 블로그입니다. | ||
</IntroDesc> | ||
</IntroBox> | ||
</ContentBox> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
export default AboutMe; |
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,2 @@ | ||
declare module "*.ttf"; | ||
declare module "*.otf"; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,67 @@ | ||
import { css } from "styled-components"; | ||
import SCDream2 from "../fonts/SCDream2.otf"; | ||
import SCDream3 from "../fonts/SCDream3.otf"; | ||
import SCDream4 from "../fonts/SCDream4.otf"; | ||
import SCDream5 from "../fonts/SCDream5.otf"; | ||
import SCDream6 from "../fonts/SCDream6.otf"; | ||
import SCDream7 from "../fonts/SCDream7.otf"; | ||
import SCDream8 from "../fonts/SCDream8.otf"; | ||
import SCDream9 from "../fonts/SCDream9.otf"; | ||
|
||
export const fonts = css` | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 200; | ||
src: url(${SCDream2}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: normal; | ||
src: url(${SCDream3}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 400; | ||
src: url(${SCDream4}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 500; | ||
src: url(${SCDream5}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 600; | ||
src: url(${SCDream6}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 700; | ||
src: url(${SCDream7}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 800; | ||
src: url(${SCDream8}) format("opentype"); | ||
} | ||
@font-face { | ||
font-family: "SCDream"; | ||
src: local("SCDream"), local("SCDream"); | ||
font-weight: 900; | ||
src: url(${SCDream9}) format("opentype"); | ||
} | ||
`; |