2025-03-19 06:04:06 +00:00
import type { Metadata } from "next" ;
import { Geist , Geist_Mono } from "next/font/google" ;
2025-03-26 13:44:02 +00:00
import { Analytics } from "@vercel/analytics/react" ;
2025-03-27 08:24:17 +00:00
import { DiagramProvider } from "@/contexts/diagram-context" ;
2025-03-19 06:04:06 +00:00
import "./globals.css" ;
const geistSans = Geist ( {
2025-03-23 12:48:31 +00:00
variable : "--font-geist-sans" ,
subsets : [ "latin" ] ,
2025-03-19 06:04:06 +00:00
} ) ;
const geistMono = Geist_Mono ( {
2025-03-23 12:48:31 +00:00
variable : "--font-geist-mono" ,
subsets : [ "latin" ] ,
2025-03-19 06:04:06 +00:00
} ) ;
export const metadata : Metadata = {
2025-11-16 08:36:13 +09:00
title : "Next AI Draw.io - AI-Powered Diagram Generator" ,
description : "Create AWS architecture diagrams, flowcharts, and technical diagrams using AI. Free online tool integrating draw.io with AI assistance for professional diagram creation." ,
keywords : [ "AI diagram generator" , "AWS architecture" , "flowchart creator" , "draw.io" , "AI drawing tool" , "technical diagrams" , "diagram automation" ] ,
authors : [ { name : "Next AI Draw.io" } ] ,
creator : "Next AI Draw.io" ,
publisher : "Next AI Draw.io" ,
metadataBase : new URL ( "https://next-ai-draw-io.vercel.app" ) ,
openGraph : {
title : "Next AI Draw.io - AI Diagram Generator" ,
description : "Create professional diagrams with AI assistance. Supports AWS architecture, flowcharts, and more." ,
type : "website" ,
url : "https://next-ai-draw-io.vercel.app" ,
siteName : "Next AI Draw.io" ,
locale : "en_US" ,
images : [
{
url : "/architecture.png" ,
width : 1200 ,
height : 630 ,
alt : "Next AI Draw.io - AI-powered diagram creation tool" ,
} ,
] ,
} ,
twitter : {
card : "summary_large_image" ,
title : "Next AI Draw.io - AI Diagram Generator" ,
description : "Create professional diagrams with AI assistance" ,
images : [ "/architecture.png" ] ,
} ,
robots : {
index : true ,
follow : true ,
googleBot : {
index : true ,
follow : true ,
"max-video-preview" : - 1 ,
"max-image-preview" : "large" ,
"max-snippet" : - 1 ,
} ,
} ,
icons : {
icon : "/favicon.ico" ,
} ,
2025-03-19 06:04:06 +00:00
} ;
export default function RootLayout ( {
2025-03-23 12:48:31 +00:00
children ,
2025-03-19 06:04:06 +00:00
} : Readonly < {
2025-03-23 12:48:31 +00:00
children : React.ReactNode ;
2025-03-19 06:04:06 +00:00
} > ) {
2025-11-16 08:36:13 +09:00
const jsonLd = {
'@context' : 'https://schema.org' ,
'@type' : 'SoftwareApplication' ,
name : 'Next AI Draw.io' ,
applicationCategory : 'DesignApplication' ,
operatingSystem : 'Web Browser' ,
description : 'AI-powered diagram generator that integrates with draw.io for creating AWS architecture diagrams, flowcharts, and technical diagrams.' ,
url : 'https://next-ai-draw-io.vercel.app' ,
offers : {
'@type' : 'Offer' ,
price : '0' ,
priceCurrency : 'USD' ,
} ,
aggregateRating : {
'@type' : 'AggregateRating' ,
ratingValue : '5' ,
ratingCount : '1' ,
} ,
} ;
2025-03-23 12:48:31 +00:00
return (
< html lang = "en" >
< body
className = { ` ${ geistSans . variable } ${ geistMono . variable } antialiased ` }
>
2025-11-16 08:36:13 +09:00
< script
type = "application/ld+json"
dangerouslySetInnerHTML = { { __html : JSON.stringify ( jsonLd ) } }
/ >
2025-03-27 08:24:17 +00:00
< DiagramProvider > { children } < / DiagramProvider >
2025-03-26 13:44:02 +00:00
< Analytics / >
2025-03-23 12:48:31 +00:00
< / body >
< / html >
) ;
2025-03-19 06:04:06 +00:00
}