From 4c420acc08b1ad31d7f9b715ee21a3781d62491d Mon Sep 17 00:00:00 2001 From: AG Date: Sat, 11 Oct 2025 17:09:34 +0300 Subject: [PATCH] fix: Correct session creation flow --- backend/tsconfig.json | 1 - frontend/src/App.tsx | 4 ++- frontend/src/pages/StartPage.tsx | 42 ++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 frontend/src/pages/StartPage.tsx 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;