From e1fbb8880fa6a9d66fb136118ac3d8d642e9d708 Mon Sep 17 00:00:00 2001 From: Kiril Dishliev Date: Wed, 12 Jul 2023 17:20:20 +0300 Subject: [PATCH] change the design of the admin page --- src/components/admin/AdminPage.tsx | 36 ++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/admin/AdminPage.tsx b/src/components/admin/AdminPage.tsx index 4411d9545..35d674dee 100644 --- a/src/components/admin/AdminPage.tsx +++ b/src/components/admin/AdminPage.tsx @@ -9,10 +9,13 @@ import AdminLayout from 'components/common/navigation/AdminLayout' import { adminCards } from 'components/common/navigation/adminMenu' import AdminContainer from 'components/common/navigation/AdminContainer' +const colors = ['#0179a8', '#346cb0', '#5f4b8b', '#b76ba3', '#a7c796', '#00a28a', '#3686a0'] + export default function AdminPage() { const { t } = useTranslation() const router = useRouter() const { data: session, status } = useSession() + if (status !== 'authenticated') { return ( @@ -43,20 +46,39 @@ export default function AdminPage() { {'Добре дошли!'} - + {adminCards.map(({ label, href, icon: Icon }, index) => ( - - - router.push(href)}> + + +
router.push(href)} style={{ cursor: 'pointer' }}> - + - + {label} - +
))}