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
File diff suppressed because one or more lines are too long
-16
View File
@@ -4173,22 +4173,6 @@
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
"node_modules/yaml": {
"version": "2.8.3",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
"integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
"extraneous": true,
"license": "ISC",
"bin": {
"yaml": "bin.mjs"
},
"engines": {
"node": ">= 14.6"
},
"funding": {
"url": "https://github.com/sponsors/eemeli"
}
},
"node_modules/yocto-queue": { "node_modules/yocto-queue": {
"version": "0.1.0", "version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+3 -3
View File
@@ -2,9 +2,9 @@ import React, { useMemo, useEffect } from 'react';
import { ThemeProvider, CssBaseline, Box } from '@mui/material'; import { ThemeProvider, CssBaseline, Box } from '@mui/material';
import { getTheme } from './theme/theme'; import { getTheme } from './theme/theme';
import { useAppStore } from './store/useAppStore'; import { useAppStore } from './store/useAppStore';
import Sidebar from './components/Sidebar'; import Sidebar from './components/Sidebar.tsx';
import MainContent from './components/MainContent'; import MainContent from './components/MainContent.tsx';
import Header from './components/Header'; import Header from './components/Header.tsx';
const App: React.FC = () => { const App: React.FC = () => {
const darkMode = useAppStore((state) => state.darkMode); const darkMode = useAppStore((state) => state.darkMode);
+10 -1
View File
@@ -26,7 +26,16 @@ const Sidebar: React.FC = () => {
<ListItemIcon> <ListItemIcon>
<Storage color={activeDatabase === db ? 'primary' : 'inherit'} /> <Storage color={activeDatabase === db ? 'primary' : 'inherit'} />
</ListItemIcon> </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> </ListItemButton>
</ListItem> </ListItem>
))} ))}