Update src/app/layout.tsx

This commit is contained in:
2026-03-04 13:33:07 +00:00
parent 7448dac4fb
commit f4accf4314

View File

@@ -1,55 +1,20 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Nunito } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const halant = Halant({
variable: "--font-halant", subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
const nunito = Nunito({
variable: "--font-nunito", subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "HabitFlow - AI Habit Tracking & Personal Growth", description: "Build better habits with AI-powered insights, smart reminders, and community support. Transform your life one habit at a time with HabitFlow.", keywords: "habit tracking, AI habits, personal growth, habit builder, productivity, behavior change, goal setting", metadataBase: new URL("https://habitflow.ai"),
alternates: {
canonical: "https://habitflow.ai"
},
openGraph: {
title: "HabitFlow - AI Habit Tracking & Personal Growth", description: "Build better habits with AI-powered insights and smart tracking. Start your free trial today.", url: "https://habitflow.ai", siteName: "HabitFlow", type: "website", images: [
{
url: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ATyNOuh8B0VsIGIZ1NoN4SY9tC/a-stunning-ai-powered-habit-tracking-das-1772630884097-fb5cd89c.png", alt: "HabitFlow AI Dashboard"
}
]
},
twitter: {
card: "summary_large_image", title: "HabitFlow - AI Habit Tracking", description: "Build better habits with personalized AI insights. Transform your life today.", images: ["https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ATyNOuh8B0VsIGIZ1NoN4SY9tC/a-stunning-ai-powered-habit-tracking-das-1772630884097-fb5cd89c.png"]
}
};
title: "HabitFlow - AI-Powered Personal Growth", description: "Build better habits and achieve personal growth with AI-powered insights and tracking"};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${nunito.variable} antialiased`}
>
<Tag />
{children}
<html lang="en">
<body className={inter.className}>{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1417,7 +1382,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}