import type { Metadata } from "next";

import "./globals.css";

import ClarityConsent from "./components/ClarityConsent";

export const metadata: Metadata = {
  metadataBase: new URL(
    "https://shipflow.com.tr"
  ),

  title: {
    default:
      "ShipFlow | Freight Operations Simplified",
    template:
      "%s | ShipFlow"
  },

  description:
    "ShipFlow; freight operasyonlarını, " +
    "konşimentoları, dokümanları, görevleri " +
    "ve ETA takibini tek çalışma alanında " +
    "birleştiren modern operasyon platformudur.",

  applicationName: "ShipFlow",

  authors: [
    {
      name: "ShipFlow",
      url: "https://shipflow.com.tr"
    }
  ],

  creator: "ShipFlow",
  publisher: "ShipFlow",

  alternates: {
    canonical: "/"
  },

  openGraph: {
    type: "website",
    locale: "tr_TR",
    url: "https://shipflow.com.tr",
    siteName: "ShipFlow",

    title:
      "ShipFlow | Freight Operations Simplified",

    description:
      "Freight operasyonlarını, " +
      "konşimentoları, dokümanları, görevleri " +
      "ve ETA takibini tek çalışma alanında yönetin.",

    images: [
      {
        url: "/opengraph-image.jpg",
        width: 1200,
        height: 630,
        alt:
          "ShipFlow - Freight operasyonlarının " +
          "dijital çalışma alanı"
      }
    ]
  },

  twitter: {
    card: "summary_large_image",

    title:
      "ShipFlow | Freight Operations Simplified",

    description:
      "Freight operasyonlarının " +
      "dijital çalışma alanı.",

    images: [
      "/twitter-image.jpg"
    ]
  },

  icons: {
    icon: [
      {
        url: "/favicon.ico",
        sizes: "any"
      },
      {
        url: "/icon.png",
        type: "image/png",
        sizes: "512x512"
      }
    ],

    apple: [
      {
        url: "/apple-icon.png",
        type: "image/png",
        sizes: "180x180"
      }
    ],

    shortcut: [
      "/favicon.ico"
    ]
  },

  robots: {
    index: true,
    follow: true,

    googleBot: {
      index: true,
      follow: true,
      "max-image-preview": "large",
      "max-snippet": -1,
      "max-video-preview": -1
    }
  },

  category: "technology"
};

export default function RootLayout({
  children
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="tr">
      <body>
        {children}
        <ClarityConsent />
      </body>
    </html>
  );
}