Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): make 404 page good again #8750

Merged
merged 3 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions packages/website/src/theme/NotFound/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { useLocation } from '@docusaurus/router';
import React from 'react';

import styles from './styles.module.css';

export default function NotFound(): React.JSX.Element {
const location = useLocation();

return (
<main className="container margin-vert--xl">
<div className="row">
<div className="col col--8 col--offset-2">
<h1 className={styles.title}>
<div className={styles.code}>$ npx eslint .</div>
<strong>
{`'${location.pathname}'`.split('').map((letter, i) => (
<span className={styles.word} key={i}>
{letter}
</span>
))}
</strong>{' '}
is not defined.
</h1>
<p className="hero__subtitle">
Looks like the page you're looking for doesn't exist. 😥
</p>
<p>
If you were linked here within typescript-eslint.io, there's
probably a bug in the site. Please{' '}
<a href="https://github.com/typescript-eslint/typescript-eslint/issues/new/choose">
file an issue on GitHub
</a>
.
</p>
</div>
</div>
</main>
);
}
46 changes: 0 additions & 46 deletions packages/website/src/theme/NotFound/index.tsx

This file was deleted.