add alisurvey main page

This commit is contained in:
hsueh chiahao
2025-09-25 16:20:49 +08:00
parent 7fc028e186
commit 4ee023d68f
29 changed files with 7428 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Routes, Route } from "react-router-dom";
import Home from "@/pages/Home";
import { useState } from "react";
import { AuthContext } from '@/contexts/authContext';
export default function App() {
const [isAuthenticated, setIsAuthenticated] = useState(false);
const logout = () => {
setIsAuthenticated(false);
};
return (
<AuthContext.Provider
value={{ isAuthenticated, setIsAuthenticated, logout }}
>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/other" element={<div className="text-center text-xl">Other Page - Coming Soon</div>} />
</Routes>
</AuthContext.Provider>
);
}