Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 9m53s
Added suppressHydrationWarning to html tag and implemented safe date/number handling in project and reading components.
110 lines
2.8 KiB
TypeScript
110 lines
2.8 KiB
TypeScript
import "./globals.css";
|
|
import { Metadata } from "next";
|
|
import { Inter, Playfair_Display } from "next/font/google";
|
|
import React from "react";
|
|
import ClientProviders from "./components/ClientProviders";
|
|
import { cookies } from "next/headers";
|
|
import { getBaseUrl } from "@/lib/seo";
|
|
import ShaderGradientBackground from "./components/ShaderGradientBackground";
|
|
|
|
const inter = Inter({
|
|
variable: "--font-inter",
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
adjustFontFallback: true,
|
|
});
|
|
|
|
const playfair = Playfair_Display({
|
|
variable: "--font-playfair",
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
adjustFontFallback: true,
|
|
});
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
const cookieStore = await cookies();
|
|
const locale = cookieStore.get("NEXT_LOCALE")?.value || "en";
|
|
return (
|
|
<html lang={locale} suppressHydrationWarning>
|
|
<head>
|
|
<meta charSet="utf-8" />
|
|
</head>
|
|
<body className={`${inter.variable} ${playfair.variable}`} suppressHydrationWarning>
|
|
<ShaderGradientBackground />
|
|
<ClientProviders>{children}</ClientProviders>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(getBaseUrl()),
|
|
title: {
|
|
default: "Dennis Konkol | Portfolio",
|
|
template: "%s | Dennis Konkol",
|
|
},
|
|
description:
|
|
"Portfolio of Dennis Konkol, a student and software engineer based in Osnabrück, Germany. Passionate about technology, coding, and solving real-world problems.",
|
|
keywords: [
|
|
"Dennis Konkol",
|
|
"Software Engineer",
|
|
"Portfolio",
|
|
"Student",
|
|
"Web Development",
|
|
"Full Stack Developer",
|
|
"Osnabrück",
|
|
"Germany",
|
|
"React",
|
|
"Next.js",
|
|
"TypeScript",
|
|
],
|
|
authors: [{ name: "Dennis Konkol", url: "https://dk0.dev" }],
|
|
creator: "Dennis Konkol",
|
|
publisher: "Dennis Konkol",
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: {
|
|
index: true,
|
|
follow: true,
|
|
"max-video-preview": -1,
|
|
"max-image-preview": "large",
|
|
"max-snippet": -1,
|
|
},
|
|
},
|
|
openGraph: {
|
|
title: "Dennis Konkol | Portfolio",
|
|
description:
|
|
"Explore my projects and contact me for collaboration opportunities!",
|
|
url: "https://dk0.dev",
|
|
siteName: "Dennis Konkol Portfolio",
|
|
images: [
|
|
{
|
|
url: "https://dk0.dev/api/og",
|
|
width: 1200,
|
|
height: 630,
|
|
alt: "Dennis Konkol Portfolio",
|
|
},
|
|
],
|
|
locale: "en_US",
|
|
type: "website",
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "Dennis Konkol | Portfolio",
|
|
description: "Student & Software Engineer based in Osnabrück, Germany.",
|
|
images: ["https://dk0.dev/api/og"],
|
|
creator: "@denshooter",
|
|
},
|
|
verification: {
|
|
google: process.env.NEXT_PUBLIC_GOOGLE_VERIFICATION,
|
|
},
|
|
alternates: {
|
|
canonical: "https://dk0.dev",
|
|
},
|
|
};
|