diff --git a/backend/tsconfig.json b/backend/tsconfig.json index b6bd1fc..8d77c59 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -5,7 +5,6 @@ "moduleResolution": "node", "types": ["node", "jest"], "outDir": "./dist", - "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 5ca8ac4..3558f34 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { ThemeProvider, CssBaseline } from '@mui/material'; import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import theme from './theme'; +import StartPage from './pages/StartPage'; import CreateSession from './pages/CreateSession'; import SessionPage from './pages/SessionPage'; @@ -12,7 +13,8 @@ function App() { - } /> + } /> + } /> {/* Other routes will be added here */} } /> diff --git a/frontend/src/pages/StartPage.tsx b/frontend/src/pages/StartPage.tsx new file mode 100644 index 0000000..a701ec9 --- /dev/null +++ b/frontend/src/pages/StartPage.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { Box, Typography, Container, Button } from '@mui/material'; +import { useNavigate } from 'react-router-dom'; + +const StartPage = () => { + const navigate = useNavigate(); + + const handleCreateClick = () => { + navigate('/create'); + }; + + return ( + + + + Welcome to Agree on Desires + + + A simple tool to help groups of people make decisions together. + + + + + ); +}; + +export default StartPage;