-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/global component #15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,63 +1,9 @@ | ||
| import Blur from "@/components/common/Blur"; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <div className="bg-surface-base flex min-h-screen items-center justify-center font-sans"> | ||
| <main className="flex min-h-screen w-full max-w-3xl flex-col items-center gap-8 px-8 py-12"> | ||
| {/* 토큰 테스트 섹션 */} | ||
| <div className="w-full space-y-8 rounded-lg border border-gray-200 bg-white p-8 shadow-sm"> | ||
| <h1 className="text-24-700 text-brand-black border-b pb-4"> | ||
| 🎨 Design Token Test | ||
| </h1> | ||
|
|
||
| {/* 1. Typography */} | ||
| <section className="space-y-4"> | ||
| <h2 className="text-20-600">1. Typography</h2> | ||
| <div className="space-y-2 rounded bg-gray-50 p-4"> | ||
| <p className="text-24-700">Display 24px (Bold 700)</p> | ||
| <p className="text-20-600">Title 20px (SemiBold 600)</p> | ||
| <p className="text-18-500">Body 18px (Medium 500)</p> | ||
| <p className="text-16-400">Body 16px (Regular 400)</p> | ||
| <p className="text-14-400 text-disabled"> | ||
| Caption 14px (Disabled Color) | ||
| </p> | ||
| </div> | ||
| </section> | ||
|
|
||
| {/* 2. Colors & Backgrounds */} | ||
| <section className="space-y-4"> | ||
| <h2 className="text-20-600">2. Colors & Backgrounds</h2> | ||
| <div className="grid grid-cols-2 gap-4"> | ||
| <div className="bg-brand-secondary-pink flex h-20 items-center justify-center rounded-lg text-white"> | ||
| Pink Secondary | ||
| </div> | ||
| <div className="bg-brand-primary-orange flex h-20 items-center justify-center rounded-lg text-white"> | ||
| Orange Primary | ||
| </div> | ||
| <div className="bg-surface-base border-light flex h-20 items-center justify-center rounded-lg border"> | ||
| Surface Base | ||
| </div> | ||
| <div className="bg-disabled text-disabled flex h-20 items-center justify-center rounded-lg"> | ||
| Disabled Area | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| {/* 3. Buttons */} | ||
| <section className="space-y-4"> | ||
| <h2 className="text-20-600">3. Buttons</h2> | ||
| <div className="flex flex-wrap gap-4"> | ||
| <button className="bg-button-primary text-white text-16-600 rounded-2xl px-8 py-3 transition-opacity hover:opacity-90"> | ||
| Primary Button | ||
| </button> | ||
| <button className="bg-button-slate text-brand-black border-light text-16-600 rounded-2xl border px-8 py-3"> | ||
| Secondary Button | ||
| </button> | ||
| <button className="bg-button-disabled text-disabled text-16-400 cursor-not-allowed rounded-2xl px-8 py-3"> | ||
| Disabled Button | ||
| </button> | ||
| </div> | ||
| </section> | ||
| </div> | ||
| </main> | ||
| </div> | ||
| <main> | ||
| <Blur /> | ||
| </main> | ||
| ); | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전역 레이아웃(
app/layout.tsx)에Blur컴포넌트가 이미 추가되어 있습니다.page.tsx에Blur컴포넌트를 다시 추가하면 중복 렌더링이 발생하여 의도치 않은 결과를 초래할 수 있습니다. 전역 배경 효과라면layout.tsx에서만 렌더링하는 것이 올바른 접근입니다.