Polish business FA layout and wire special-group keys plus SSL sync.
RTL carousels/FABs, special key+title fields, slider gallery fixes, and dashboard SSL sync agent for super-admin. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
66004a0fba
commit
672091d1f5
@@ -1,40 +1,50 @@
|
||||
import { FileText, PlusCircle, FolderTree, Settings } from 'lucide-react'
|
||||
import { SectionCard } from '../components/SectionCard'
|
||||
import { Breadcrumbs } from '../components/Breadcrumbs'
|
||||
import { useT } from '../i18n/useT'
|
||||
import type { BusinessMessageKey } from '../i18n/messages'
|
||||
import styles from '../components/PageContent.module.css'
|
||||
|
||||
const blogSections = [
|
||||
const blogSections: {
|
||||
icon: typeof FileText
|
||||
titleKey: BusinessMessageKey
|
||||
descKey: BusinessMessageKey
|
||||
linkKey: BusinessMessageKey
|
||||
href: string
|
||||
}[] = [
|
||||
{
|
||||
icon: FileText,
|
||||
title: 'My Blogs',
|
||||
description: 'View, edit and manage all your blog posts.',
|
||||
linkText: 'View blogs',
|
||||
titleKey: 'nav.blog.list',
|
||||
descKey: 'blog.card.list.desc',
|
||||
linkKey: 'blog.card.list.link',
|
||||
href: '/blog/list',
|
||||
},
|
||||
{
|
||||
icon: PlusCircle,
|
||||
title: 'Add New Blog',
|
||||
description: 'Create and publish a new blog post.',
|
||||
linkText: 'Add blog',
|
||||
titleKey: 'nav.blog.new',
|
||||
descKey: 'blog.card.new.desc',
|
||||
linkKey: 'blog.card.new.link',
|
||||
href: '/blog/new',
|
||||
},
|
||||
{
|
||||
icon: FolderTree,
|
||||
title: 'Blog Categories',
|
||||
description: 'Organize your blog posts into categories and subcategories.',
|
||||
linkText: 'View categories',
|
||||
titleKey: 'blog.card.categories.title',
|
||||
descKey: 'blog.card.categories.desc',
|
||||
linkKey: 'blog.card.categories.link',
|
||||
href: '/blog/categories',
|
||||
},
|
||||
{
|
||||
icon: Settings,
|
||||
title: 'Settings',
|
||||
description: 'Configure blog comment moderation and display options.',
|
||||
linkText: 'View settings',
|
||||
titleKey: 'nav.blog.settings',
|
||||
descKey: 'blog.card.settings.desc',
|
||||
linkKey: 'blog.card.settings.link',
|
||||
href: '/blog/settings',
|
||||
},
|
||||
]
|
||||
|
||||
export function BlogPage() {
|
||||
const t = useT()
|
||||
|
||||
return (
|
||||
<main className={styles.content}>
|
||||
<Breadcrumbs
|
||||
@@ -45,16 +55,21 @@ export function BlogPage() {
|
||||
/>
|
||||
<div className={styles.pageHeader}>
|
||||
<div>
|
||||
<h2 className={styles.pageTitle}>Blog</h2>
|
||||
<p className={styles.pageSubtitle}>
|
||||
Create and manage blog posts and categories.
|
||||
</p>
|
||||
<h2 className={styles.pageTitle}>{t('title.blog')}</h2>
|
||||
<p className={styles.pageSubtitle}>{t('blog.page.subtitle')}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.gridHome}>
|
||||
{blogSections.map((section) => (
|
||||
<SectionCard key={section.title} {...section} />
|
||||
<SectionCard
|
||||
key={section.href}
|
||||
icon={section.icon}
|
||||
title={t(section.titleKey)}
|
||||
description={t(section.descKey)}
|
||||
linkText={t(section.linkKey)}
|
||||
href={section.href}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user