Skip to content

Commit

Permalink
fix(website): make 404 page good again (typescript-eslint#8750)
Browse files Browse the repository at this point in the history
* move inside content

* lint
  • Loading branch information
abrahamguo authored Mar 23, 2024
1 parent 36ef65f commit 4132374
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 46 deletions.
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.

0 comments on commit 4132374

Please sign in to comment.