Skip to content

Commit 54378b5

Browse files
authored
Merge pull request #86 from Soohyuniii/fix/background-color-적용
fix: 전체 레이아웃 내 background color 적용
2 parents 3cdbeb6 + 0d7344c commit 54378b5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import KaKaoLogin from "@/pages/KaKaoLogin";
1111
import MbtiTestIntro from "@/pages/MbtiTestIntro";
1212
import MbtiTestQuestions from "@/pages/MbtiTestQuestions";
1313
import MbtiTestResult from "@/pages/MbtiTestResult";
14-
import CenteredLayout from "./components/CenteredLayout";
14+
import CenteredLayout from "@/components/CenteredLayout";
1515

1616
const App = () => {
1717
return (

src/components/CenteredLayout.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { ReactNode } from 'react';
1+
import { ReactNode } from "react";
22

33
interface CenteredLayoutProps {
44
children: ReactNode;
55
}
66

77
const CenteredLayout = ({ children }: CenteredLayoutProps) => (
8-
<div className="flex justify-center w-screen">
9-
<div className="w-full flex justify-center">
10-
{children}
11-
</div>
8+
<div className="flex min-h-screen w-screen justify-center bg-gray-50">
9+
<div className="flex w-full justify-center bg-gray-50">{children}</div>
1210
</div>
1311
);
1412

0 commit comments

Comments
 (0)