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

feat(not-found): add not-found page #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
21 changes: 21 additions & 0 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Button } from "@/components/ui/button";
import Illustration from "@/demo/illustration";
import Link from "next/link";

export default function NotFound() {
return (
<>
<Illustration />

<main className="flex flex-1 flex-col items-center justify-center gap-5">
<h1 className="mb-4 text-4xl/[1.1] font-extrabold tracking-tight text-foreground md:text-5xl/[1.1]">
Page not found
</h1>

<Button size="lg" variant="outline">
<Link href="/">Go to homepage</Link>
</Button>
</main>
</>
);
}
3 changes: 1 addition & 2 deletions components/buttons/button-01.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button } from "@/components/ui/button";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return <Button>Button</Button>;
}
3 changes: 1 addition & 2 deletions components/buttons/button-02.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button } from "@/components/ui/button";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return <Button disabled>Button</Button>;
}
3 changes: 1 addition & 2 deletions components/buttons/button-03.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button } from "@/components/ui/button";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return <Button className="rounded-full">Button</Button>;
}
3 changes: 1 addition & 2 deletions components/buttons/button-04.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Archive } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button>
<Archive className="-ms-1 me-2 opacity-60" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-05.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Trash } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="destructive">
<Trash className="-ms-1 me-2 opacity-60" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-06.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { X } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="secondary">
<X className="-ms-1 me-2 opacity-60" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-07.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Sparkles } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="outline">
Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-08.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ArrowLeft } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="group" variant="ghost">
<ArrowLeft
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-09.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ArrowRight } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="group">
Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-10.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ArrowRight, Mail } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="group" variant="secondary">
<Mail className="-ms-1 me-2 opacity-60" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-11.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronDown } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button>
Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-12.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from "@/components/ui/button";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex items-center gap-2">
<Button variant="ghost">Cancel</Button>
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-13.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { LoaderCircle } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button disabled>
<LoaderCircle
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-14.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Button } from "@/components/ui/button";
import { LoaderCircle } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [isLoading, setIsLoading] = useState<boolean>(false);

const handleClick = () => {
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-15.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from "@/components/ui/button";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="outline">
Messages
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-16.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Printer } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="outline">
<Printer className="-ms-1 me-2 opacity-60" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-17.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Button } from "@/components/ui/button";
import AvatarImg from "@/public/avatar.jpg";
import Image from "next/image";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="rounded-full py-0 ps-0">
<div className="me-0.5 flex aspect-square h-full p-1.5">
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-18.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import AvatarImg from "@/public/avatar.jpg";
import { ChevronDown } from "lucide-react";
import Image from "next/image";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="ghost" className="h-auto p-0 hover:bg-transparent">
<Image
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-19.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Plus } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button variant="outline" className="aspect-square max-sm:p-0">
<Plus className="opacity-60 sm:-ms-1 sm:me-2" size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-20.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Plus } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="rounded-full" variant="outline" size="icon" aria-label="Add new item">
<Plus size={16} strokeWidth={2} aria-hidden="true" />
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-21.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Button } from "@/components/ui/button";
import { Plus } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [open, setOpen] = useState<boolean>(false);

return (
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-22.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Button } from "@/components/ui/button";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { Plus } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<TooltipProvider delayDuration={0}>
<Tooltip>
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-23.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [open, setOpen] = useState<boolean>(false);

return (
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-24.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/comp
import { Bookmark } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [bookmarked, setBookmarked] = useState<boolean>(false);
return (
<TooltipProvider>
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-25.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronDown, ChevronUp } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-26.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronDown, ChevronUp } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px rounded-full shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-27.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Button } from "@/components/ui/button";
import { Minus, Plus, Volume, Volume1, Volume2, VolumeX } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [volume, setVolume] = useState(3); // Initialize volume state (0-9)

const decreaseVolume = () => setVolume((prev) => Math.max(0, prev - 1));
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-28.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { cn } from "@/lib/utils";
import { Check, Copy } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [copied, setCopied] = useState<boolean>(false);

const handleCopy = async () => {
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-29.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { FlipHorizontal, FlipVertical } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-30.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
import { AlignCenter, AlignJustify, AlignLeft, AlignRight } from "lucide-react";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [value, setValue] = useState<string>("center");

return (
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-31.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { Ellipsis, Files, Film } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-32.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<ToggleGroup
variant="outline"
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-33.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
import { useState } from "react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
const [value, setValue] = useState<string>("left");

return (
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-34.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { QrCode } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px divide-x divide-primary-foreground/30 rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-35.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { SquareArrowOutUpRight } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-36.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronDown, Pin } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px divide-x divide-primary-foreground/30 rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-37.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronDown, GitFork } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<div className="inline-flex -space-x-px divide-x divide-primary-foreground/30 rounded-lg shadow-sm shadow-black/5 rtl:space-x-reverse">
<Button className="rounded-none shadow-none first:rounded-s-lg last:rounded-e-lg focus-visible:z-10">
Expand Down
3 changes: 1 addition & 2 deletions components/buttons/button-38.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import { Button } from "@/components/ui/button";
import { ChevronLeft } from "lucide-react";

export default function ButtonDemo(
) {
export default function ButtonDemo() {
return (
<Button className="relative ps-12">
Previous
Expand Down
Loading