Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
feat: add header/sidebar to students-home + import bulma
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaVandewalle committed Mar 6, 2024
1 parent 7965212 commit 4122074
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
8 changes: 5 additions & 3 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import LoginScreen from "./pages/login/LoginScreen.tsx";
import HomeAdmin from "./pages/admin/HomeAdmin.tsx";
import HomeStudent from "./pages/student/HomeStudent.tsx";
import HomeTeacher from "./pages/teacher/HomeTeacher.tsx";
import 'bulma/css/bulma.min.css';
import './assets/styles/mainpage.css'

const router = createBrowserRouter([
{
Expand All @@ -33,7 +35,7 @@ const router = createBrowserRouter([
}
]);
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<RouterProvider router={router}/>
</React.StrictMode>,
<React.StrictMode>
<RouterProvider router={router}/>
</React.StrictMode>,
)
16 changes: 15 additions & 1 deletion frontend/src/pages/student/HomeStudent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import {JSX} from "react";
import {Header} from "../../components/Header.tsx";
import {Sidebar} from "../../components/Sidebar.tsx";

export default function HomeStudent(): JSX.Element {
return (
<>Homescreen for a student</>
<>
<div className={"main-header"}>
<Header/>
</div>
<div className={"main-content is-flex is-flex-direction-row"}>
<div className={"side-bar"}>
<Sidebar/>
</div>
<div>
<>Homescreen for a student</>
</div>
</div>
</>
)
}

0 comments on commit 4122074

Please sign in to comment.