feat: add admin layout components including Navbar and Sidebar, and update icon components

This commit is contained in:
Ardeman
2025-02-23 12:18:10 +08:00
parent 47af75ebd3
commit 48ac1d6f4d
15 changed files with 307 additions and 18 deletions
+16 -13
View File
@@ -5,7 +5,20 @@ import { InstagramIcon } from '~/components/icons/instagram'
import { LinkedinIcon } from '~/components/icons/linkedin'
import { XIcon } from '~/components/icons/x'
export const MENU = [
type TMenu = {
title: string
url: string
icon?: (
properties: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>,
) => JSX.Element
}
type TFooterMenu = {
group: string
items: TMenu[]
}
export const MENU: TMenu[] = [
{
title: 'Spotlight',
url: '/news/category/spotlight',
@@ -36,17 +49,7 @@ export const MENU = [
},
]
type FooterMenu = {
group: string
items: Array<{
title: string
url: string
icon?: (
properties: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>,
) => JSX.Element
}>
}
export const FOOTER_MENU: FooterMenu[] = [
export const FOOTER_MENU: TFooterMenu[] = [
{
group: 'About Us',
items: [
@@ -124,7 +127,7 @@ export const FOOTER_MENU: FooterMenu[] = [
},
]
export const COPYRIGHT_MENU = [
export const COPYRIGHT_MENU: TMenu[] = [
{
title: 'Privacy Policy',
url: '/news/privacy-policy',