Skip to content

Commit

Permalink
Adding header
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Dec 18, 2024
1 parent c4a04b8 commit fd61aae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Header from './Header';
import Index from './pages/Index';
import Detail from './pages/Detail';
import GameLandscape from './pages/GameLandscape';
Expand All @@ -12,18 +13,22 @@ import NotFound from './pages/NotFound';

function App() {
return (
<Router basename={basename}>
<Routes>
<Route path="/" element={<Index />} />
<Route path="/detail" element={<Detail />} />
<Route path="/gamelandscape" element={<GameLandscape />} />
<Route path="/gamelevel" element={<GameLevel />} />
<Route path="/skus" element={<Skus />} />
<Route path="/tutorials" element={<Tutorials />} />
{/* Add a catch-all route for 404 */}
<Route path="*" element={<NotFound />} />
</Routes>
</Router>
<div>
<Header/>

<Router basename={basename}>
<Routes>
<Route path="/" element={<Index />} />
<Route path="/detail" element={<Detail />} />
<Route path="/gamelandscape" element={<GameLandscape />} />
<Route path="/gamelevel" element={<GameLevel />} />
<Route path="/skus" element={<Skus />} />
<Route path="/tutorials" element={<Tutorials />} />
{/* Add a catch-all route for 404 */}
<Route path="*" element={<NotFound />} />
</Routes>
</Router>
</div>
);
}

Expand Down
11 changes: 11 additions & 0 deletions src/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';

function Header() {
return (
<header>
<script defer data-domain="github-copilot.xebia.ms" src="https://plausible.io/js/script.js"></script>
</header>
);
}

export default Header;

0 comments on commit fd61aae

Please sign in to comment.