-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
29 lines (27 loc) · 1018 Bytes
/
Copy pathApp.tsx
File metadata and controls
29 lines (27 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import Navbar from './components/Navbar';
import Home from './pages/Home';
import Docs from './pages/Docs';
import Playground from './pages/Playground';
import Showcase from './pages/Showcase';
import { LanguageProvider } from './contexts/LanguageContext';
const App: React.FC = () => {
return (
<LanguageProvider>
<Router>
<div className="bg-origami-bg text-origami-text min-h-screen selection:bg-origami-cyan selection:text-black font-sans">
<Navbar />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/docs" element={<Docs />} />
<Route path="/playground" element={<Playground />} />
<Route path="/showcase" element={<Showcase />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</div>
</Router>
</LanguageProvider>
);
};
export default App;