import { teamMembers } from "@/data";
import { getAboutPageSchema } from "@/lib/schemas";
import AboutClient from "./AboutClient";

export const metadata = {
  title: "About Us",
  description:
    "Meet the passionate team behind Trains of Rajbari. Learn about our mission to connect the railway community of Rajbari district.",
  keywords: [
    "Trains of Rajbari team",
    "About Trains of Rajbari",
    "Rajbari railway community",
    "railway enthusiasts Bangladesh",
  ],
  openGraph: {
    title: "About Us | Trains of Rajbari",
    description:
      "Meet the passionate team behind Trains of Rajbari community.",
    url: "https://trainsofrajbari.com/about",
    images: [{ url: "/logo.png" }],
  },
  alternates: {
    canonical: "https://trainsofrajbari.com/about",
  },
};

export default function AboutPage() {
  const allMembers = [
    teamMembers.founder,
    ...teamMembers.admins,
    ...teamMembers.moderators,
  ];

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify(getAboutPageSchema(allMembers)),
        }}
      />
      <AboutClient />
    </>
  );
}
