import type { Metadata } from "next";
import Link from "next/link";
import { PageFrame } from "../components/site-shell";
import { products } from "../products/product-data";
import { services } from "../services/service-data";
import { breadcrumbSchema, createMetadata, JsonLd, webPageSchema } from "../lib/seo";

const description = "Browse every public page in the NIOSUS website, including company, services, products, projects and legal information.";
export const metadata: Metadata = createMetadata({ title: "HTML Site Map | NIOSUS", description, path: "/site-map" });

const core = [["Home","/"],["About NIOSUS","/about"],["Solutions","/solutions"],["Projects","/projects"],["Connected Operations case study","/projects/connected-operations"],["Visual portfolio","/portfolio"],["Artificial intelligence","/ai"],["Contact","/contact"],["Careers","/careers"]];
const legal = [["Privacy policy","/privacy-policy"],["Terms of use","/terms-of-use"]];

export default function SiteMapPage() {
  return <PageFrame><JsonLd data={[webPageSchema("/site-map","HTML Site Map | NIOSUS",description),breadcrumbSchema([["Home","/"],["Site map","/site-map"]])]}/><article className="legal-page" id="page-content"><div className="container legal-grid"><aside><span className="eyebrow">Navigation / Site map</span><h1>Find your way through NIOSUS.</h1><p>Every public route, grouped by purpose.</p></aside><div className="legal-copy">
    <section><h2>Company and work</h2>{core.map(([name,path])=><p key={path}><Link href={path}>{name}</Link></p>)}</section>
    <section><h2>Services</h2><p><Link href="/services">All services</Link></p>{services.map(service=><p key={service.slug}><Link href={`/services/${service.slug}`}>{service.name}</Link></p>)}</section>
    <section><h2>Products</h2><p><Link href="/products">Product ecosystem</Link></p>{products.map(product=><p key={product.slug}><Link href={`/products/${product.slug}`}>{product.name} — {product.status}</Link></p>)}</section>
    <section><h2>Legal</h2>{legal.map(([name,path])=><p key={path}><Link href={path}>{name}</Link></p>)}</section>
  </div></div></article></PageFrame>;
}
