forked from typescript-eslint/typescript-eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(website): make 404 page good again (typescript-eslint#8750)
* move inside content * lint
- Loading branch information
1 parent
36ef65f
commit 4132374
Showing
3 changed files
with
39 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.