- Replace ShaderGradientBackground WebGL shader (3 static spheres) with pure CSS radial-gradient divs — moves from ClientProviders (deferred JS) to app/layout.tsx as a server component rendered in initial HTML. Eliminates @shadergradient/react, three, @react-three/fiber from the JS bundle. Removes chunks/7001 (~20s CPU eval) and the 39s main thread block. - Remove optimizeCss/critters: it was converting <link rel="stylesheet"> to a JS-deferred preload, which PageSpeed read as a 410ms sequential CSS chain. Both CSS files now load as parallel <link> tags from initial HTML (~150ms). - Update browserslist safari >= 15 → 15.4 (Array.prototype.at, Object.hasOwn are native in 15.4+; eliminates unnecessary SWC compatibility transforms). - Delete orphaned app/styles/ghostContent.css (never imported anywhere, 3.7KB). - Add .claude/ dev team setup: 5 subagents (frontend-dev, backend-dev, tester, code-reviewer, debugger), 3 skills (/add-section, /review-changes, /check-quality), 3 path-scoped rules, settings.json with auto-lint hook. - Update CLAUDE.md with server/client orchestrator pattern, SSR animation safety rules, API route conventions, and improved command reference. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
111 lines
2.9 KiB
TypeScript
111 lines
2.9 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 ShaderGradientBackground from "./components/ShaderGradientBackground";
|
|
import { cookies } from "next/headers";
|
|
import { getBaseUrl } from "@/lib/seo";
|
|
|
|
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>
|
|
<div className="grain-overlay" aria-hidden="true" />
|
|
<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",
|
|
},
|
|
};
|