-
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 #2 from Iam2Jo/T2-11--feature/quiz
Design: Add globalStyle
- Loading branch information
Showing
6 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import type { Metadata } from 'next' | ||
import { Inter } from 'next/font/google' | ||
import './globals.css' | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
import GlobalStyle from '../styles/globalStyle'; | ||
import '../styles/fonts/font.css'; | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
const inter = Inter({ subsets: ['latin'] }); | ||
|
||
export const metadata: Metadata = { | ||
title: 'Create Next App', | ||
description: 'Generated by create next app', | ||
} | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}>{children}</body> | ||
</html> | ||
) | ||
<> | ||
<GlobalStyle /> | ||
<html lang="en"> | ||
<body className={inter.className}>{children}</body> | ||
</html> | ||
</> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@font-face { | ||
font-family: "Noto Sans KR"; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(./NotoSansKR-Regular.woff) format("woff"); | ||
} | ||
@font-face { | ||
font-family: "Noto Sans KR"; | ||
font-style: normal; | ||
font-weight: 500; | ||
src: url(./NotoSansKR-Medium.woff) format("woff"); | ||
} | ||
@font-face { | ||
font-family: "Noto Sans KR"; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url(./NotoSansKR-Bold.woff) format("woff"); | ||
} |
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,70 @@ | ||
'use client'; | ||
import { createGlobalStyle } from 'styled-components'; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
* { | ||
font-family: "Noto Sans KR"; | ||
line-height: 1.5; | ||
font-size: 16px; | ||
box-sizing: border-box; | ||
} | ||
#root { | ||
position: relative; | ||
} | ||
html { | ||
--color-main-yellow: #F2CC00; | ||
--color-main-black: #050505; | ||
--color-white: #ffffff; | ||
--color-gray: #050505; | ||
--color-disabled: #424242; | ||
} | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
body { | ||
background-color: #222; | ||
} | ||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
div, | ||
li, | ||
section { | ||
box-sizing: border-box; | ||
} | ||
ul, | ||
li { | ||
list-style: none; | ||
} | ||
input { | ||
color: inherit; | ||
font-family: inherit; | ||
} | ||
textarea { | ||
color: inherit; | ||
font-family: inherit; | ||
} | ||
::-webkit-scrollbar { | ||
width: 0.5rem; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
background: var(--color-gray); | ||
border: 0; | ||
border-radius: 12px 12px 12px 12px; | ||
} | ||
`; | ||
|
||
export default GlobalStyle; |