Skip to content

Commit f3d3f02

Browse files
authored
Merge pull request #307 from manNomi/feat/typography
feat : typography , critical css 수정
2 parents 25db4f2 + 7c2d5dc commit f3d3f02

133 files changed

Lines changed: 721 additions & 1006 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 21 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"scripts": {
99
"dev": "next dev",
10-
"build": "next build && node scripts/critical-css.js",
10+
"build": "next build",
1111
"start": "next start",
1212
"lint": "next lint"
1313
},
@@ -28,7 +28,7 @@
2828
"axios": "^1.6.7",
2929
"class-variance-authority": "^0.7.1",
3030
"clsx": "^2.1.1",
31-
"beasties": "^0.2.0",
31+
"critters": "^0.0.23",
3232
"firebase": "^10.7.2",
3333
"firebase-admin": "^12.0.0",
3434
"js-cookie": "^3.0.5",

scripts/critical-css.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/app/(home)/_ui/FindLastYearScoreBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const FindLastYearScoreBar = () => {
1414
<div className="flex items-center gap-4">
1515
<IconGraduationCap />
1616
<div className="flex flex-col">
17-
<span className="text-xs font-normal leading-normal text-k-800">작년 합격 점수가 궁금하신가요?</span>
18-
<span className="text-sm font-semibold leading-normal text-k-800">작년도 합격 점수 확인하러 가기</span>
17+
<span className="typo-regular-4 text-k-800">작년 합격 점수가 궁금하신가요?</span>
18+
<span className="typo-sb-9 text-k-800">작년도 합격 점수 확인하러 가기</span>
1919
</div>
2020
</div>
2121
</div>

src/app/(home)/_ui/NewsSection/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const NewsSection = ({ newsList }: NewsSectionProps) => {
1919

2020
return (
2121
<div ref={sectionRef} className="mt-6 pl-5">
22-
<div className="mb-2.5 flex items-center gap-1.5 font-serif text-base font-semibold text-k-700">
22+
<div className="mb-2.5 flex items-center gap-1.5 font-serif typo-sb-7 text-k-700">
2323
솔커에서 맛보는 소식
2424
<IconLoveLetter />
25-
{/* <Link href="/news" className="ml-auto text-sm font-normal text-k-500">
25+
{/* <Link href="/news" className="ml-auto typo-regular-2 text-k-500">
2626
더보기
2727
<span className="ml-1 inline-block">
2828
<IconDirectionRight />
@@ -55,8 +55,8 @@ const NewsSection = ({ newsList }: NewsSectionProps) => {
5555
height={90}
5656
/>
5757
<div className="mr-5 flex flex-col gap-0.5">
58-
<div className="text-serif text-sm font-semibold leading-normal text-k-700">{news.title}</div>
59-
<div className="font-serif text-xs font-normal leading-normal text-k-500">{news.description}</div>
58+
<div className="text-serif typo-sb-9 text-k-700">{news.title}</div>
59+
<div className="font-serif typo-regular-4 text-k-500">{news.description}</div>
6060
</div>
6161
</div>
6262
</Link>

src/app/(home)/_ui/PopularUniversitySection/_ui/PopularUniversityCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const PopularUniversityCard = ({
4747
}
4848
/>
4949
</div>
50-
<div className="absolute bottom-[9px] left-[10px] z-10 text-sm font-semibold leading-[160%] tracking-[0.15px] text-white">
50+
<div className="absolute bottom-[9px] left-[10px] z-10 typo-sb-9 tracking-[0.15px] text-white">
5151
{university.koreanName}
5252
</div>
5353
</div>

src/app/(home)/_ui/UniversityList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const UniversityList = ({ allRegionsUniversityList }: UniversityListProps) => {
2929
return (
3030
<div className="flex flex-col gap-2">
3131
<div className="flex justify-between">
32-
<span className="text-lg font-semibold leading-snug text-k-700">전체 학교 리스트</span>
32+
<span className="typo-sb-5 text-k-700">전체 학교 리스트</span>
3333
<Link href="/university">
34-
<span className="flex items-center gap-1 text-sm font-semibold text-k-500">
34+
<span className="flex items-center gap-1 typo-sb-9 text-k-500">
3535
더보기
3636
<IconDirectionRight className="h-4 w-4" />
3737
</span>

src/app/(home)/page.tsx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,22 @@ const HomePage = async () => {
3737
<FindLastYearScoreBar />
3838
<div className="flex flex-col gap-2.5 px-5 py-3.5">
3939
<div className="flex gap-2">
40-
<Link className="h-26 flex flex-1 flex-col gap-2 rounded-lg bg-[#F0F5FF] p-2.5" href="/university/search">
40+
<Link
41+
className="h-26 bg-bg-accent-blue flex flex-1 flex-col gap-2 rounded-lg p-2.5"
42+
href="/university/search"
43+
>
4144
<div className="flex flex-col">
42-
<span className="text-sm font-bold text-secondary">학교 검색하기</span>
43-
<span className="text-xs font-medium leading-tight text-k-700">모든 학교 목록을 확인해보세요</span>
45+
<span className="typo-bold-5 text-secondary">학교 검색하기</span>
46+
<span className="typo-medium-4 text-k-700">모든 학교 목록을 확인해보세요</span>
4447
</div>
4548
<div className="flex justify-end">
4649
<IconMagnifyingGlass />
4750
</div>
4851
</Link>
49-
<Link className="h-26 flex flex-1 flex-col gap-2 rounded-lg bg-[#EBF8FF] p-2.5" href="/university/score">
52+
<Link className="h-26 bg-bg-accent-sky flex flex-1 flex-col gap-2 rounded-lg p-2.5" href="/university/score">
5053
<div className="flex flex-col">
51-
<span className="text-sm font-bold text-sub-a">성적 입력하기</span>
52-
<span className="text-xs font-medium leading-tight text-k-700">성적을 입력해보세요</span>
54+
<span className="typo-bold-5 text-sub-a">성적 입력하기</span>
55+
<span className="typo-medium-4 text-k-700">성적을 입력해보세요</span>
5356
</div>
5457
<div className="flex justify-end">
5558
<IconPaper />
@@ -58,24 +61,24 @@ const HomePage = async () => {
5861
</div>
5962
<div className="flex gap-2">
6063
<Link
61-
className="h-26 flex flex-1 flex-col gap-2 rounded-lg bg-[#FFF3E5] p-2.5"
64+
className="h-26 bg-bg-accent-orange flex flex-1 flex-col gap-2 rounded-lg p-2.5"
6265
href="/university/application/apply"
6366
>
6467
<div className="flex flex-col">
65-
<span className="text-sm font-bold text-[#FF7300]">학교 지원하기</span>
66-
<span className="text-xs font-medium leading-tight text-k-700">학교를 지원해주세요</span>
68+
<span className="typo-bold-5 text-accent-custom-orange">학교 지원하기</span>
69+
<span className="typo-medium-4 text-k-700">학교를 지원해주세요</span>
6770
</div>
6871
<div className="flex justify-end">
6972
<IconMuseum />
7073
</div>
7174
</Link>
7275
<Link
73-
className="h-26 flex flex-1 flex-col gap-2 rounded-lg bg-[#E9F7EC] p-2.5"
76+
className="h-26 bg-bg-accent-green flex flex-1 flex-col gap-2 rounded-lg p-2.5"
7477
href="/university/application"
7578
>
7679
<div className="flex flex-col">
77-
<span className="text-sm font-bold text-[#15A861]">지원자 현황 확인</span>
78-
<span className="text-xs font-medium leading-tight text-k-700">경쟁률을 바로 분석해드려요</span>
80+
<span className="typo-bold-5 text-accent-custom-green">지원자 현황 확인</span>
81+
<span className="typo-medium-4 text-k-700">경쟁률을 바로 분석해드려요</span>
7982
</div>
8083
<div className="flex justify-end">
8184
<IconIdCard />
@@ -85,9 +88,7 @@ const HomePage = async () => {
8588
</div>
8689

8790
<div className="border-t-[5px] border-k-50 py-5 pl-5">
88-
<div className="mb-2 flex items-center gap-1.5 font-serif text-base font-semibold text-k-700">
89-
실시간 인기있는 파견학교
90-
</div>
91+
<div className="typo-sb-7 mb-2 flex items-center gap-1.5 font-serif text-k-700">실시간 인기있는 파견학교</div>
9192
<PopularUniversitySection universities={recommendedUniversities} />
9293
</div>
9394

src/app/admin/design-system/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ const ColorsPage = () => {
5050
return (
5151
<div className="w-full">
5252
<div className="p-8">
53-
<h1 className="mb-6 text-2xl font-bold">디자인 시스템 색상 팔레트</h1>
53+
<h1 className="mb-6 typo-bold-1">디자인 시스템 색상 팔레트</h1>
5454
<div className="space-y-4">
5555
{colors.map((row, rowIndex) => (
5656
<div key={rowIndex} className="flex space-x-4">
5757
{row.map((color, colIndex) => (
5858
<div key={colIndex} className="text-center">
5959
<div className={`mx-auto h-16 w-16 ${color.class} rounded`} />
60-
<p className="mt-2 text-sm">{color.name}</p>
60+
<p className="mt-2 typo-regular-2">{color.name}</p>
6161
</div>
6262
))}
6363
</div>

src/app/community/[boardCode]/CommunityRegionSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const CommunityRegionSelector = ({ curRegion, setCurRegion, regionChoices }: Com
4848
<div className="pb-3.5 pl-5 pt-5">
4949
<div className="inline-block" ref={dropdownRef}>
5050
<button className="flex items-center gap-1" onClick={toggleDropdown} aria-label="게시판 변경">
51-
<div className="font-serif text-2xl font-semibold leading-normal">{curRegion}</div>
51+
<div className="typo-sb-2">{curRegion}</div>
5252
<div>
5353
<IconExpandMoreFilled />
5454
</div>

0 commit comments

Comments
 (0)