Skip to content

Commit

Permalink
Fix(mogua-station#132): 폰트 preload 설정 추가 커밋 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
Stilllee committed Feb 12, 2025
1 parent fe45846 commit 99c1646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
12 changes: 1 addition & 11 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "@/styles/globals.css";
import { type Metadata } from "next";
import dynamic from "next/dynamic";
import localFont from "next/font/local";
import Head from "next/head";
import Providers from "./providers/Providers";
import HeaderWrapper from "@/components/common/layout/HeaderWrapper";
import NavBarWrapper from "@/components/common/layout/NavBarWrapper";
Expand All @@ -20,7 +19,7 @@ const BackgroundWrapper = dynamic(
);

const pretendard = localFont({
src: "/fonts/PretendardVariable.woff2",
src: "./fonts/PretendardVariable.woff2",
display: "swap",
weight: "45 920",
});
Expand Down Expand Up @@ -59,15 +58,6 @@ export default function RootLayout({
}) {
return (
<html lang='ko-KR' className={pretendard.className}>
<Head>
<link
rel='preload'
href='/fonts/PretendardVariable.woff2'
as='font'
type='font/woff2'
crossOrigin='anonymous'
/>
</Head>
<body className='flex min-h-[100dvh] flex-col overflow-x-hidden bg-gray-950 scrollbar:w-1 scrollbar:bg-transparent scrollbar-thumb:rounded-full scrollbar-thumb:bg-orange-300'>
<Providers>
<InitializeUser />
Expand Down
15 changes: 3 additions & 12 deletions src/components/edit-profile/ContactBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ export default function ContactBanner() {
onClick={() => alert(SYSTEM_ALERTS.IN_PROGRESS)}
>
<div className='flex items-center gap-2.5'>
<InfoIcon
width={24}
height={24}
className='size-6 text-gray-400'
aria-hidden='true'
/>
<p className='text-start text-label-reading font-regular leading-snug text-gray-300 tablet:whitespace-nowrap'>
운영자 문의 후 과외 선생님으로
<br className='tablet:hidden' />
활동해보세요
<InfoIcon className='size-6 text-gray-400' aria-hidden='true' />
<p className='max-w-[160px] text-start text-label-reading font-regular text-gray-300 tablet:max-w-full'>
운영자 문의 후 과외 선생님으로 활동해보세요
</p>
</div>
<ArrowIcon
width={24}
height={24}
className='size-6 -rotate-90 text-gray-300'
aria-hidden='true'
/>
Expand Down

0 comments on commit 99c1646

Please sign in to comment.