Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SMH-81]: 'SUIT' Font 설치 및 적용 작업 #25

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

juchanhwang
Copy link
Collaborator

@juchanhwang juchanhwang commented May 19, 2024

Jira

배경

기능을 개발하게 된 배경에 대해 작성합니다.

  • 폰트, 'SUIT' 적용

주요 기능

작업한 기능에 대해 작성합니다.

  • 폰트, 'SUIT' 적용하였습니다.
  • 선교 어플리케이션, 어드민에 적용하였습니다.
  • 폰트 파일을 public 폴더 하위에 위치하였습니다.

사용 예시

기능에 대한 사용 예시를 자유롭게(텍스트, 코드, 스크린샷) 작성합니다.

├── src/
│   ├── apps/
│       ├── layout.tsx
│   ├── styles/
│       ├── _global.scss
│       ├── _font.scss
├── public/
│   ├── fonts/
│       ├── SUIT-Thin.woff2
│       ├── SUIT-ExtraLight.woff2
│       ├── SUIT-Light.woff2
│       ├── SUIT-Regular.woff2
│       ├── SUIT-Medium.woff2
│       ├── SUIT-SemiBold.woff2
│       ├── SUIT-Bold.woff2
│       ├── SUIT-ExtraBold.woff2
│       ├── SUIT-Heavy.woff2

_font.scss 파일

@font-face {
  font-family: 'SUIT';
  font-weight: 100;
  src: url('/fonts/SUIT-Thin.woff2') format('woff2');
}
......

layout.tsx 파일에 font 적용

import '@styles/_global.scss';
import type { Metadata } from 'next';

const RootLayout = ({ children }: { children: React.ReactNode }) => (
  <html lang="ko">
    <body>
      <main>{children}</main>
    </body>
  </html>
);

export default RootLayout;

기타

@juchanhwang juchanhwang merged commit 1496a3d into dev May 29, 2024
4 checks passed
@juchanhwang juchanhwang deleted the refactor/SMH-81 branch May 29, 2024 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants