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 #60 from SELab-2/settings-screen
Settings screen
- Loading branch information
Showing
6 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
|
@@ -34,9 +34,4 @@ | |
|
||
.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,6 @@ | ||
.popup { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} |
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,26 @@ | ||
import { BiLogOut } from "react-icons/bi"; | ||
import '../assets/styles/small_components.css' | ||
import {JSX} from "react"; | ||
|
||
|
||
export default function Settings(): JSX.Element { | ||
return ( | ||
<> | ||
<div className={"popup px-5 py-5 card"}> | ||
<p className={"title is-flex is-justify-content-center"}>Settings</p> | ||
<img src={"/delphi_full.png"} alt={"image"}/> | ||
<div className={"is-flex px-5 py-1 is-align-items-center"}> | ||
<p>Logout: </p> | ||
<a className={"button mx-5 px-2"}><BiLogOut size={25}></BiLogOut></a> | ||
</div> | ||
<div> | ||
<p className={"py-2"}>Select workstation: </p> | ||
<div className={"is-flex is-justify-content-space-evenly"}> | ||
<button className={"button is-success"}>teacher</button> | ||
<button className={"button is-danger"}>admin</button> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
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,16 +1,27 @@ | ||
import {JSX} from "react"; | ||
import {JSX, useState} from "react"; | ||
import { IoHomeSharp } from "react-icons/io5"; | ||
import { PiProjectorScreen, PiFolder } from "react-icons/pi"; | ||
import { IoMdSettings } from "react-icons/io"; | ||
import Settings from "./Settings.tsx"; | ||
|
||
export function Sidebar(): JSX.Element { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
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> | ||
<> | ||
<aside className={"menu is-flex is-flex-direction-column is-justify-content-space-between"}> | ||
<ul className={"menu-list"}> | ||
<li><a><IoHomeSharp size={30}/></a></li> | ||
<li><a><PiProjectorScreen size={30}/></a></li> | ||
<li><a><PiFolder size={30}/></a></li> | ||
</ul> | ||
<ul className={"menu-list"}> | ||
<li><a className={"is-transparent"} onClick={() => setIsOpen(!isOpen)}><IoMdSettings size={30}/></a> | ||
</li> | ||
</ul> | ||
</aside> | ||
{isOpen && <Settings/>} | ||
</> | ||
) | ||
} | ||
|
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