From b93b731c6b7025ce563df82a795e3fe1692f1ba0 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Thu, 5 Oct 2023 15:48:26 +0200 Subject: [PATCH] refactor(vojtechmares.com): migrate homepage to app directory --- apps/vojtechmares.com/app/layout.tsx | 62 +++++++++++++++++++ .../{pages/index.tsx => app/page.tsx} | 26 ++------ .../components/layout/Navigation.tsx | 45 ++++++++++++++ 3 files changed, 113 insertions(+), 20 deletions(-) create mode 100644 apps/vojtechmares.com/app/layout.tsx rename apps/vojtechmares.com/{pages/index.tsx => app/page.tsx} (59%) create mode 100644 apps/vojtechmares.com/components/layout/Navigation.tsx diff --git a/apps/vojtechmares.com/app/layout.tsx b/apps/vojtechmares.com/app/layout.tsx new file mode 100644 index 0000000..85a3c5a --- /dev/null +++ b/apps/vojtechmares.com/app/layout.tsx @@ -0,0 +1,62 @@ +import type { Metadata } from 'next' +import { Analytics } from '@vercel/analytics/react' + +import { Footer } from '@/components/layout/Footer' +import { Navigation } from '@/components/layout/Navigation' + +import '@/styles/tailwind.css' + +export const metadata: Metadata = { + title: 'Vojtěch Mareš - DevOps konzultant, lektor, engineer', + description: 'Vojtěch Mareš - DevOps konzultant, lektor, engineer', + themeColor: '#ffffff', + viewport: 'width=device-width, initial-scale=1.0', + icons: { + icon: [ + { url: '/favicon.ico' }, + { url: '/favicon-16x16.png', sizes: '16x16', type: 'image/png' }, + { url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png' }, + ], + shortcut: '/shortcut-icon.png', + apple: '/apple-touch-icon.png', + other: { + rel: 'apple-touch-icon-precomposed', + url: '/apple-touch-icon-precomposed.png', + }, + }, + manifest: '/site.webmanifest', + twitter: { + card: 'summary_large_image', + site: '@vojtechmares', + creator: '@vojtechmares', + title: 'Vojtěch Mareš - DevOps konzultant, lektor, engineer', + images: [ + { url: '/og.png' }, + ] + }, +} + +const RootLayout = ({ children }: { children: React.ReactNode }) => { + return ( + + + + + + + {children} +