Skip to content

Commit 01827ee

Browse files
committed
style: 레이아웃 스타일 통합 및 전역 zoom 적용
1 parent f20c82c commit 01827ee

6 files changed

Lines changed: 22 additions & 5 deletions

File tree

src/app/layout/MainLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export default function MainLayout() {
55
return (
66
<div className="min-h-screen bg-white">
77
<Header />
8-
<Outlet />
8+
<div className="pt-spacing-header-content)">
9+
<Outlet />
10+
</div>
911
</div>
1012
);
1113
}

src/app/styles/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,15 @@
9292
--radius-l: 24px;
9393
--radius-m: 16px;
9494
--radius-s: 8px;
95+
96+
/* Layout */
97+
--spacing-header-content: 54px;
9598
}
9699

97100
@layer base {
98101
html {
99102
font-family: var(--font-sans);
103+
zoom: 0.9;
100104
}
101105

102106
/* View Transitions */

src/pages/main/ui/MainPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function MainPage() {
1111
const navigate = useNavigate();
1212

1313
return (
14-
<main className="flex w-full flex-col items-center gap-14 px-4 pt-8 pb-24">
14+
<main className="flex w-full flex-col items-center gap-14 px-4 pb-24">
1515
<section className="h-79.25 w-full max-w-300" aria-label="메인 슬로건 영역">
1616
<ClientOnly>
1717
<Carousel3D slides={CAROUSEL_SLIDES} />

src/pages/sell/ui/SellPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const SellPage = () => {
55
return (
66
<div className="w-full bg-white">
77
<div className="mx-auto min-h-screen w-full max-w-[1440px] bg-white px-4 pb-[112px] md:px-[120px]">
8-
<main className="mt-[55px] flex flex-col">
8+
<main className="flex flex-col">
99
<SellPageHeader />
1010
<SellForm />
1111
</main>

src/pages/sell/ui/SellPageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const SellPageHeader = () => {
22
return (
3-
<section className="flex h-[266px] items-center justify-center bg-[linear-gradient(180deg,var(--color-brand-primary)_0%,var(--color-white)_100%)] py-[67px]">
3+
<section className="rounded-t-l flex h-[266px] items-center justify-center bg-[linear-gradient(180deg,var(--color-brand-primary)_0%,var(--color-white)_100%)] py-[67px]">
44
<div className="gap-xxs flex w-full max-w-[1200px] flex-col items-center text-center">
55
<h1 className="typo-title-1 text-gray-900">나의 전자 기기 판매하기</h1>
66
</div>

src/shared/ui/Header/Header.variants.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,18 @@ const baseButton = ['bg-transparent', 'cursor-pointer'];
55
export const headerVariants = tv({
66
slots: {
77
// Layout
8-
root: ['flex', 'w-full', 'h-[92px]', 'justify-between', 'items-center', 'bg-white', 'px-10', 'xl:px-[120px]'],
8+
root: [
9+
'flex',
10+
'w-full',
11+
'max-w-[1440px]',
12+
'mx-auto',
13+
'h-[92px]',
14+
'justify-between',
15+
'items-center',
16+
'bg-white',
17+
'px-10',
18+
'xl:px-[120px]',
19+
],
920
logo: ['w-[192px]', 'h-[36px]', 'shrink-0'],
1021

1122
// Desktop Navigation

0 commit comments

Comments
 (0)