mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 14:04:07 +01:00
Fix layout - Sidebar and Nav placement
This commit is contained in:
parent
de3abcee06
commit
79186766dc
@ -14,10 +14,14 @@ import IconSideNav from './components/IconSideNav'; // Import IconSideNav
|
|||||||
const App = () => {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<div className="App">
|
<div className='display: flex'>
|
||||||
|
<IconSideNav />
|
||||||
|
<div className='flex-1'>
|
||||||
<NavBar />
|
<NavBar />
|
||||||
|
<div className='flex items-center justify-center'>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Home />} />
|
<Route path="/" element={<Home />} />
|
||||||
|
<Route path="/tasks" element={<KanbanBoard />} />
|
||||||
<Route path="/login" element={<LoginPage />} />
|
<Route path="/login" element={<LoginPage />} />
|
||||||
<Route path="/signup" element={<SignUpPage />} />
|
<Route path="/signup" element={<SignUpPage />} />
|
||||||
<Route path="/testAuth" element={<TestAuth />} />
|
<Route path="/testAuth" element={<TestAuth />} />
|
||||||
@ -25,10 +29,8 @@ const App = () => {
|
|||||||
<Route path="/calendar" element={<Calendar />} />
|
<Route path="/calendar" element={<Calendar />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<IconSideNav /> {<KanbanBoard />}
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,6 @@ const IconSideNav = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="bg-slate-900 text-slate-100 flex">
|
<div className="bg-slate-900 text-slate-100 flex">
|
||||||
<SideNav />
|
<SideNav />
|
||||||
<div className="w-full"></div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -27,7 +26,7 @@ const SideNav = () => {
|
|||||||
const [selected, setSelected] = useState(0);
|
const [selected, setSelected] = useState(0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className="h-[500px] w-fit bg-slate-950 p-4 flex flex-col items-center gap-2">
|
<nav className="bg-slate-950 p-4 flex flex-col items-center gap-2 h-screen">
|
||||||
{menuItems.map((item) => (
|
{menuItems.map((item) => (
|
||||||
<NavItem
|
<NavItem
|
||||||
key={item.id}
|
key={item.id}
|
||||||
|
|||||||
@ -119,12 +119,10 @@ function KanbanBoard() {
|
|||||||
className="
|
className="
|
||||||
m-auto
|
m-auto
|
||||||
flex
|
flex
|
||||||
min-h-screen
|
|
||||||
w-full
|
w-full
|
||||||
items-center
|
items-center
|
||||||
overflow-x-auto
|
overflow-x-auto
|
||||||
overflow-y-hidden
|
overflow-y-hidden
|
||||||
px-[40px]
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<DndContext
|
<DndContext
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user