Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 102 additions & 14 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.13.1",
"pretendard": "^1.3.9",
"react": "^19.1.1",
"react-dom": "^19.1.1",
Expand Down
Binary file added frontend/src/assets/coin3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/coin5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions frontend/src/components/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import { Outlet } from 'react-router-dom';
import { Outlet, useLocation } from 'react-router-dom';
import Sidebar from './Sidebar';

function Layout() {
const location = useLocation();
const isRoot = location.pathname === '/';

return (
<div style={{ display: 'flex' }}>
<Sidebar />
<main style={{ flex: 1, backgroundColor: '#ffffff' }}>
<div style={{ display: 'flex', position: 'relative' }}>
{/* 홈이 아닐 때는 Sidebar 고정 */}
{!isRoot && <Sidebar />}

<main
style={{ flex: 1, backgroundColor: '#ffffff', position: 'relative' }}
>
{/* 홈일 때만 Sidebar를 main 내부에서 렌더링 (햄버거 + 슬라이드) */}
{isRoot && <Sidebar />}
<Outlet />
</main>
</div>
Expand Down
Loading