Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

amoguuuuuuus 404 (#960) bogos binted

PickleNik8a2bf4acdfac
diff --git a/apps/web/public/real-og.png b/apps/web/public/real-og.png
deleted file mode 100644
index f5c2e879..00000000
Binary files a/apps/web/public/real-og.png and /dev/null differ
diff --git a/apps/web/src/app/[locale]/not-found.tsx b/apps/web/src/app/[locale]/not-found.tsx
index 7d8a32af..32f52774 100644
--- a/apps/web/src/app/[locale]/not-found.tsx
+++ b/apps/web/src/app/[locale]/not-found.tsx
@@ -1,26 +1,43 @@
+import Image from 'next/image';
import { Button } from '@repo/ui/components/button';
-import { BackgroundGrid } from './_components/hero-illustration';
import { getRandomChallenge } from '~/utils/server/get-random-challenge';
export default async function NotFound() {
const randomChallengeSlug = await getRandomChallenge();
return (
- <div className="flex h-full flex-col items-center justify-center gap-8">
- <div className="absolute inset-10 -z-30 overflow-hidden rounded-full opacity-70 lg:hidden">
- <BackgroundGrid />
- </div>
+ <div className="relative -mt-[56px] flex h-full flex-col items-center justify-center gap-8">
+ <Image
+ className="animate-amogfly absolute left-0 -z-10 mx-auto opacity-80"
+ alt="Early Access"
+ src="/Red.webp"
+ height="99"
+ width="75"
+ />
+ <Image
+ className="th-amogfly absolute left-0 -z-10 mx-auto opacity-80"
+ alt="Early Access"
+ src="/typehero.png"
+ height="99"
+ width="99"
+ />
+ <div className="stars absolute -left-full -z-50 mt-[56px] h-screen w-[200%]" />
+ <div className="stars absolute -left-full -z-40 mt-[56px] h-1/2 w-[400%] scale-[2]" />
+ <div className="stars absolute -left-full -z-30 mt-[56px] h-1/3 w-[600%] scale-[3]" />
<div className="flex flex-col items-center justify-center">
- <h1 className="font-mono text-9xl font-bold leading-tight md:text-[12rem]">404</h1>
- <p className=" px-6 text-center font-mono text-base md:px-0 md:text-xl">
- Looks Like You Took a Wrong Turn at the Interface. <br className="hidden md:inline" />
- Let's Get You Back on Track
+ <h1 className="mb-4 font-mono text-4xl font-bold leading-tight opacity-60 md:text-9xl">
+ 404
+ </h1>
+ <p className="px-6 text-center font-mono text-base md:px-0 md:text-xl">
+ {/* Looks Like You Took a Wrong Turn at the Interface. <br className="hidden md:inline" />
+ Let's Get You Back on Track */}
+ Page not found, sus
</p>
</div>
{randomChallengeSlug !== null ? (
- <div className="flex gap-4 ">
+ <div className="flex flex-col gap-4">
<a href="/explore">
- <Button variant="default" size="lg">
+ <Button className="w-56" variant="default" size="lg">
Go to explore
</Button>
</a>
@@ -28,7 +45,7 @@ export default async function NotFound() {
<Button
variant="outline"
size="lg"
- className="fancy-border-gradient hover:bg-background relative mx-auto flex gap-4 border-none"
+ className="fancy-border-gradient bg-background relative mx-auto flex w-56 gap-4 border-none"
>
I'm feeling lucky
</Button>
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 9762d1e7..a31236f3 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -611,3 +611,84 @@ a {
.shadcnoverridetransition:active {
transition: all 0.075s ease !important;
}
+
+.stars {
+ background-size: 200px 200px;
+ background-image: radial-gradient(2px 2px at 40px 60px, #ccc, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 20px 50px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 30px 100px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 40px 60px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 110px 90px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 190px 150px, white, rgba(0, 0, 0, 0));
+ background-repeat: repeat;
+}
+
+.stars:first-of-type {
+ animation: stars-move-right-1 200s linear infinite;
+}
+
+.stars:nth-of-type(2) {
+ background-image: radial-gradient(2px 2px at 25px 35px, #ccc, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 55px 20px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 69px 42px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 42px 69px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 32px 90px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 150px 190px, white, rgba(0, 0, 0, 0));
+ animation: stars-move-right-2 111s linear infinite;
+}
+
+.stars:nth-of-type(3) {
+ background-image: radial-gradient(2px 2px at 60px 40px, #ccc, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 50px 20px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 100px 30px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 60px 40px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 90px 110px, white, rgba(0, 0, 0, 0)),
+ radial-gradient(2px 2px at 150px 190px, white, rgba(0, 0, 0, 0));
+ animation: stars-move-right-3 69s linear infinite;
+}
+
+@keyframes stars-move-right-1 {
+ to {
+ transform: translateX(100%);
+ }
+}
+@keyframes stars-move-right-2 {
+ to {
+ transform: translateX(100%) scale(2);
+ }
+}
+@keyframes stars-move-right-3 {
+ to {
+ transform: translateX(100%) scale(3);
+ }
+}
+
+.animate-amogfly {
+ transform: translateX(-10vw);
+ animation: amogfly 15s 2s linear infinite forwards;
+}
+
+.th-amogfly {
+ transform: translateX(-10vw);
+ animation: thfly 25s 15.25s linear infinite forwards;
+}
+
+@keyframes thfly {
+ 0% {
+ transform: translateX(-10vw);
+ }
+ 100% {
+ transform: translateX(1337vw) rotate(6969deg);
+ }
+}
+
+@keyframes amogfly {
+ 0% {
+ transform: translateX(-10vw);
+ filter: hue-rotate(0deg) brightness(200%);
+ }
+ 100% {
+ transform: translateX(200vw) rotate(1337deg);
+ filter: hue-rotate(720deg) brightness(200%);
+ }
+}