import type { Metadata } from "next";
import { PresidentialPoll } from "@/components/PresidentialPoll";
import { SiteFooter } from "@/components/SiteFooter";
import { creditTicker } from "@/lib/credits-brand";
import { appTitle } from "@/lib/public-env";

const TITLE = appTitle();
const T = creditTicker();

export const metadata: Metadata = {
  title: `Supporter straw poll — ${TITLE}`,
  description: `${TITLE} optional write-in engagement poll—aggregate tallies and ${T}-priced ballots. Not an official election; supporter engagement only.`,
};

export default function NextPresidentVotePage() {
  return (
    <main className="min-h-[70vh] border-b border-white/10 bg-gradient-to-b from-[#030712] via-[#061022] to-[#020617]">
      <PresidentialPoll />
      <SiteFooter />
    </main>
  );
}
