import type { Metadata } from "next";
import { ProjectForm } from "@/components/admin/ProjectForm";

export const metadata: Metadata = {
  title: "New project",
  robots: { index: false, follow: false },
};

export default function NewProjectPage() {
  return (
    <div className="space-y-8">
      <header>
        <p className="text-sm font-semibold uppercase tracking-[0.14em] text-coral">
          Content
        </p>
        <h1 className="display-2 mt-2">New project</h1>
        <p className="mt-2 text-ink-soft">
          Add a case study — it appears in the portfolio grid once published.
        </p>
      </header>

      <ProjectForm
        initial={{
          id: "",
          slug: "",
          title: "",
          category: "Residential",
          location: "",
          year: String(new Date().getFullYear()),
          size: "",
          summary: "",
          story: "",
          scope: "",
          materials: "",
          rooms: "",
          palette: "",
          testimonialQuote: "",
          testimonialAuthor: "",
          image: "",
          published: true,
        }}
        mode="new"
      />
    </div>
  );
}
