revite/src/pages/home/Home.tsx
2021-07-09 16:23:06 +01:00

41 lines
1.3 KiB
TypeScript

import { Home as HomeIcon } from "@styled-icons/boxicons-solid";
import Button from "../../components/ui/Button";
import { Link } from "react-router-dom";
import styles from "./Home.module.scss";
import { Text } from "preact-i18n";
import wideSVG from "../../assets/wide.svg";
import Header from "../../components/ui/Header";
export default function Home() {
return (
<div className={styles.home}>
<Header placement="primary">
<HomeIcon size={24} />
<Text id="app.navigation.tabs.home" />
</Header>
<h3>
<Text id="app.special.modals.onboarding.welcome" />{" "}
<img src={wideSVG} />
</h3>
<div className={styles.actions}>
<Link to="/invite/Testers">
<Button contrast error>
Join testers server
</Button>
</Link>
<Link to="/settings/feedback">
<Button contrast>
Give feedback
</Button>
</Link>
<a href="https://gitlab.insrt.uk/revolt" target="_blank">
<Button contrast>
Source code
</Button>
</a>
</div>
</div>
);
}