Skip to content

Commit

Permalink
set global font
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonsuperf committed Mar 27, 2021
1 parent 807259d commit 4c64c6b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const HeaderWrapper = styled.div`
display: flex;
justify-content: center;
border-bottom: 1px solid ${(props) => props.theme.weakBorder};
height: 50px;
`;

const HeaderContainer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SideBarContainer = styled.aside`
display: block;
flex-direction: column;
& > ol {
max-height: 700px;
max-height: calc(92vh - 50px);
overflow-y: scroll;
}
`;
Expand Down
19 changes: 19 additions & 0 deletions src/styles/global.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
import { createGlobalStyle } from 'styled-components';

const GlobalStyle = createGlobalStyle`
@font-face {
font-family: 'NanumSquare';
font-weight: 400;
src: url('../../statics/fonts/NanumSquareRoundL.ttf') format('truetype');
}
@font-face {
font-family: 'NanumSquareBold';
font-weight: 700;
src: url('../../statics/fonts/NanumSquareRoundB.ttf') format('truetype');
}
@font-face {
font-family: 'NanumSquareExtraBold';
font-weight: 800;
src: url('../../statics/fonts/NanumSquareRoundEB.ttf') format('truetype');
}
* {
margin: 0;
padding: 0;
Expand All @@ -10,6 +28,7 @@ const GlobalStyle = createGlobalStyle`
body {
box-sizing: border-box;
font-family: 'NanumSquare', sans-serif;
}
`;

Expand Down
Binary file added statics/fonts/NanumSquareRoundB.ttf
Binary file not shown.
Binary file added statics/fonts/NanumSquareRoundEB.ttf
Binary file not shown.
Binary file added statics/fonts/NanumSquareRoundL.ttf
Binary file not shown.
Binary file added statics/fonts/NanumSquareRoundR.ttf
Binary file not shown.

0 comments on commit 4c64c6b

Please sign in to comment.