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

geekhadev/404-page #39

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run lint:fix
npm run prettier:fix
17 changes: 17 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,20 @@ body {
),
transparent;
}

.card-border-gradient:before {
content: "";
position: absolute;
inset: 0;
border-radius: 11px;
padding: 4px;
background: linear-gradient(
to bottom left,
rgb(240 224 64 / var(--tw-text-opacity)) 10%,
rgba(30, 30, 30, 1) 30%
);
mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
mask-composite: exclude;
}
59 changes: 59 additions & 0 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* eslint-disable tailwindcss/migration-from-tailwind-2 */
import { ChevronLeft } from "lucide-react";

import { Footer } from "@/components/Footer/Footer";
import { Header } from "@/components/Header/Header";
import { Mountain } from "@/components/Icons/Mountain";
import { Link } from "@/components/Link";
import { Particles } from "@/components/Particles";
import { getMetaData, getViewports } from "@/lib/metadata";

export const generateMetadata = () => getMetaData({});

export const generateViewport = getViewports;

export default function Home() {
return (
<>
<main className="text-white">
<div className="relative h-screen">
<div className="pointer-events-none absolute inset-0">
<div className="flex h-screen w-full items-center justify-center">
<div className="absolute">
<div className="relative -z-30 mx-auto w-[400px] max-w-[90%] animate-gradient-svg from-mountain-primary to-mountain-secondary blur-[1px] md:w-[746px] md:blur-sm lg:w-[900px] xl:w-[1200px]">
<Mountain />
</div>
<div className="absolute top-0 -z-20 mx-auto size-full max-w-[100%] bg-gradient-radial to-black to-95% md:w-[746px] lg:w-[900px] xl:w-[1200px]"></div>
<div
className="absolute top-0 -z-10 mx-auto size-full max-w-[100%] md:w-[746px] lg:w-[900px] xl:w-[1200px]"
id="home"
></div>
<Particles id="home" />
<div className="absolute top-0 z-[-1] mx-auto size-full max-w-[100%] bg-[#090907] opacity-70 blur-xl md:w-[746px] lg:w-[900px] lg:blur-2xl xl:w-[1200px]"></div>
</div>
</div>
</div>
<div className="z-[1]">
<Header />
<div className="mx-auto flex h-[calc(100vh_-_120px)] w-[400px] max-w-[90%] flex-auto flex-col justify-center gap-8 text-left text-white md:w-[746px] lg:shrink-0 lg:basis-1/3">
<div className="card-border-gradient flex flex-col items-center justify-center gap-6 rounded-xl bg-[#090907] bg-opacity-10 px-12 py-32 text-center backdrop-blur">
<h1 className="text-center font-inconsolata text-9xl font-bold text-gray-200">
404
</h1>
<p className="font-inconsolata text-2xl text-gray-400">
La página que estás buscando no existe.
</p>
<div className="w-full md:w-48">
<Link href="/" rel="noreferrer">
<ChevronLeft size={16} /> Volver al inicio
</Link>
</div>
</div>
</div>
</div>
</div>
</main>
<Footer />
</>
);
}
Loading