Skip to content

Commit ebe2cc8

Browse files
committed
다른 페이지에서도 다크모드 적용
1 parent 32e4815 commit ebe2cc8

File tree

7 files changed

+26
-24
lines changed

7 files changed

+26
-24
lines changed

app/chat/[roomId]/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ export default function ChatRoomPage({ params }: ChatRoomPageProps) {
3636
setTempMessage(null);
3737
}, [roomId, mutate, setTempMessage, tempMessage?.roomId, tempMessage?.userMessage]);
3838

39-
4039
return (
4140
<Suspense>
42-
<div className="flex flex-col">
41+
<div className="flex flex-col max-w-[1024px]">
4342
{/* 상단에 메뉴 표시 */}
4443
<div>
4544
<ChatMenu />

app/layout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ export default function RootLayout({
9090
</head>
9191
<body className={`${plus_jakarta_sans.variable} ${noto_sans_kr.variable} antialiased min-h-screen flex flex-col`}>
9292
<main className="flex-grow text-blue dark:text-blue-250">
93-
<div className="w-full max-w-[1024px] mx-auto">
94-
<JotaiProvider>
95-
<QueryProvider>
96-
<ServerAuthProvider>
97-
<StorageInitializer>{children}</StorageInitializer>
98-
</ServerAuthProvider>
99-
</QueryProvider>
100-
</JotaiProvider>
93+
<div className="w-full mx-auto">
94+
<JotaiProvider>
95+
<QueryProvider>
96+
<ServerAuthProvider>
97+
<StorageInitializer>{children}</StorageInitializer>
98+
</ServerAuthProvider>
99+
</QueryProvider>
100+
</JotaiProvider>
101101
</div>
102102
</main>
103103
<Suspense fallback={null}>

app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export default function Home() {
77
return (
88
<div className="font-sans">
99
<section className="h-screen flex items-center justify-center relative ">
10-
<div className="absolute inset-x-0 top-0 h-1/2 bg-blue -z-20 pointer-events-none">
11-
<Image className="object-cover opacity-60" src={'/logo1.png'} alt={'logo'} fill />
10+
<div className="absolute inset-x-0 top-0 h-1/2 bg-blue dark:bg-blue-800 -z-20 pointer-events-none">
11+
<Image className="object-cover opacity-60 dark:opacity-30" src={'/logo1.png'} alt={'logo'} fill />
1212
</div>
1313
<div className="absolute inset-0 -z-10 pointer-events-none"></div>
14-
<div className="max-w-5xl mx-auto pb-24 px-4 w-full bg-white rounded-4xl shadow-2xl">
14+
<div className="max-w-5xl mx-auto pb-24 px-4 w-full bg-white dark:bg-slate-800 rounded-4xl shadow-2xl">
1515
<HeroSection />
1616
<NextChat />
1717
</div>
@@ -40,7 +40,7 @@ export default function Home() {
4040
</div>
4141
</section>
4242

43-
<section id="about" className="py-20 md:py-28 bg-white">
43+
<section id="about" className="py-20 md:py-28">
4444
<div className="max-w-6xl mx-auto px-4">
4545
<Explanation />
4646
</div>

app/signin/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import SigninSNSForm from '@/components/auth/SigninSNSForm';
22
import LoginBackground from '@/components/auth/LoginBackground';
33
import Image from 'next/image';
4+
import LoginBackgroundDark from '@/components/auth/LoginBackgroundDark';
45

56
export default function SigninPage() {
67
return (
78
<div className="min-h-screen flex items-center justify-center relative overflow-hidden">
89
<LoginBackground />
10+
<LoginBackgroundDark />
911

1012
{/* 메인 컨텐츠 */}
1113
<div className="relative z-10 w-full max-w-4xl mx-4">
12-
<div className="bg-white/70 backdrop-blur-xl rounded-3xl shadow-2xl border border-white/20 p-16 space-y-12">
14+
<div className="bg-white/70 dark:bg-slate-800 backdrop-blur-xl rounded-3xl shadow-2xl p-16 space-y-12">
1315
{/* 헤더 섹션 */}
1416
<div className="text-center space-y-8">
15-
<div className="inline-flex items-center justify-center w-32 h-32 bg-white rounded-3xl shadow-lg p-4">
17+
<div className="inline-flex items-center justify-center w-32 h-32 bg-white dark:bg-slate-800 rounded-3xl shadow-lg dark:shadow-none p-4">
1618
<Image
1719
src="/TFT_icon.png"
1820
alt="The First Take"

src/components/auth/LoginBackground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function LoginBackground() {
22
return (
3-
<div className="fixed inset-0 w-screen h-screen z-0">
3+
<div className="dark:hidden fixed inset-0 w-screen h-screen z-0">
44
<svg
55
viewBox="0 0 1920 1080"
66
xmlns="http://www.w3.org/2000/svg"

src/components/auth/LoginBackgroundDark.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function LoginBackgroundDark() {
22
return (
3-
<div className="fixed inset-0 w-screen h-screen z-0">
3+
<div className="hidden dark:block fixed inset-0 w-screen h-screen z-0">
44
<svg
55
viewBox="0 0 1920 1080"
66
xmlns="http://www.w3.org/2000/svg"
@@ -157,5 +157,3 @@ export default function LoginBackgroundDark() {
157157
</div>
158158
);
159159
}
160-
161-

src/components/landing/NextChat.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,18 @@ export default function NextChat() {
9090
<div className="relative group">
9191
<div className="absolute -inset-0.5 bg-gradient-to-r rounded-2xl blur opacity-20 group-hover:opacity-30 transition duration-300"></div>
9292
<div className="relative">
93-
<div className="
93+
<div
94+
className="
9495
w-full min-h-[70px] max-h-[140px]
95-
bg-white border-2 border-gray-200
96+
bg-white dark:bg-slate-700 border-2 border-gray-200 dark:border-slate-700
9697
rounded-2xl
9798
focus-within:border-blue-400 focus-within:ring-4 focus-within:ring-blue-100
9899
shadow-lg hover:shadow-xl
99100
transition-all duration-300 ease-out
100101
backdrop-blur-sm
101102
flex items-end justify-between p-4
102-
">
103+
"
104+
>
103105
<Textarea
104106
value={inputValue}
105107
onChange={(e) => setInputValue(e.target.value)}
@@ -111,7 +113,8 @@ export default function NextChat() {
111113
}}
112114
placeholder="패션에 대해 마음대로 물어보세요! 예: '데이트룩 추천해줘'"
113115
className="
114-
flex-1 bg-transparent resize-none
116+
flex-1 resize-none
117+
bg-transparent dark:bg-slate-700
115118
text-lg
116119
border-none focus-visible:border-0 focus:outline-none focus:ring-0
117120
placeholder:text-gray-400

0 commit comments

Comments
 (0)