import Header from './common/Header';
import AlttpSeed from './pages/AlttpSeed';
+import Front from './pages/Front';
import Technique from './pages/Technique';
import Tournament from './pages/Tournament';
import User from './pages/User';
<Route path="tech/:name" element={<Technique />} />
<Route path="tournaments/:id" element={<Tournament />} />
<Route path="users/:id" element={<User />} />
- <Route path="*" element={<Navigate to="/tournaments/5" />} />
+ <Route path="/" element={<Front />} />
+ <Route path="*" element={<Navigate to="/" />} />
</Routes>
</UserContext.Provider>
</AlttpBaseRomProvider>
</Navbar.Brand>
</LinkContainer>
<Nav>
- <LinkContainer to="/tournaments/1">
- <Nav.Link href="/tournaments/1">
- Season 1
- </Nav.Link>
- </LinkContainer>
- <LinkContainer to="/tournaments/4">
- <Nav.Link href="/tournaments/4">
- Season 2
+ <LinkContainer to="/tournaments/6">
+ <Nav.Link href="/tournaments/6">
+ ALttPR Weekly
</Nav.Link>
</LinkContainer>
<LinkContainer to="/tournaments/5">
import React from 'react';
+import { Button, Col, Container, Image, Row } from 'react-bootstrap';
+import { useNavigate } from 'react-router-dom';
-const Front = () => <div className="mt-5 text-center">
- <h1>It's a mystery to everyone.</h1>
-</div>;
+const Front = () => {
+ const navigate = useNavigate();
+
+ return <Container className="mt-5">
+ <Row>
+ <Col md={6}>
+ <Button
+ className="front-panel"
+ onClick={() => navigate('/tournaments/6')}
+ variant="outline-secondary"
+ >
+ <Image alt="" className="image" src="/media/alttp/front.png" />
+ <div className="title">
+ ALttPR Weekly
+ </div>
+ </Button>
+ </Col>
+ <Col md={6}>
+ <Button
+ className="front-panel"
+ onClick={() => navigate('/tournaments/5')}
+ variant="outline-secondary"
+ >
+ <Image alt="" className="image" src="/media/sm/front.png" />
+ <div className="title">
+ Super Metroid
+ </div>
+ </Button>
+ </Col>
+ </Row>
+ </Container>;
+};
export default Front;