-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#root { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
.logo { | ||
height: 6em; | ||
padding: 1.5em; | ||
will-change: filter; | ||
transition: filter 300ms; | ||
} | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #646cffaa); | ||
} | ||
.logo.react:hover { | ||
filter: drop-shadow(0 0 2em #61dafbaa); | ||
} | ||
|
||
@keyframes logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
a:nth-of-type(2) .logo { | ||
animation: logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.card { | ||
padding: 2em; | ||
} | ||
|
||
.read-the-docs { | ||
color: #888; | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import { Global, css } from "@emotion/react"; | ||
|
||
const GlobalStyle = () => ( | ||
<Global | ||
styles={css` | ||
@font-face { | ||
font-family: "KakaoBold"; | ||
src: url("public/fonts/KakaoBold.ttf") format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: "KakaoRegular"; | ||
src: url("public/fonts/KakaoRegular.ttf") format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
`} | ||
/> | ||
); | ||
|
||
export default GlobalStyle; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import { getTextStyle } from "./Text.style"; | ||
|
||
// KakaoBold ๋๋ KakaoRegular | ||
|
||
// ๊ธฐ๋ณธ ๋ ธ๋ : #FFF496 | ||
// ๊ธฐ๋ณธ ์ฐ๋ธ๋ผ์ด : #715F00 | ||
// ๊ธฐ๋ณธ ์ฐ๋ธ๋ผ์ด : #D3CBA1 | ||
// ๋ธ๋ : #000 | ||
|
||
const Text = ({ | ||
value, | ||
fontFamily = "KakaoRegular", | ||
fontSize = 16, | ||
color = "#000", | ||
style: customCss, | ||
}) => { | ||
return ( | ||
<span css={[getTextStyle({ fontFamily, fontSize, color }), customCss]}> | ||
{value} | ||
</span> | ||
); | ||
}; | ||
|
||
export default Text; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import { css } from "@emotion/react"; | ||
|
||
export const getTextStyle = ({ fontFamily, fontSize, color }) => css` | ||
font-family: ${fontFamily}; | ||
font-size: ${fontSize}px; | ||
color: ${color}; | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import React from "react"; | ||
import Text from "../Common/Text"; | ||
import { LayoutContainer, Line, CenterContent } from "./miniLayout.styled"; | ||
|
||
const MiniLayout = ({ text, children, layerWidth }) => { | ||
return ( | ||
<LayoutContainer width={layerWidth}> | ||
<Text value={text} fontFamily="KakaoBold" fontSize={30} color="#000" /> | ||
<Line /> | ||
<CenterContent>{children}</CenterContent> | ||
<Line /> | ||
</LayoutContainer> | ||
); | ||
}; | ||
|
||
export default MiniLayout; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import styled from "@emotion/styled"; | ||
|
||
export const LayoutContainer = styled.div` | ||
width: ${({ width }) => width || "100%"}; | ||
box-sizing: border-box; | ||
`; | ||
|
||
export const Line = styled.div` | ||
width: 100%; | ||
height: 3px; | ||
background-color: #715f00; | ||
margin: 15px 0px 15px 0px; | ||
`; | ||
|
||
export const CenterContent = styled.div` | ||
display: flex; | ||
flex-wrap: wrap; | ||
// justify-content: space-between; ๋ณ๋ก์ | ||
justify-content: center; | ||
gap: 20px; | ||
margin: 10px; | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import Text from "../Common/Text"; | ||
import React from "react"; | ||
import { | ||
CardContainer, | ||
ProfileImage, | ||
Name, | ||
Affiliation, | ||
} from "./peopleCard.styled"; | ||
|
||
const PeopleCard = ({ image, name, affiliation, onClick }) => { | ||
return ( | ||
<CardContainer onClick={onClick}> | ||
<ProfileImage src={image} alt={name} /> | ||
<Text | ||
value={name} | ||
fontFamily="KakaoBold" | ||
fontSize={15} | ||
color="#000" | ||
style={Name} | ||
/> | ||
<Text | ||
value={affiliation} | ||
fontFamily="KakaoRegular" | ||
fontSize={13} | ||
color="#715F00" | ||
style={Affiliation} | ||
/> | ||
</CardContainer> | ||
); | ||
}; | ||
|
||
export default PeopleCard; |