mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-20 21:48:17 +02:00
feat: implement admin dashboard with authentication and title management capabilities
This commit is contained in:
1 parent
d253eff0fa
commit
0bfed1adf2
4 files changed
+115
-1
No files matched your search
+4
-1
@@ -16,6 +16,9 @@ export default async function Home() {
|
||||
orderBy: { order: 'asc' },
|
||||
});
|
||||
|
||||
const titleConfig = await prisma.config.findUnique({ where: { id: 'app_title' } });
|
||||
const appTitle = titleConfig?.value || 'Menu Application';
|
||||
|
||||
return (
|
||||
<div style={{ minHeight: '100vh', display: 'flex', flexDirection: 'column' }}>
|
||||
|
||||
@@ -66,7 +69,7 @@ export default async function Home() {
|
||||
letterSpacing: '-0.04em',
|
||||
color: 'var(--fg)',
|
||||
}}>
|
||||
Menu Application
|
||||
{appTitle}
|
||||
</h1>
|
||||
{buttons.length > 0 && (
|
||||
<p style={{ color: 'var(--fg-muted)', fontSize: '0.9rem', marginTop: '0.4rem', fontWeight: 500 }}>
|
||||
|
||||
Reference in new issue
Block a user