-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add not-found page, tailwind-incator
- Loading branch information
1 parent
bfe31f8
commit 77cbad0
Showing
18 changed files
with
273 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import Shell from "@/components/shells/shell"; | ||
import { Button, buttonVariants } from "@/components/ui/button"; | ||
import { cn } from "@/lib/utils"; | ||
import Link from "next/link"; | ||
|
||
const NotFound = async () => { | ||
return ( | ||
<> | ||
<Shell className="md:py-24"> | ||
<section className="text-center my-4"> | ||
<p className="text-[6rem] font-semibold"> | ||
404 | ||
</p> | ||
|
||
<h1 className="mt-4 text-3xl font-bold tracking-tight sm:text-5xl"> | ||
Page not found | ||
</h1> | ||
|
||
<p className="mt-6 text-base leading-7"> | ||
Sorry, we couldn’t find the page you’re looking for. | ||
</p> | ||
|
||
<div className="mt-10 flex items-center justify-center gap-x-6"> | ||
<Link | ||
href="/" | ||
className={cn( | ||
buttonVariants({className: "mx-auto mt-4 w-fit" }) | ||
)} | ||
> Go back home </Link> | ||
{/* <a href="#" className="text-sm font-semibold text-gray-900"> | ||
Contact support <span aria-hidden="true">→</span> | ||
</a> */} | ||
</div> | ||
</section> | ||
</Shell> | ||
</> | ||
); | ||
}; | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { env } from "@/env.mjs" | ||
|
||
const TailwindIndicator = () => { | ||
if (env.NODE_ENV === "development") { | ||
return ( | ||
<div className="fixed left-0 top-0 z-50 flex w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200"> | ||
<span className="block sm:hidden">all</span> | ||
<span className="hidden sm:block md:hidden">sm</span> | ||
<span className="hidden md:block lg:hidden">md</span> | ||
<span className="hidden lg:block xl:hidden">lg</span> | ||
<span className="hidden xl:block 2xl:hidden">xl</span> | ||
<span className="hidden 2xl:block">2xl</span> | ||
</div> | ||
); | ||
} else { | ||
return null; | ||
} | ||
}; | ||
|
||
export default TailwindIndicator; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.