Initial commit: RSVP Manager with React frontend and Express backend

This commit is contained in:
2025-04-29 13:08:01 -04:00
commit b80879f46b
17 changed files with 697 additions and 0 deletions

41
frontend/src/App.tsx Normal file
View File

@@ -0,0 +1,41 @@
import React from 'react';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { Container } from '@mui/material';
import EventList from './components/EventList';
import EventForm from './components/EventForm';
const darkTheme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#90caf9',
},
secondary: {
main: '#f48fb1',
},
background: {
default: '#121212',
paper: '#1e1e1e',
},
},
});
function App() {
return (
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<Router>
<Container maxWidth="md" sx={{ mt: 4 }}>
<Routes>
<Route path="/" element={<EventList />} />
<Route path="/create" element={<EventForm />} />
</Routes>
</Container>
</Router>
</ThemeProvider>
);
}
export default App;