import { BrowserRouter, Route, Routes } from 'react-router-dom';
import Header from './Header';
+import AosFront from '../pages/AosFront';
import AosSeed from '../pages/AosSeed';
-import Front from '../pages/Front';
import User from '../pages/User';
import AosBaseRomProvider from '../../helpers/AosBaseRomContext';
import UserContext from '../../helpers/UserContext';
<Routes>
<Route path="h/:hash" element={<AosSeed />} />
<Route path="users/:id" element={<User />} />
- <Route path="*" element={<Front />} />
+ <Route path="*" element={<AosFront />} />
</Routes>
</UserContext.Provider>
</AosBaseRomProvider>
--- /dev/null
+import React from 'react';
+import { Button, Col, Container, Row } from 'react-bootstrap';
+import { withTranslation } from 'react-i18next';
+
+import Icon from '../common/Icon';
+import i18n from '../../i18n';
+
+const AosFront = () => <Container>
+ <div className="my-5 text-center">
+ <h1>Castlevania: Aria of Sorrow</h1>
+ </div>
+ <Row>
+ <Col className="text-center mb-3" sm={6} md={4}>
+ <Button
+ href="https://discord.gg/VEtVYNr"
+ size="lg"
+ target="_blank"
+ variant="discord"
+ >
+ <Icon.DISCORD />
+ {' '}
+ {i18n.t('aos.randoDiscord')}
+ </Button>
+ </Col>
+ <Col className="text-center mb-3" sm={6} md={4}>
+ <Button
+ href="https://aosrando.surge.sh/"
+ size="lg"
+ target="_blank"
+ variant="primary"
+ >
+ {i18n.t('aos.randoWeb')}
+ </Button>
+ </Col>
+ <Col className="text-center mb-3" sm={6} md={4}>
+ <Button
+ href="https://discord.gg/ApVyJnd"
+ size="lg"
+ target="_blank"
+ variant="discord"
+ >
+ <Icon.DISCORD />
+ {' '}
+ {i18n.t('aos.tourneyDiscord')}
+ </Button>
+ </Col>
+ <Col className="text-center mb-3" sm={6} md={4}>
+ <Button
+ href="https://discord.com/oauth2/authorize?client_id=951113702839549982&scope=bot%20applications.commands"
+ size="lg"
+ target="_blank"
+ variant="discord"
+ >
+ <Icon.DISCORD />
+ {' '}
+ {i18n.t('aos.inviteBot')}
+ </Button>
+ </Col>
+ <Col className="text-center mb-3" sm={6} md={4}>
+ <Button
+ href="https://discord.com/oauth2/authorize?client_id=951113702839549982&scope=applications.commands"
+ size="lg"
+ target="_blank"
+ variant="discord"
+ >
+ <Icon.DISCORD />
+ {' '}
+ {i18n.t('aos.inviteCommand')}
+ </Button>
+ </Col>
+ </Row>
+</Container>;
+
+export default withTranslation()(AosFront);
baseRomInvalid: 'CRC32 Check fehlgeschlagen (brauche 35:53:61:83). Falsche ROM Datei?',
baseRomRemoved: 'Base ROM entfernt.',
baseRomSet: 'Base ROM gespeichert.',
+ inviteBot: 'Bot einladen',
+ inviteCommand: 'Bot einladen (nur Commands)',
+ randoDiscord: 'Randomizer Discord',
+ randoWeb: 'Randomizer Webapp',
setBaseRom: 'Base ROM auswählen',
+ tourneyDiscord: 'Turnier Discord',
},
aosSeeds: {
date: '{{ date, L LT }}',
baseRomInvalid: 'CRC32 mismatch (need 35:53:61:83). Wrong ROM file?',
baseRomRemoved: 'Base ROM removed.',
baseRomSet: 'Base ROM set.',
+ inviteBot: 'Invite Bot',
+ inviteCommand: 'Invite Bot (command only)',
+ randoDiscord: 'Randomizer Discord',
+ randoWeb: 'Randomizer Webapp',
setBaseRom: 'Set base ROM',
+ tourneyDiscord: 'Tournament Discord',
},
aosSeeds: {
date: '{{ date, L LT }}',