Update app/layout.tsx

This commit is contained in:
kleap-admin 2026-01-16 17:06:25 +00:00
parent a5eaeef6bb
commit ef4bfe8f91
1 changed files with 10 additions and 25 deletions

View File

@ -10,15 +10,15 @@ import { TailwindCDNClient } from "@/components/tailwind-cdn-client";
export const metadata: Metadata = { export const metadata: Metadata = {
title: { title: {
default: "Astra Leads - AI-Powered Solution", default: "Astra Leads | NEAGU NINA Î.I.",
template: "%s | Astra Leads", template: "%s | Astra Leads",
}, },
description: description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.", "High-quality B2B lead generation services by Astra Leads (NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ). CUI: 52169186. Based in Jud. Buzău, Romania.",
keywords: ["SaaS", "AI", "Template", "Next.js", "React", "TypeScript"], keywords: ["Lead Generation", "B2B", "Sales", "Outreach", "Romania", "Astra Leads"],
authors: [{ name: "Astra Leads Team" }], authors: [{ name: "Astra Leads Team" }],
creator: "Astra Leads Agency", creator: "NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ",
publisher: "Astra Leads Agency", publisher: "NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ",
icons: { icons: {
icon: "/favicon.ico", icon: "/favicon.ico",
shortcut: "/favicon.ico", shortcut: "/favicon.ico",
@ -40,9 +40,9 @@ export const metadata: Metadata = {
locale: "en_US", locale: "en_US",
url: process.env.NEXT_PUBLIC_URL || "https://kleap.co", url: process.env.NEXT_PUBLIC_URL || "https://kleap.co",
siteName: "Astra Leads", siteName: "Astra Leads",
title: "Astra Leads - AI-Powered Solution", title: "Astra Leads | NEAGU NINA Î.I.",
description: description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.", "High-quality B2B lead generation services by Astra Leads (NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ). CUI: 52169186. Based in Jud. Buzău, Romania.",
images: [ images: [
{ {
url: "/og-image.png", url: "/og-image.png",
@ -54,9 +54,9 @@ export const metadata: Metadata = {
}, },
twitter: { twitter: {
card: "summary_large_image", card: "summary_large_image",
title: "Astra Leads - AI-Powered Solution", title: "Astra Leads | NEAGU NINA Î.I.",
description: description:
"Built with Kleap - AI-powered platform to create stunning websites and apps. Turn your ideas into reality in minutes.", "High-quality B2B lead generation services by Astra Leads (NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ). CUI: 52169186. Based in Jud. Buzău, Romania.",
images: ["/og-image.png"], images: ["/og-image.png"],
creator: "@astraleads", creator: "@astraleads",
}, },
@ -74,13 +74,7 @@ export default function RootLayout({
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<head 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">{` <style href="kleap-base-styles" precedence="high">{`
/* Base styles to prevent FOUC - always rendered server+client */
.bg-white { background-color: white; } .bg-white { background-color: white; }
.bg-black { background-color: black; } .bg-black { background-color: black; }
.text-white { color: white; } .text-white { color: white; }
@ -92,13 +86,6 @@ export default function RootLayout({
.antialiased { -webkit-font-smoothing: antialiased; } .antialiased { -webkit-font-smoothing: antialiased; }
.h-full { height: 100%; } .h-full { height: 100%; }
.w-full { width: 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; } .bg-primary { background-color: #020022; }
.text-primary-foreground { color: hsl(0 0% 98%); } .text-primary-foreground { color: hsl(0 0% 98%); }
.hover\\:bg-primary\\/90:hover { background-color: rgba(2, 0, 34, 0.9); } .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-2:focus-visible { --tw-ring-width: 2px; }
.focus-visible\\:ring-ring:focus-visible { --tw-ring-color: hsl(240 5.9% 10%); } .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; } .focus-visible\\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }
/* FOUC prevention - hide body until CSS is loaded */
body { opacity: 1; } body { opacity: 1; }
body:not(.css-loaded) { opacity: 0; } body:not(.css-loaded) { opacity: 0; }
`}</style> `}</style>
@ -129,7 +114,7 @@ export default function RootLayout({
GeistSans.className, GeistSans.className,
"bg-white antialiased h-full w-full", "bg-white antialiased h-full w-full",
)} )}
suppressHydrationWarning // Prevents browser extension conflicts suppressHydrationWarning
> >
<TailwindCDNClient /> <TailwindCDNClient />
<DevToolsGuard /> <DevToolsGuard />