diff --git a/frontend/src/components/NavBar.tsx b/frontend/src/components/NavBar.tsx index cce564d..ebec9c3 100644 --- a/frontend/src/components/NavBar.tsx +++ b/frontend/src/components/NavBar.tsx @@ -18,7 +18,7 @@ export default function NavBar() { const navItems = [ { icon: "mdi:book", label: "Courses", path: "/courses" }, - { icon: "mdi:earth", label: "Collab", path: "/collab-learning" }, + { icon: "mdi:earth", label: "Chat", path: "/collab-learning" }, { icon: "mdi:clipboard-text-clock", label: "Review", path: "/review" }, { icon: "mdi:microphone-message", label: "Speaking", path: "/speaking" }, { icon: "mdi:account", label: "Profile", path: "/profile" }, diff --git a/frontend/src/pages/Profile.sass b/frontend/src/pages/Profile.sass new file mode 100644 index 0000000..ea1f3e0 --- /dev/null +++ b/frontend/src/pages/Profile.sass @@ -0,0 +1,21 @@ +@import "../index" + +.profile-stats > div + @extend .box + + display: flex + align-items: center + gap: 10px + + * + white-space: nowrap + + svg + font-size: 2em + max-width: 25px + + > div + > div:nth-child(2) + font-size: 0.9em + + diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index 04597cb..e5ea19f 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx @@ -1,28 +1,91 @@ import NavBar from "../components/NavBar" -import { getUsername, getLanguage, logout } from "../logic/sdk" -import { useNavigate } from "react-router-dom" +import {getUsername, getLanguage, logout} from "../logic/sdk" +import {useNavigate} from "react-router-dom" +import {Icon} from "@iconify/react"; +import React from "react"; +import "./Profile.sass" -export default function Profile() { +export default function Profile() +{ - const username = getUsername(); - const navigate = useNavigate(); + const username = getUsername(); + const lang = getLanguage(); + const navigate = useNavigate(); - function handleLougout() { - logout(); - console.log("Logged out"); - navigate('/') - } + function handleLougout() + { + logout(); + console.log("Logged out"); + navigate('/') + } - return ( -