This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from SELab-2/sidebar-header
Sidebar + header + logo's
- Loading branch information
Showing
17 changed files
with
116 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.main-header { | ||
width: 100vw; | ||
height: 8vh; | ||
background-color: #9c9afd; | ||
} | ||
|
||
.main-nav { | ||
height: 100%; | ||
|
||
img { | ||
background-color: #5f63c8; | ||
height: 100%; | ||
} | ||
} | ||
|
||
.main-content { | ||
width: 100vw; | ||
height: 92vh; | ||
} | ||
|
||
.side-bar { | ||
width: 4.15vw; | ||
background-color: #6a74ce; | ||
|
||
li { | ||
height: 10vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 5%; | ||
} | ||
} | ||
|
||
.icon { | ||
height: 50%; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {JSX} from "react"; | ||
import {RiAccountPinBoxLine} from "react-icons/ri"; | ||
|
||
export function Header(): JSX.Element { | ||
return ( | ||
<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>Project</p></p> | ||
<button className={"button mx-2 is-transparent"}> | ||
<div className={"icon-text"}> | ||
<p>Username</p> | ||
<RiAccountPinBoxLine className={"icon"}/> | ||
</div> | ||
</button> | ||
</nav> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {JSX} from "react"; | ||
import { IoHomeSharp } from "react-icons/io5"; | ||
import { PiProjectorScreen, PiFolder } from "react-icons/pi"; | ||
|
||
export function Sidebar(): JSX.Element { | ||
return ( | ||
<aside className={"menu"}> | ||
<ul className={"menu-list"}> | ||
<li><a className={"is-transparent"}><IoHomeSharp size={30}/></a></li> | ||
<li><a className={"is-transparent"}><PiProjectorScreen size={30}/></a></li> | ||
<li><a className={"is-transparent"}><PiFolder size={30}/></a></li> | ||
</ul> | ||
</aside> | ||
) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,5 @@ | ||
:root { | ||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
line-height: 1.5; | ||
font-weight: 400; | ||
|
||
color-scheme: light dark; | ||
color: rgba(255, 255, 255, 0.87); | ||
background-color: #242424; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
a { | ||
font-weight: 500; | ||
color: #646cff; | ||
text-decoration: inherit; | ||
} | ||
a:hover { | ||
color: #535bf2; | ||
} | ||
|
||
body { | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
display: flex; | ||
place-items: center; | ||
min-width: 320px; | ||
min-height: 100vh; | ||
} | ||
|
||
h1 { | ||
font-size: 3.2em; | ||
line-height: 1.1; | ||
} | ||
|
||
button { | ||
border-radius: 8px; | ||
border: 1px solid transparent; | ||
padding: 0.6em 1.2em; | ||
font-size: 1em; | ||
font-weight: 500; | ||
font-family: inherit; | ||
background-color: #1a1a1a; | ||
cursor: pointer; | ||
transition: border-color 0.25s; | ||
} | ||
button:hover { | ||
border-color: #646cff; | ||
} | ||
button:focus, | ||
button:focus-visible { | ||
outline: 4px auto -webkit-focus-ring-color; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { | ||
:root { | ||
color: #213547; | ||
background-color: #ffffff; | ||
} | ||
a:hover { | ||
color: #747bff; | ||
} | ||
button { | ||
background-color: #f9f9f9; | ||
} | ||
} | ||
box-sizing: border-box; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
</> | ||
) | ||
} |