2023-01-31 23:08:57 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
import { Route, Routes } from 'react-router-dom';
|
2023-02-01 13:30:32 +01:00
|
|
|
import { Helmet } from 'react-helmet-async';
|
2023-02-02 21:58:02 +01:00
|
|
|
import GlobalStyle from './globalStyles';
|
2023-01-31 23:08:57 +01:00
|
|
|
import Home from './components/Home';
|
|
|
|
|
import Board from './components/Board';
|
|
|
|
|
import Thread from './components/Thread';
|
|
|
|
|
|
2023-01-29 21:07:23 +01:00
|
|
|
function App() {
|
2023-02-01 13:30:32 +01:00
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Helmet>
|
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
|
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#fee9cd" />
|
|
|
|
|
<meta name="msapplication-TileColor" content="#fee9cd" />
|
|
|
|
|
<meta name="theme-color" content="#ffffff" />
|
|
|
|
|
</Helmet>
|
2023-02-02 21:58:02 +01:00
|
|
|
<GlobalStyle />
|
2023-02-01 13:30:32 +01:00
|
|
|
<Routes>
|
|
|
|
|
<Route path='/' element={<Home />} />
|
|
|
|
|
<Route path='/board' element={<Board />} />
|
2023-02-02 21:58:02 +01:00
|
|
|
<Route path='/board/:thread' element={<Thread />} />
|
2023-02-01 13:30:32 +01:00
|
|
|
</Routes>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2023-01-29 21:07:23 +01:00
|
|
|
|
|
|
|
|
export default App;
|