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

404 page #85

Merged
merged 6 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import "@/styles/globals.css"
import React from "react"
import Image from "next/image"
import Link from "next/link"

import { fontDisplay, fontSans } from "@/lib/fonts"
import { Button } from "@/components/ui/button"
import { SiteHeader } from "@/components/site-header"
import { TailwindIndicator } from "@/components/tailwind-indicator"

export default function NotFound() {
return (
<html
lang="en"
className={`${fontSans.variable} ${fontDisplay.variable}`}
suppressHydrationWarning
>
<head />
<body className="min-h-screen">
<div className="relative flex flex-col h-screen bg-anakiwa-50">
<SiteHeader />
<div className="container m-auto">
<div className="flex flex-col -mt-16 gap-7">
<div className="flex flex-col items-center justify-center gap-3 text-center">
<div className="flex flex-col gap-2">
<Image
width={80}
height={80}
src="/icons/emotion-sad-line.svg"
alt="emotion sad"
className="w-12 h-12 mx-auto md:w-20 md:h-20 text-anakiwa-400"
/>
<span className="text-5xl font-bold text-anakiwa-400 md:text-8xl font-display">
404
</span>
</div>
<div className="flex flex-col gap-5">
<span className="text-2xl font-bold md:text-6xl text-tuatara-950 font-display">
Oops! Page not found
</span>
<span className="font-sans text-base font-normal md:text-lg">
The page you are looking for might have been removed, had
its name changed or is temporarily unavailable.
</span>
</div>
</div>
<Link href="/" className="mx-auto">
<Button variant="black">Go to homepage</Button>
</Link>
</div>
</div>
</div>
<TailwindIndicator />
</body>
</html>
)
}
2 changes: 1 addition & 1 deletion components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LucideIcon } from "lucide-react"
import { cn } from "@/lib/utils"

const buttonVariants = cva(
"inline-flex items-center justify-center duration-100 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
"font-sans inline-flex items-center justify-center duration-100 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
{
variants: {
variant: {
Expand Down
3 changes: 3 additions & 0 deletions public/icons/emotion-sad-line.svg
kalidiagne marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ module.exports = {
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
anakiwa: {
50: "#F2FAFD",
100: "hsl(var(--anakiwa))",
100: "#E4F3FA",
200: "#C2E8F5",
300: "#A3DFF0",
400: "#50C3E0",
500: "#29ACCE",
950: "#103241",
},
Expand Down