fleet/frontend/pages/Fleet404/Fleet404.jsx
2021-08-31 09:51:29 -04:00

74 lines
2.2 KiB
JavaScript

import React, { Component } from "react";
import { Link } from "react-router";
import PATHS from "router/paths";
import Button from "components/buttons/Button";
import fleetLogoText from "../../../assets/images/fleet-logo-text-white.svg";
import backgroundImg from "../../../assets/images/404.svg";
import githubLogo from "../../../assets/images/github-mark-white-24x24@2x.png";
import slackLogo from "../../../assets/images/logo-slack-24x24@2x.png";
const baseClass = "fleet-404";
class Fleet404 extends Component {
render() {
return (
<div className={baseClass}>
<header className="primary-header">
<Link to={PATHS.HOME}>
<img
className="primary-header__logo"
src={fleetLogoText}
alt="Fleet logo"
/>
</Link>
</header>
<img
src={backgroundImg}
alt="404 background"
className="background-image"
/>
<main>
<h1>
<span>404:</span> Oops, sorry we can&apos;t find that page!
</h1>
<p>
The page you are looking for has either moved, or doesn&apos;t
exist.
</p>
<div className={`${baseClass}__button-wrapper`}>
<a
href="https://osquery.slack.com/join/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw#/"
target="_blank"
rel="noopener noreferrer"
>
<Button
type="button"
variant="unstyled"
className={`${baseClass}__slack-btn`}
>
<img src={slackLogo} alt="Slack icon" />
Get help on Slack
</Button>
</a>
<a
href="https://github.com/fleetdm/fleet/issues/new?assignees=&labels=bug%2C%3Areproduce&template=bug-report.md&title="
target="_blank"
rel="noopener noreferrer"
>
<Button type="button">
<img src={githubLogo} alt="Github icon" />
File an issue
</Button>
</a>
</div>
</main>
</div>
);
}
}
export default Fleet404;