404.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. import Link from "next/link";
  2. import { getI18n } from "locales/server";
  3. import { buttonVariants } from "@/components/ui/button";
  4. export async function Page404() {
  5. const t = await getI18n();
  6. return (
  7. <section className="font-serif flex min-h-screen items-center justify-center bg-white">
  8. <div className="container mx-auto">
  9. <div className="flex justify-center">
  10. <div className="w-full text-center sm:w-10/12 md:w-8/12">
  11. <div
  12. aria-hidden="true"
  13. className="h-[250px] bg-[url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif)] bg-contain bg-center bg-no-repeat sm:h-[350px] md:h-[400px]"
  14. >
  15. <h1 className="pt-6 text-center text-6xl text-black sm:pt-8 sm:text-7xl md:text-8xl">404</h1>
  16. </div>
  17. <div className="mt-[-50px]">
  18. <h3 className="mb-4 text-2xl font-bold text-black sm:text-3xl">{t("commons.looks_like_you_are_lost")}</h3>
  19. <p className="mb-6 text-black sm:mb-5">{t("commons.the_page_you_are_looking_for_is_not_available")}</p>
  20. <Link className={buttonVariants({ variant: "black" })} href="/">
  21. {t("commons.go_back")}
  22. </Link>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </section>
  28. );
  29. }