import { Hero } from "@/components/sections/Hero";
import { MarqueeNotification } from "@/components/sections/MarqueeNotification";
import { Schedule } from "@/components/sections/Schedule";
import { TrainTypes } from "@/components/sections/TrainTypes";
import { Stations } from "@/components/sections/Stations";
import { Gallery } from "@/components/sections/Gallery";
import { Updates } from "@/components/sections/Updates";
import { Videos } from "@/components/sections/Videos";
import { getWebSiteSchema, getLocalBusinessSchema } from "@/lib/schemas";
import { Suspense } from "react";

export const metadata = {
  title: "Trains of Rajbari | রাজবাড়ীর ট্রেন - Railway Schedule & Updates",
  description:
    "Complete railway guide for Rajbari district - Train schedules, station info, Dhaka to Rajbari routes, ticket booking & real-time updates. রাজবাড়ী জেলার সম্পূর্ণ রেলওয়ে গাইড।",
  alternates: {
    canonical: "https://trainsofrajbari.com",
  },
};

export default function Home() {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify(getWebSiteSchema()),
        }}
      />
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify(getLocalBusinessSchema()),
        }}
      />
      <MarqueeNotification />
      <Hero />
      <TrainTypes />
      <Suspense>
        <Schedule />
      </Suspense>
      <Stations />
      <Gallery />
      <Updates />
      <Videos />
    </>
  );
}
