Update app/layout.tsx
This commit is contained in:
parent
a5eaeef6bb
commit
ef4bfe8f91
|
|
@ -10,15 +10,15 @@ import { TailwindCDNClient } from "@/components/tailwind-cdn-client";
|
|||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: "Astra Leads - AI-Powered Solution",
|
||||
default: "Astra Leads | NEAGU NINA Î.I.",
|
||||
template: "%s | Astra Leads",
|
||||
},
|
||||
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"],
|
||||
"High-quality B2B lead generation services by Astra Leads (NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ). CUI: 52169186. Based in Jud. Buzău, Romania.",
|
||||
keywords: ["Lead Generation", "B2B", "Sales", "Outreach", "Romania", "Astra Leads"],
|
||||
authors: [{ name: "Astra Leads Team" }],
|
||||
creator: "Astra Leads Agency",
|
||||
publisher: "Astra Leads Agency",
|
||||
creator: "NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ",
|
||||
publisher: "NEAGU NINA ÎNTREPRINDERE INDIVIDUALĂ",
|
||||
icons: {
|
||||
icon: "/favicon.ico",
|
||||
shortcut: "/favicon.ico",
|
||||
|
|
@ -40,9 +40,9 @@ export const metadata: Metadata = {
|
|||
locale: "en_US",
|
||||
url: process.env.NEXT_PUBLIC_URL || "https://kleap.co",
|
||||
siteName: "Astra Leads",
|
||||
title: "Astra Leads - AI-Powered Solution",
|
||||
title: "Astra Leads | NEAGU NINA Î.I.",
|
||||
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: [
|
||||
{
|
||||
url: "/og-image.png",
|
||||
|
|
@ -54,9 +54,9 @@ export const metadata: Metadata = {
|
|||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: "Astra Leads - AI-Powered Solution",
|
||||
title: "Astra Leads | NEAGU NINA Î.I.",
|
||||
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"],
|
||||
creator: "@astraleads",
|
||||
},
|
||||
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Reference in New Issue