feat: implement base landing page and initial React frontend layout with sidebar navigation

This commit is contained in:
Ümit Tunç
2026-04-24 07:18:19 +03:00
parent 83c159766e
commit 1a75c32469
4 changed files with 41 additions and 236 deletions
+3 -3
View File
@@ -2,9 +2,9 @@ import React, { useMemo, useEffect } from 'react';
import { ThemeProvider, CssBaseline, Box } from '@mui/material';
import { getTheme } from './theme/theme';
import { useAppStore } from './store/useAppStore';
import Sidebar from './components/Sidebar';
import MainContent from './components/MainContent';
import Header from './components/Header';
import Sidebar from './components/Sidebar.tsx';
import MainContent from './components/MainContent.tsx';
import Header from './components/Header.tsx';
const App: React.FC = () => {
const darkMode = useAppStore((state) => state.darkMode);
+10 -1
View File
@@ -26,7 +26,16 @@ const Sidebar: React.FC = () => {
<ListItemIcon>
<Storage color={activeDatabase === db ? 'primary' : 'inherit'} />
</ListItemIcon>
<ListItemText primary={db} primaryTypographyProps={{ variant: 'body2', fontWeight: activeDatabase === db ? 600 : 400 }} />
<ListItemText
primary={
<Typography
variant="body2"
sx={{ fontWeight: activeDatabase === db ? 600 : 400 }}
>
{db}
</Typography>
}
/>
</ListItemButton>
</ListItem>
))}