mirror of
https://github.com/Lissy93/web-check.git
synced 2025-07-16 04:05:00 +02:00
31 lines
747 B
TypeScript
31 lines
747 B
TypeScript
import { Route, Routes } from 'react-router-dom';
|
|
import Styled from 'styled-components';
|
|
import Home from 'pages/Home';
|
|
import Results from 'pages/Results';
|
|
import About from 'pages/About';
|
|
import NotFound from 'pages/NotFound';
|
|
import colors from 'styles/colors';
|
|
|
|
const Container = Styled.main`
|
|
background: ${colors.background};
|
|
color: ${colors.textColor};
|
|
width: 100vw;
|
|
height: 100vh;
|
|
margin: 0;
|
|
`;
|
|
|
|
function App() {
|
|
return (
|
|
<Container>
|
|
<Routes>
|
|
<Route path="*" element={<NotFound />} />
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="/about" element={<About />} />
|
|
<Route path="/results/:address" element={<Results />} />
|
|
</Routes>
|
|
</Container>
|
|
);
|
|
}
|
|
|
|
export default App;
|