add problems

This commit is contained in:
Виталий Лавшонок
2025-10-28 23:15:29 +03:00
parent edd4426780
commit 71985fa04f
9 changed files with 625 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import { useAppSelector } from "../../../redux/hooks";
const Menu = () => {
const menuItems = [
{text: "Главная", href: "/home", icon: Home, page: "home" },
{text: "Задачи", href: "/home", icon: Clipboard, page: "clipboard" },
{text: "Задачи", href: "/home/problems", icon: Clipboard, page: "clipboard" },
{text: "Статьи", href: "/home", icon: Openbook, page: "openbool" },
{text: "Группы", href: "/home", icon: Users, page: "users" },
{text: "Контесты", href: "/home", icon: Cup, page: "cup" },
@@ -15,8 +15,8 @@ const Menu = () => {
const activePage = useAppSelector((state) => state.store.menu.activePage);
return (
<div className="h-full w-full items-center box-border p-[20px] pt-[35px]">
<img src={Logo} className="w-full" />
<div className="w-[250px] fixed top-0 items-center box-border p-[20px] pt-[35px]">
<img src={Logo} className="w-[173px]" />
<div className="">
{menuItems.map((v, i) => (
<MenuItem key={i} icon={v.icon} text={v.text} href={v.href} active={v.page == activePage} page={v.page}/>