Skip to content

Commit

Permalink
chore: 배경색 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-r committed Apr 24, 2024
1 parent 7e8cc8c commit 034c81c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={cn(inter.variable)}>{children}</body>
<body className={cn(inter.variable)}>
<div className="h-screen w-full bg-gray-05">{children}</div>
</body>
</html>
)
}
4 changes: 2 additions & 2 deletions src/components/left-nav-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ export const LeftNavLayout = ({ children }: PropsWithChildren) => {

return (
<div className={cn('flex', activeItem && 'pl-[240px]')}>
{children}
{activeItem && (
<div className="fixed left-0 z-50 flex h-screen w-[240px] flex-col items-center border-r border-gray-20 p-5">
<div className="fixed left-0 z-50 flex h-screen w-[240px] flex-col items-center border-r border-gray-20 bg-white p-5">
<div className="flex items-center gap-[14px]">
<div className="size-9 rounded-lg bg-gray-20" />
<LogoIcon />
Expand All @@ -74,6 +73,7 @@ export const LeftNavLayout = ({ children }: PropsWithChildren) => {
</div>
</div>
)}
{children}
</div>
)
}
Expand Down

0 comments on commit 034c81c

Please sign in to comment.