-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
56 additions
and
13 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
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
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
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
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
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,33 @@ | ||
import { useState, useEffect } from "react"; | ||
|
||
export function App() { | ||
const [reason, setReason] = useState("Not Found."); | ||
|
||
useEffect(() => { | ||
if (window.innerWidth < 768) { | ||
setReason("Screen too small."); | ||
} else { | ||
setReason("Not Found."); | ||
} | ||
}, []); | ||
|
||
return ( | ||
<div id="404" className="flex h-screen w-screen justify-center bg-verdant-bg px-8 py-8"> | ||
<div className="flex flex-col items-center justify-center"> | ||
<span className="text-6xl text-verdant-fg">\(o_o)/</span> | ||
<span className="my-12 text-center text-3xl text-verdant-fg-dark"> | ||
404. | ||
<br /> | ||
{reason} | ||
</span> | ||
<span className="text-2xl text-verdant-fg-dark"> | ||
<a href="/" className="text-verdant-blue"> | ||
Back to Home | ||
</a> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
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