/** * Coming soon (WEBSITE-1.0-PLAN §5): until the first publish, the church's details from its * profile (logo, service times, address, contact, social), links to its Events and App, and a line * the admin can change. `noindex`, a real HTTP 200. */ import Link from "next/link"; import { dayName } from "./parts"; import type { ComingSoon as Content } from "./types"; export function ComingSoon({ c, signedInAdmin }: { c: Content; signedInAdmin: boolean }) { const church = c.church; const a = church?.contact.address; const links = church ? ([["Events", church.links.events], ["App", church.links.app]] as const).filter(([, u]) => u) : []; return (
{signedInAdmin && (

Your site isn't published yet. Preview it or publish it.

)} {church?.branding.logoUrl ? {church.name} : church &&

{church.name}

}

{church ? `${church.name}: coming soon` : "Coming soon"}

{c.comingSoonText}

{church && (
{church.serviceTimes.length > 0 && (

Service times

    {church.serviceTimes.map((s, i) =>
  • {dayName(s.day)} {s.time}{s.label && · {s.label}}
  • )}
)}

Find us

{a &&
{[a.line1, a.line2, a.suburb, a.city].filter(Boolean).join(", ")}
}
)} {links.length > 0 && (
{links.map(([label, url]) => Our {label})}
)}
); }