init Register page
This commit is contained in:
parent
6b183ad5bb
commit
7c1b49d975
@ -7,6 +7,7 @@ import NavBar from './components/elements/NavBar';
|
|||||||
import Footer from './components/sections/Footer';
|
import Footer from './components/sections/Footer';
|
||||||
import {CHALLENGE_PAGE, CHALLENGES_PAGE} from './utils/globals';
|
import {CHALLENGE_PAGE, CHALLENGES_PAGE} from './utils/globals';
|
||||||
import Challenge from './pages/Challenge';
|
import Challenge from './pages/Challenge';
|
||||||
|
import Register from './pages/Register';
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
@ -14,6 +15,7 @@ const App = () => {
|
|||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<NavBar/>
|
<NavBar/>
|
||||||
<Routes>
|
<Routes>
|
||||||
|
<Route path='/register' element={<Register/>}/>
|
||||||
<Route path={`${CHALLENGE_PAGE}/:challengeId`} element={<Challenge/>}/>
|
<Route path={`${CHALLENGE_PAGE}/:challengeId`} element={<Challenge/>}/>
|
||||||
<Route path={CHALLENGES_PAGE} element={<Challenges/>}/>
|
<Route path={CHALLENGES_PAGE} element={<Challenges/>}/>
|
||||||
<Route exact path='/' element={<LandingPage/>}/>
|
<Route exact path='/' element={<LandingPage/>}/>
|
||||||
|
@ -49,7 +49,7 @@ const NavBar = () => {
|
|||||||
Challenges
|
Challenges
|
||||||
</Menu>
|
</Menu>
|
||||||
</FlexRow>
|
</FlexRow>
|
||||||
<FlexRow as={Link} to='/' gap='16px'>
|
<FlexRow as={Link} to='/register' gap='16px'>
|
||||||
<Svg width='16px' height='16px' src={registerIco}/>
|
<Svg width='16px' height='16px' src={registerIco}/>
|
||||||
<Menu as='li'>
|
<Menu as='li'>
|
||||||
Register
|
Register
|
||||||
|
12
src/pages/Register.js
Normal file
12
src/pages/Register.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import {FlexColumn} from '../utils/containers';
|
||||||
|
|
||||||
|
const Register = () => {
|
||||||
|
return (
|
||||||
|
<FlexColumn margin='100px 0'>
|
||||||
|
siema
|
||||||
|
</FlexColumn>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Register;
|
Loading…
Reference in New Issue
Block a user