Skip to content

Commit f3ade64

Browse files
authored
Merge pull request #43 from FE9-2/feat/font
chore: 넥슨 Lv.1 고딕체로 변경
2 parents caf275f + f5943eb commit f3ade64

File tree

5 files changed

+46
-62
lines changed

5 files changed

+46
-62
lines changed

src/app/(home)/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ export default function Home() {
6262
</div>
6363
</div>
6464
</section>
65+
<div className="space-y-4">
66+
<p className="font-nexon-light text-2xl text-gray-500">Nexon Lv1 Gothic Light</p>
67+
<p className="font-nexon-regular text-2xl text-gray-500">Nexon Lv1 Gothic Regular</p>
68+
<p className="font-nexon-bold text-2xl text-gray-500">Nexon Lv1 Gothic Bold</p>
69+
</div>
6570
</main>
6671

6772
<Footer />

src/app/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Header() {
2525
<div className="container mx-auto px-4">
2626
<nav className="flex h-16 items-center justify-between">
2727
<Link href="/" className="text-xl text-white hover:text-blue-100">
28-
WorkRoot
28+
Work Root
2929
</Link>
3030

3131
<ul className="flex items-center space-x-6">

src/app/globals.css

Lines changed: 36 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
/* Gothic A1 */
6-
@import url("https://fonts.googleapis.com/css2?family=Gothic+A1:wght@100;200;300;400;500;600;700;800;900&display=swap");
7-
85
/* 학교안심 둥근미소 R */
96
@font-face {
107
font-family: "HakgyoansimDunggeunmisoTTF-R";
@@ -21,10 +18,33 @@
2118
font-style: normal;
2219
}
2320

21+
/* 넥슨 폰트 */
22+
@font-face {
23+
font-family: "NEXON Lv1 Gothic OTF Light";
24+
src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/NEXON Lv1 Gothic OTF Light.woff")
25+
format("woff");
26+
font-weight: 300;
27+
font-style: normal;
28+
}
29+
@font-face {
30+
font-family: "NEXON Lv1 Gothic OTF Regular";
31+
src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/NEXON Lv1 Gothic OTF Regular.woff")
32+
format("woff");
33+
font-weight: 400;
34+
font-style: normal;
35+
}
36+
@font-face {
37+
font-family: "NEXON Lv1 Gothic OTF Bold";
38+
src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/NEXON Lv1 Gothic OTF Bold.woff")
39+
format("woff");
40+
font-weight: 700;
41+
font-style: normal;
42+
}
43+
2444
/* 기본적인 스타일을 정의 */
2545
@layer base {
2646
body {
27-
@apply font-gothic;
47+
@apply font-nexon;
2848
}
2949
}
3050

@@ -38,6 +58,18 @@
3858
font-family: "HakgyoansimDunggeunmisoTTF-B", sans-serif;
3959
font-weight: 700;
4060
}
61+
.font-nexon-light {
62+
font-family: "NEXON Lv1 Gothic OTF Light", sans-serif;
63+
font-weight: 300;
64+
}
65+
.font-nexon-regular {
66+
font-family: "NEXON Lv1 Gothic OTF Regular", sans-serif;
67+
font-weight: 400;
68+
}
69+
.font-nexon-bold {
70+
font-family: "NEXON Lv1 Gothic OTF Bold", sans-serif;
71+
font-weight: 700;
72+
}
4173
}
4274

4375
/* 유틸리티 클래스를 정의 */
@@ -46,57 +78,3 @@
4678
text-wrap: balance;
4779
}
4880
}
49-
50-
.gothic-thin {
51-
font-family: "Gothic A1", sans-serif;
52-
font-weight: 100;
53-
font-style: normal;
54-
}
55-
56-
.gothic-extralight {
57-
font-family: "Gothic A1", sans-serif;
58-
font-weight: 200;
59-
font-style: normal;
60-
}
61-
62-
.gothic-light {
63-
font-family: "Gothic A1", sans-serif;
64-
font-weight: 300;
65-
font-style: normal;
66-
}
67-
68-
.gothic-regular {
69-
font-family: "Gothic A1", sans-serif;
70-
font-weight: 400;
71-
font-style: normal;
72-
}
73-
74-
.gothic-medium {
75-
font-family: "Gothic A1", sans-serif;
76-
font-weight: 500;
77-
font-style: normal;
78-
}
79-
80-
.gothic-semibold {
81-
font-family: "Gothic A1", sans-serif;
82-
font-weight: 600;
83-
font-style: normal;
84-
}
85-
86-
.gothic-bold {
87-
font-family: "Gothic A1", sans-serif;
88-
font-weight: 700;
89-
font-style: normal;
90-
}
91-
92-
.gothic-extrabold {
93-
font-family: "Gothic A1", sans-serif;
94-
font-weight: 800;
95-
font-style: normal;
96-
}
97-
98-
.gothic-black {
99-
font-family: "Gothic A1", sans-serif;
100-
font-weight: 900;
101-
font-style: normal;
102-
}
File renamed without changes.

tailwind.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,21 @@ const config: Config = {
5454
},
5555
},
5656
fontFamily: {
57-
gothic: [
58-
"Gothic A1",
57+
nexon: [
58+
"NEXON Lv1 Gothic OTF",
59+
"sans-serif",
5960
"-apple-system",
6061
"BlinkMacSystemFont",
6162
"system-ui",
6263
"Helvetica Neue",
6364
"Apple SD Gothic Neo",
6465
"sans-serif",
66+
"sans-serif",
6567
],
6668
school: ["HakgyoansimDunggeunmisoTTF-R", "HakgyoansimDunggeunmisoTTF-B", "sans-serif"],
6769
},
6870
},
6971
},
70-
plugins: [],
7172
};
7273

7374
export default config;

0 commit comments

Comments
 (0)