Update app/layout.tsx

This commit is contained in:
kleap-admin 2026-01-16 16:31:28 +00:00
parent 86eb0e84b4
commit 60f883b5b9
1 changed files with 14 additions and 29 deletions

View File

@ -10,15 +10,15 @@ import { TailwindCDNClient } from "@/components/tailwind-cdn-client";
export const metadata: Metadata = {
title: {
default: "Apex Detailing - Premium Auto Detailing in Cedar Rapids - AI-Powered Solution",
template: "%s | Apex Detailing - Premium Auto Detailing in Cedar Rapids",
default: "Apex Young Detailers | Cedar Rapids Car Detailing",
template: "%s | Apex Young Detailers",
},
description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.",
keywords: ["SaaS", "AI", "Template", "Next.js", "React", "TypeScript"],
authors: [{ name: "Apex Detailing Team" }],
creator: "Apex Detailing",
publisher: "Apex Detailing",
"Real human car detailing by hardworking 13-year-old entrepreneurs in Cedar Rapids. No AI, just real elbow grease and professional results.",
keywords: ["Car Detailing", "Cedar Rapids", "Young Entrepreneurs", "Hand Wash", "Interior Cleaning"],
authors: [{ name: "Apex Young Detailers Team" }],
creator: "Apex Young Detailers",
publisher: "Apex Young Detailers",
icons: {
icon: "/favicon.ico",
shortcut: "/favicon.ico",
@ -39,24 +39,24 @@ export const metadata: Metadata = {
type: "website",
locale: "en_US",
url: process.env.NEXT_PUBLIC_URL || "https://kleap.co",
siteName: "Apex Detailing - Premium Auto Detailing in Cedar Rapids",
title: "Apex Detailing - Premium Auto Detailing in Cedar Rapids - AI-Powered Solution",
siteName: "Apex Young Detailers",
title: "Apex Young Detailers | Cedar Rapids Car Detailing",
description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.",
"Real human car detailing by hardworking 13-year-old entrepreneurs in Cedar Rapids. No AI, just real elbow grease and professional results.",
images: [
{
url: "/og-image.png",
width: 1200,
height: 630,
alt: "Apex Detailing - Premium Auto Detailing in Cedar Rapids",
alt: "Apex Young Detailers",
},
],
},
twitter: {
card: "summary_large_image",
title: "Apex Detailing - Premium Auto Detailing in Cedar Rapids - AI-Powered Solution",
title: "Apex Young Detailers | Cedar Rapids Car Detailing",
description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.",
"Real human car detailing by hardworking 13-year-old entrepreneurs in Cedar Rapids. No AI, just real elbow grease and professional results.",
images: ["/og-image.png"],
creator: "@yourtwitter",
},
@ -74,13 +74,7 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<head suppressHydrationWarning>
{/*
CRITICAL: Base styles to prevent FOUC and hydration errors
DO NOT REMOVE OR MODIFY WITHOUT CAREFUL TESTING
React 19 requires href and precedence attributes on style tags
*/}
<style href="kleap-base-styles" precedence="high">{`
/* Base styles to prevent FOUC - always rendered server+client */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.text-white { color: white; }
@ -92,13 +86,6 @@ export default function RootLayout({
.antialiased { -webkit-font-smoothing: antialiased; }
.h-full { height: 100%; }
.w-full { width: 100%; }
/*
IMPORTANT: Button and shadcn/ui color styles
These classes are NOT generated by Tailwind v4 CDN and MUST be defined manually
Without these, buttons and shadcn components will appear unstyled
DO NOT REMOVE - Required for all shadcn/ui components to work properly
*/
.bg-primary { background-color: #020022; }
.text-primary-foreground { color: hsl(0 0% 98%); }
.hover\\:bg-primary\\/90:hover { background-color: rgba(2, 0, 34, 0.9); }
@ -118,8 +105,6 @@ export default function RootLayout({
.focus-visible\\:ring-2:focus-visible { --tw-ring-width: 2px; }
.focus-visible\\:ring-ring:focus-visible { --tw-ring-color: hsl(240 5.9% 10%); }
.focus-visible\\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }
/* FOUC prevention - hide body until CSS is loaded */
body { opacity: 1; }
body:not(.css-loaded) { opacity: 0; }
`}</style>
@ -129,7 +114,7 @@ export default function RootLayout({
GeistSans.className,
"bg-white antialiased h-full w-full",
)}
suppressHydrationWarning // Prevents browser extension conflicts
suppressHydrationWarning
>
<TailwindCDNClient />
<DevToolsGuard />