-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade Next.js stable and enhance some pages
- Loading branch information
Showing
30 changed files
with
342 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
import type { Metadata } from 'next' | ||
import Link from 'next/link' | ||
import { HeroSolidChevronDoubleLeft } from '@twistail/icons' | ||
|
||
export const metadata: Metadata = { title: 'About - Next.js Tailwind Starter' } | ||
|
||
export default function Page() { | ||
return ( | ||
<main className='mx-auto max-w-2xl'> | ||
<Link | ||
href='/' | ||
className='group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 dark:invert hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30' | ||
> | ||
<span className='mr-1 inline-block transition-transform group-hover:-translate-x-1 motion-reduce:transform-none'> | ||
← | ||
</span> | ||
<span>Back to homepage</span> | ||
</Link> | ||
<main className='content-wrapper flex grow items-center justify-center'> | ||
<div className='page-container'> | ||
<section className='mx-auto flex w-full max-w-2xl flex-col items-center justify-center py-24'> | ||
<h1 className='text-2xl font-extrabold text-gray-900 dark:invert sm:text-3xl lg:text-4xl'> | ||
Example About Page | ||
</h1> | ||
<div className='mt-8 sm:mt-12'> | ||
<Link | ||
href='/' | ||
className='inline-flex items-center rounded-lg border border-gray-200 bg-gray-900 px-6 py-3 text-center text-sm font-medium text-white hover:bg-gray-700 hover:text-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600' | ||
> | ||
<HeroSolidChevronDoubleLeft className='-ml-1 mr-1 h-4 w-4' /> | ||
Back to homepage | ||
</Link> | ||
</div> | ||
</section> | ||
</div> | ||
</main> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,19 +1,34 @@ | ||
import Link from 'next/link' | ||
import { HeroSolidChevronDoubleLeft } from '@twistail/icons' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { title: '404 - Page not found' } | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className='h-full min-h-screen bg-slate-50'> | ||
<div className='flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8'> | ||
<div className='mx-auto mt-8 sm:w-full sm:max-w-2xl'> | ||
<div className='space-y-4 text-gray-900'> | ||
<h2 className='text-lg font-bold'>Not Found</h2> | ||
<p className='text-sm'>Could not find requested resource</p> | ||
<div className='mt-4'> | ||
<a href='/' className='hover:text-primary-600'> | ||
← back to homepage | ||
</a> | ||
<div className='flex h-full min-h-screen w-full flex-col bg-white dark:bg-gray-900'> | ||
<main className='content-wrapper flex grow items-center justify-center'> | ||
<div className='page-container'> | ||
<section className='mx-auto flex w-full max-w-2xl flex-col items-center justify-center py-24'> | ||
<h1 className='text-2xl font-extrabold text-gray-900 dark:invert sm:text-3xl lg:text-4xl'> | ||
404 - Page not found | ||
</h1> | ||
<p className='mt-8 text-center text-xl leading-8 text-gray-600 dark:text-gray-300/80'> | ||
Sorry, we can’t find that page. Check that you typed the address correctly, or | ||
try using our site search to find something specific. | ||
</p> | ||
<div className='mt-8 sm:mt-12'> | ||
<Link | ||
href='/' | ||
className='inline-flex items-center rounded-lg border border-gray-200 bg-gray-900 px-6 py-3 text-center text-sm font-medium text-white hover:bg-gray-700 hover:text-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600' | ||
> | ||
<HeroSolidChevronDoubleLeft className='-ml-1 mr-1 h-4 w-4' /> | ||
Back to homepage | ||
</Link> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
) | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
import { FC } from 'react' | ||
import Link, { LinkProps } from 'next/link' | ||
|
||
import { cn } from '@/utils/helpers' | ||
|
||
interface ExternalLinkProps { | ||
interface ExternalLinkProps extends LinkProps { | ||
children: React.ReactNode | ||
href: string | ||
className?: string | ||
} | ||
|
||
export const ExternalLink: FC<ExternalLinkProps> = ({ children, href, className }) => { | ||
export const ExternalLink: FC<ExternalLinkProps> = ({ children, href, className, ...props }) => { | ||
return ( | ||
<a href={href} className={cn(className)} rel='noopener noreferrer' target='_blank'> | ||
<Link | ||
href={href} | ||
className={cn(className)} | ||
rel='noopener noreferrer' | ||
target='_blank' | ||
{...props} | ||
> | ||
{children} | ||
</a> | ||
</Link> | ||
) | ||
} |
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
Oops, something went wrong.
148d674
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-tailwind-starter – ./
next-tailwind-starter-git-main-riipandi.vercel.app
next-start.vercel.app
next-tailwind-starter-riipandi.vercel.app