2022-03-28 17:56:13 +11:00
|
|
|
/** @jsxImportSource @emotion/react */
|
|
|
|
import { css } from '@emotion/react';
|
|
|
|
|
2022-03-22 23:34:45 +11:00
|
|
|
import React from 'react';
|
2022-03-29 15:52:21 +11:00
|
|
|
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
|
|
|
|
2022-03-24 00:02:35 +11:00
|
|
|
import { HomePage } from './HomePage';
|
2022-03-28 19:36:40 +11:00
|
|
|
import { fontFamily, fontSize, gray2 } from './Styles';
|
2022-03-29 15:52:21 +11:00
|
|
|
import { AskPage } from './AskPage';
|
|
|
|
import { SearchPage } from './SearchPage';
|
|
|
|
import { SignInPage } from './SignInPage';
|
2022-03-22 23:34:45 +11:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2022-03-29 15:52:21 +11:00
|
|
|
<BrowserRouter>
|
|
|
|
<div
|
|
|
|
css={css`
|
|
|
|
font-family: ${fontFamily};
|
|
|
|
font-size: ${fontSize};
|
|
|
|
color: ${gray2};
|
|
|
|
`}
|
|
|
|
>
|
|
|
|
<Routes>
|
|
|
|
<Route path="" element={<HomePage />} />
|
|
|
|
<Route path="search" element={<SearchPage />} />
|
|
|
|
<Route path="ask" element={<AskPage />} />
|
|
|
|
<Route path="signin" element={<SignInPage />} />
|
|
|
|
</Routes>
|
|
|
|
</div>
|
|
|
|
</BrowserRouter>
|
2022-03-22 23:34:45 +11:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|