Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { AppRoutes } from './routes';
import './App.css';

function App() {
return (
<Router>
<div className="App">
<AppRoutes />
<header className="App-header">
<h1>ThonHub</h1>
<p>Hackathon Platform - Coming Soon!</p>
Expand Down
22 changes: 22 additions & 0 deletions frontend/src/routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {Routes, Route} from 'react-router-dom';
import Home from './pages/Home';
import Chat from './pages/Chat';
import Hackathon from './pages/Hackathon';
import OrgPanel from './pages/OrgPanel';
import ProjectNotes from './pages/ProjectNotes';
import Teammates from './pages/Teammates';
import Profile from './pages/Profile';

export const AppRoutes = () => {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="/chat" element={<Chat />} />
<Route path="/hackathon" element={<Hackathon />} />
<Route path="/org-panel" element={<OrgPanel />} />
<Route path="/project-notes" element={<ProjectNotes />} />
<Route path="/profile" element={<Profile />} />
<Route path="/teammates" element={<Teammates />} />
</Routes>
);
}