2025-11-07 11:26:19 +01:00
import type { Metadata } from 'next' ;
import './globals.css' ;
2026-02-23 17:21:46 +01:00
const siteUrl = process . env . NEXT_PUBLIC_SITE_URL || 'http://localhost:3000' ;
2025-11-07 11:26:19 +01:00
export const metadata : Metadata = {
2026-02-27 17:46:54 +01:00
title : {
default : 'Kit - Your Creative Toolkit' ,
template : '%s | Kit' ,
},
2025-11-07 12:30:08 +01:00
description : 'A curated collection of creative and utility tools for developers and creators. Features file conversion, image editing, and color manipulation.' ,
2026-02-26 12:19:22 +01:00
keywords : [ 'tools' , 'utilities' , 'file converter' , 'image editor' , 'color palette' , 'creative toolkit' , 'convert' , 'paint' , 'color' , 'open source' ],
2026-02-23 17:21:46 +01:00
metadataBase : new URL ( siteUrl ),
2026-02-24 15:27:16 +01:00
icons : {
icon : '/icon.png' ,
shortcut : '/icon.png' ,
apple : '/icon.png' ,
2025-11-07 12:30:08 +01:00
},
robots : {
index : true ,
follow : true ,
googleBot : {
index : true ,
follow : true ,
'max-video-preview' : - 1 ,
'max-image-preview' : 'large' ,
'max-snippet' : - 1 ,
},
},
2025-11-07 11:26:19 +01:00
};
export default function RootLayout ({
children ,
} : Readonly < {
children : React.ReactNode ;
} > ) {
2026-02-23 17:09:44 +01:00
const umamiScript = process . env . UMAMI_SCRIPT ;
const umamiId = process . env . UMAMI_ID ;
const isProd = process . env . NODE_ENV === 'production' ;
2025-11-07 11:26:19 +01:00
return (
2026-03-02 17:30:58 +01:00
< html lang = "en" className = "scrollbar-thin scrollbar-thumb-primary/20 scrollbar-track-transparent" >
2025-11-07 12:30:08 +01:00
< head >
< meta name = "viewport" content = "width=device-width, initial-scale=1" />
2026-02-26 18:01:33 +01:00
< meta name = "apple-mobile-web-app-capable" content = "yes" />
< meta name = "apple-mobile-web-app-status-bar-style" content = "default" />
< meta name = "apple-mobile-web-app-title" content = "Kit" />
< meta name = "format-detection" content = "telephone=no" />
< meta name = "mobile-web-app-capable" content = "yes" />
< meta name = "theme-color" content = "#8b5cf6" />
2026-02-23 17:09:44 +01:00
{ isProd && umamiScript && umamiId && (
< script defer src = { umamiScript } data-website-id = { umamiId }></ script >
)}
2025-11-07 12:30:08 +01:00
</ head >
2025-11-07 11:26:19 +01:00
< body className = "antialiased" >
{ children }
</ body >
</ html >
);
}