diff --git a/frontend/src/App.module.css b/frontend/src/App.module.css index c218608..09d1c28 100644 --- a/frontend/src/App.module.css +++ b/frontend/src/App.module.css @@ -46,6 +46,7 @@ body { text-align: center; white-space: nowrap; display: inline-block; + cursor: pointer; } .navYear { @@ -234,4 +235,11 @@ body { width: 20px; height: auto; padding: 0px 4px 4px 4px; +} + +/* --------------------------------------------------------- LOGIN/REGISTER PAGE STYLES ---------------------------------------------------*/ + +.authPage { + padding: 20px; + width: 60%; } \ No newline at end of file diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 259d00d..1a4b54e 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -7,6 +7,17 @@ const Header: React.FC<{}> = () => { const navigate = useNavigate(); + const [loginState, setLoginState] = useState(false); + + const logout = () => { + // Call logout route in backend + navigate("/"); + } + + useEffect(() => { + // Detect whether user is logged in here D: + }, []); + return ( <>