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

Commit

Permalink
Add variable page title
Browse files Browse the repository at this point in the history
  • Loading branch information
ALBERICLOOS committed Mar 18, 2024
1 parent 9736255 commit 0b47ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {JSX} from "react";
import {RiAccountPinBoxLine} from "react-icons/ri";

export function Header(): JSX.Element {
export function Header(props: { page_title: string }): JSX.Element {
return (
<nav className={"main-nav is-flex is-flex-direction-row is-justify-content-space-between is-align-items-center"}>
<nav
className={"main-nav is-flex is-flex-direction-row is-justify-content-space-between is-align-items-center"}>
<img src={"/delphi_favicon_circle.png"} alt={"image"}/>
<p className={"is-align-self-center"}><p>Home</p></p>
<p className={"is-align-self-center"}><p>{props.page_title}</p></p>
<button className={"button mx-2 is-transparent"}>
<div className={"icon-text"}>
<p>Username</p>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/student/HomeStudent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function HomeStudent(): JSX.Element {
return (
<>
<div className={"main-header"}>
<Header/>
<Header page_title={"Home"}/>
</div>
<div className={"main-content is-flex is-flex-direction-row"}>
<div className={"side-bar is-flex is-justify-content-center"}>
Expand Down

0 comments on commit 0b47ab2

Please sign in to comment.