feat: Introduce a React-based frontend dashboard with Webpack and Babel for improved UI and development.

This commit is contained in:
sebseb7
2025-12-20 21:43:17 +01:00
parent 12be2c7bf9
commit bef70e4709
13 changed files with 5336 additions and 20 deletions

37
src/client/App.js Normal file
View File

@@ -0,0 +1,37 @@
import React from 'react';
import { ThemeProvider, createTheme, CssBaseline, AppBar, Toolbar, Typography, Container, Box } from '@mui/material';
import Dashboard from './Dashboard';
const darkTheme = createTheme({
palette: {
mode: 'light',
primary: {
main: '#2c3e50',
},
background: {
default: '#f4f4f9',
},
},
});
function App() {
return (
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static">
<Toolbar>
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
AC Infinity Dashboard
</Typography>
</Toolbar>
</AppBar>
<Container maxWidth="xl" sx={{ mt: 4, mb: 4 }}>
<Dashboard />
</Container>
</Box>
</ThemeProvider>
);
}
export default App;