From 63d44ce83daf1f78bbe4241346f621cd53f4222d Mon Sep 17 00:00:00 2001 From: sunkite Date: Wed, 22 Apr 2026 16:21:33 +0900 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20=EC=8B=9C=EC=9E=91=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=EB=A7=8C=20client=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=EB=A1=9C=20=EB=B6=84=EB=A6=AC=20(#1?= =?UTF-8?q?99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/intro/page.tsx | 19 ++----------------- src/components/common/Button/StartButton.tsx | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 src/components/common/Button/StartButton.tsx diff --git a/src/app/intro/page.tsx b/src/app/intro/page.tsx index e5c663a4..82702b26 100644 --- a/src/app/intro/page.tsx +++ b/src/app/intro/page.tsx @@ -1,24 +1,9 @@ -'use client'; - import Image from 'next/image'; -import { useRouter } from 'next/navigation'; - import Onboarding1Image from '@/assets/images/onboarding-1.jpg'; -import Button from '@/components/common/Button'; -import { PATH } from '@/constants/common/path'; import { ONBOARDING_CONTENT } from '@/constants/intro/onBoardingContent'; +import StartButton from '@/components/common/Button/StartButton'; const OnBoardingPage = () => { - const router = useRouter(); - - const handleStart = () => { - const token = localStorage.getItem('accessToken'); - if (!token) { - router.push(PATH.LOGIN); - return; - } - router.push(PATH.HOME); - }; return (
@@ -65,7 +50,7 @@ const OnBoardingPage = () => { ))}
- +
diff --git a/src/components/common/Button/StartButton.tsx b/src/components/common/Button/StartButton.tsx new file mode 100644 index 00000000..dd80fcbf --- /dev/null +++ b/src/components/common/Button/StartButton.tsx @@ -0,0 +1,16 @@ +'use client'; + +import { useRouter } from 'next/navigation'; +import Button from '@/components/common/Button'; +import { PATH } from '@/constants/common/path'; + +export default function StartButton() { + const router = useRouter(); + + const handleStart = () => { + const token = localStorage.getItem('accessToken'); + router.push(token ? PATH.HOME : PATH.LOGIN); + }; + + return ; +} \ No newline at end of file From 8a2477754a8d8c7101333d6675f8f32c8c10f95f Mon Sep 17 00:00:00 2001 From: sunkite Date: Wed, 22 Apr 2026 16:22:03 +0900 Subject: [PATCH 2/5] =?UTF-8?q?refactor:=20priority=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0=20=20(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/intro/page.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/intro/page.tsx b/src/app/intro/page.tsx index 82702b26..96a50f5d 100644 --- a/src/app/intro/page.tsx +++ b/src/app/intro/page.tsx @@ -37,7 +37,6 @@ const OnBoardingPage = () => { src={section.imageSrc} alt={section.imageAlt} fill - priority sizes="100vw" className="object-cover" /> From a629bf15df7ec332176f495033ea12b1261e142b Mon Sep 17 00:00:00 2001 From: sunkite Date: Wed, 22 Apr 2026 20:23:33 +0900 Subject: [PATCH 3/5] =?UTF-8?q?fix:=20fetchPriority=EC=99=80=20=EB=B0=98?= =?UTF-8?q?=EC=9D=91=ED=98=95=20sizes=EB=A5=BC=20=ED=99=9C=EC=9A=A9?= =?UTF-8?q?=ED=95=9C=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=A1=9C=EB=94=A9=20?= =?UTF-8?q?=EC=B5=9C=EC=A0=81=ED=99=94=20(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/intro/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/intro/page.tsx b/src/app/intro/page.tsx index 96a50f5d..ed65c0f6 100644 --- a/src/app/intro/page.tsx +++ b/src/app/intro/page.tsx @@ -24,7 +24,8 @@ const OnBoardingPage = () => { alt="온보딩 - 위시풀 이미지" fill priority - sizes="100vw" + fetchPriority='high' + sizes="(max-width: 430px) 100vw, 430px" className="object-cover" />
@@ -37,7 +38,7 @@ const OnBoardingPage = () => { src={section.imageSrc} alt={section.imageAlt} fill - sizes="100vw" + sizes="(max-width: 430px) 100vw, 430px" className="object-cover" /> From 810ac088b7d109cbabac7385ad6bab55884d2f9d Mon Sep 17 00:00:00 2001 From: sunkite Date: Wed, 22 Apr 2026 20:32:31 +0900 Subject: [PATCH 4/5] =?UTF-8?q?refactor:=20suite=20=ED=8F=B0=ED=8A=B8=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20weight=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/font.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/styles/font.ts b/src/styles/font.ts index 87fb04a8..a7909bf7 100644 --- a/src/styles/font.ts +++ b/src/styles/font.ts @@ -2,16 +2,6 @@ import localFont from 'next/font/local'; export const suite = localFont({ src: [ - { - path: '../../public/fonts/suite/SUITE-Light.woff2', - weight: '300', - style: 'normal', - }, - { - path: '../../public/fonts/suite/SUITE-Regular.woff2', - weight: '400', - style: 'normal', - }, { path: '../../public/fonts/suite/SUITE-Medium.woff2', weight: '500', @@ -27,16 +17,6 @@ export const suite = localFont({ weight: '700', style: 'normal', }, - { - path: '../../public/fonts/suite/SUITE-ExtraBold.woff2', - weight: '800', - style: 'normal', - }, - { - path: '../../public/fonts/suite/SUITE-Heavy.woff2', - weight: '900', - style: 'normal', - }, ], variable: '--font-suite', display: 'swap', From 25fb6045395a7af9eda7bc7c9a6b81360568da6d Mon Sep 17 00:00:00 2001 From: sunkite Date: Wed, 22 Apr 2026 20:51:09 +0900 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20prettier=20=EB=B0=98=EC=98=81=20(#19?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/intro/page.tsx | 5 +++-- src/components/common/Button/StartButton.tsx | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/intro/page.tsx b/src/app/intro/page.tsx index ed65c0f6..66b9d4be 100644 --- a/src/app/intro/page.tsx +++ b/src/app/intro/page.tsx @@ -1,7 +1,8 @@ import Image from 'next/image'; + import Onboarding1Image from '@/assets/images/onboarding-1.jpg'; -import { ONBOARDING_CONTENT } from '@/constants/intro/onBoardingContent'; import StartButton from '@/components/common/Button/StartButton'; +import { ONBOARDING_CONTENT } from '@/constants/intro/onBoardingContent'; const OnBoardingPage = () => { return ( @@ -24,7 +25,7 @@ const OnBoardingPage = () => { alt="온보딩 - 위시풀 이미지" fill priority - fetchPriority='high' + fetchPriority="high" sizes="(max-width: 430px) 100vw, 430px" className="object-cover" /> diff --git a/src/components/common/Button/StartButton.tsx b/src/components/common/Button/StartButton.tsx index dd80fcbf..7c120a61 100644 --- a/src/components/common/Button/StartButton.tsx +++ b/src/components/common/Button/StartButton.tsx @@ -1,6 +1,7 @@ 'use client'; import { useRouter } from 'next/navigation'; + import Button from '@/components/common/Button'; import { PATH } from '@/constants/common/path'; @@ -13,4 +14,4 @@ export default function StartButton() { }; return ; -} \ No newline at end of file +}