generated from theodorusclarence/ts-nextjs-tailwind-starter
-
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: restructure pages to Sanity folder
- Loading branch information
1 parent
27188a5
commit 069d56d
Showing
14 changed files
with
110 additions
and
178 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 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,14 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
}; | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang='en'> | ||
<body>{children}</body> | ||
</html> | ||
); | ||
} |
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,19 @@ | ||
'use client'; | ||
|
||
import { ThemeProvider } from 'next-themes'; | ||
import type { PropsWithChildren } from 'react'; | ||
|
||
import Footer from '@/components/layout/Footer'; | ||
import Header from '@/components/layout/Header'; | ||
|
||
export default function LayoutClient({ children }: PropsWithChildren) { | ||
return ( | ||
<ThemeProvider attribute='class' defaultTheme='light' enableSystem={false}> | ||
<Header /> | ||
|
||
<main id='content'>{children}</main> | ||
|
||
<Footer /> | ||
</ThemeProvider> | ||
); | ||
} |
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,29 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import '@/styles/globals.css'; | ||
|
||
import LayoutClient from '@/app/(public)/layout-client'; | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
}; | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang='en'> | ||
<head> | ||
<title>MartaCodes.it</title> | ||
<link | ||
rel='icon' | ||
type='image/png' | ||
sizes='32x32' | ||
href='/favicon/favicon.ico' | ||
/> | ||
</head> | ||
<body> | ||
<LayoutClient>{children}</LayoutClient> | ||
</body> | ||
</html> | ||
); | ||
} |
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,19 @@ | ||
import * as React from 'react'; | ||
|
||
import Seo from '@/components/Seo'; | ||
|
||
const HomePage = async () => { | ||
return ( | ||
<main> | ||
<Seo templateTitle='Home' /> | ||
|
||
<section className='dark:bg-dark min-h-main bg-white'> | ||
<div className='layout relative flex flex-col items-center justify-center py-12 text-center'> | ||
Homepage :) | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
}; | ||
|
||
export default HomePage; |
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 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 |
---|---|---|
@@ -1,29 +1,21 @@ | ||
import * as React from 'react'; | ||
import { RiAlarmWarningFill } from 'react-icons/ri'; | ||
|
||
import Layout from '@/components/layout/Layout'; | ||
import ArrowLink from '@/components/links/ArrowLink'; | ||
import Seo from '@/components/Seo'; | ||
import '@/styles/globals.css'; | ||
|
||
import UnstyledLink from '@/components/links/UnstyledLink'; | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<Layout> | ||
<Seo templateTitle='Not Found' /> | ||
|
||
<main> | ||
<section className='bg-white'> | ||
<div className='layout flex min-h-screen flex-col items-center justify-center text-center text-black'> | ||
<RiAlarmWarningFill | ||
size={60} | ||
className='drop-shadow-glow animate-flicker text-red-500' | ||
/> | ||
<h1 className='mt-8 text-4xl md:text-6xl'>Page Not Found</h1> | ||
<ArrowLink className='mt-4 md:text-lg' href='/'> | ||
Back to Home | ||
</ArrowLink> | ||
</div> | ||
</section> | ||
</main> | ||
</Layout> | ||
<> | ||
<div className='layout min-h-no-header flex flex-col items-center justify-center text-center dark:text-white'> | ||
<h1 className='mt-8'>Page Not Found</h1> | ||
<UnstyledLink | ||
href='/' | ||
className='animated-underline dark:animated-underline mt-4 rounded-sm font-medium text-slate-950 dark:text-blue-50' | ||
> | ||
Back to Home | ||
</UnstyledLink> | ||
</div> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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