Add a static images manager and polish dashboard layout and fonts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-16 23:56:17 +03:30
co-authored by Cursor
parent e79211e3cd
commit b9024ad77a
57 changed files with 2025 additions and 122 deletions
+10 -2
View File
@@ -77,7 +77,11 @@ function isGroupActive(group: NavGroup, pathname: string) {
)
}
export function Sidebar() {
interface SidebarProps {
open?: boolean
}
export function Sidebar({ open = false }: SidebarProps) {
const { pathname } = useLocation()
const navigate = useNavigate()
const { user, logout } = useAuth()
@@ -204,6 +208,7 @@ export function Sidebar() {
basePath: '/website',
children: [
{ labelKey: 'nav.website.overview', to: '/website' },
{ labelKey: 'nav.website.staticImages', to: '/website/static-images' },
{ labelKey: 'nav.website.sliders', to: '/website/sliders' },
{ labelKey: 'nav.website.specialCategories', to: '/website/special-categories' },
{ labelKey: 'nav.website.specialBrands', to: '/website/special-brands' },
@@ -271,7 +276,10 @@ export function Sidebar() {
}
return (
<aside className={styles.sidebar}>
<aside
id="dashboard-sidebar"
className={`${styles.sidebar} ${open ? styles.open : ''}`}
>
<div className={styles.brand}>
{brandLogoUrl ? (
<img