- add: frontend webpage for login/register

This commit is contained in:
2024-12-17 17:03:55 -05:00
parent c67cdd5b2a
commit 9c61b1b3f2
20 changed files with 29819 additions and 0 deletions

18
frontend/src/App.js Normal file
View File

@@ -0,0 +1,18 @@
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import LoginPage from "./components/LoginPage";
import RegisterPage from "./components/RegisterPage";
const App = () => {
return (
<Router>
<Routes>
<Route path="/login" element={<LoginPage />} />
<Route path="/register" element={<RegisterPage />} />
<Route path="/" element={<h1>Welcome to the Game!</h1>} />
</Routes>
</Router>
);
};
export default App;