Pages
Coming soon page
The site's coming soon page, built from library items: the page head with two buttons, the sources coming next as cards (a Black cover with the source's mark over clearing ASCII glyphs, the name, a line and the APIs it feeds as chips), the side drifts from 1440, the smaller cards also on the list, the closing section and the footer.
Install
React apps get the React files; every other stack gets the web component.
npx spyglass-ds add coming-soon-page<script type="module" src="/spyglass-ds/elements/coming-soon-page.js"></script>More of the social internet, soon
Ads, posts and short videos are live today. Each source here comes to every plan as it lands, the free one too.
Long-form video
The videos and shorts brands and creators post, and how they perform.
Comes toSearch ads
The ads a brand runs on search, and the pages they lead to.
Work network ads
The ads a company runs to professionals, and where they send people.
Microblogs
Creators on short posts, found by where they are and how many follow them.
Comes to
Also on the list
- Text threadsOrganic posts
- Disappearing storiesOrganic posts
- Open networksOrganic posts
- ForumsOrganic posts
Give your agents the social internet
500 free credits every month. No card required.
Usage
What a product adds next: sources, integrations or features that are planned, each with what it will feed. Edit lib/pages/coming-soon.ts or pass content.
Never
- Dates you cannot keep: say soon, not a day
- Other companies' marks without their permission: pass your own through
mark - Colored marks: they take the faint gray
A source is { name, line, apis: [{ name, href }], mark? }; mark is an image URL (an SVG works best), shown through a mask in the faint gray. Without one, a neutral rounded square stands in. sections lists the sections to show, in order (head, next, also, close); a key left out is not shown. menus passes the header menus (the live card's picture, the use cases' shots).
Adds with it: ascii-trail, creative-card, page-close, page-head, pricing-table, side-drifts, site-footer, site-header
Props
The web component takes the same as attributes or properties (<spyglass-coming-soon-page>); title is heading there.
<ComingSoonPage>
| Prop | Type | Default |
|---|---|---|
content | ComingSoonContent | |
menus | HeaderMenus The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. | |
sections | readonly ComingSoonSection[] The sections to show, in order; all of them in the page order by default (leave one out to omit it). | |
className | string |
Examples
The same example in React and as web components; both render identically.
import { ComingSoonPage } from '@/react/components/pages/ComingSoonPage'
// The coming soon page with its own copy: the sources named by kind, neutral marks.
export default function Page() {
return <ComingSoonPage />
}<!-- The coming soon page with its own copy: the sources named by kind, neutral marks. -->
<spyglass-coming-soon-page></spyglass-coming-soon-page>Source
import { type CSSProperties, Fragment, type ReactNode } from 'react'
import { PageClose } from '@/react/components/site/PageClose'
import { PageHead } from '@/react/components/site/PageHead'
import { SiteHeader } from '@/react/components/site/SiteHeader'
import { AsciiTrail } from '@/react/components/visuals/AsciiTrail'
import { SiteFooter } from '@/react/components/blocks/SiteFooter'
import { SideDrifts } from '@/react/components/visuals/SideDrifts'
import { comingSoonContent, type ComingSoonContent, comingSoonSections, type ComingSoonSection } from '@/lib/pages/coming-soon'
import { ASCII_TEXTURE_ALPHA } from '@/lib/plan-lights'
import { cn } from '@/react/lib/cn'
import { pageSections } from '@/lib/image'
import type { HeaderMenus } from '@/lib/site-header'
// The site's coming soon page (app/products/coming-soon, pages/ComingSoon): the page head with a White and a quiet
// button, then the sources coming next as #262626 cards, 8px in (two side by side from 768; from 1024 two wide over
// three, the last of an odd row across): a Black cover with the source's mark in the faint gray over ASCII glyphs that
// clear in the middle (each card at its own spot of the tile), the name in Funnel Display 24/28, a line in #D4D4D4 and
// "Comes to" over the APIs it feeds as small #363636 chips; the side drifts from 1440. Then "Also on the list": small
// cards, four across from 768. The closing section and the footer. Marks come through `mark` (an image URL, tinted);
// without one a neutral rounded square stands in. Nothing moves; a chip's text turns White under the pointer.
export interface ComingSoonPageProps {
content?: ComingSoonContent
/** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
menus?: HeaderMenus
/** The sections to show, in order; all of them in the page order by default (leave one out to omit it). */
sections?: readonly ComingSoonSection[]
className?: string
}
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'
const AT = ['0 0', 'var(--ds-coming-ascii-at-2)', 'var(--ds-coming-ascii-at-3)', 'var(--ds-coming-ascii-at-4)', 'var(--ds-coming-ascii-at-5)']
function Mark({ src, className }: { src?: string, className: string }) {
return src
? <span aria-hidden="true" className={cn('block bg-current', className)} style={{ maskImage: `url("${src}")`, maskSize: 'contain', maskRepeat: 'no-repeat', maskPosition: 'center' }} />
: <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" className={className}><rect x="3" y="3" width="18" height="18" rx="5" stroke="currentColor" strokeWidth="1.5" /></svg>
}
export function ComingSoonPage({ content: c = comingSoonContent, menus, sections, className }: ComingSoonPageProps) {
const odd = c.next.length % 2 === 1
const parts: Record<ComingSoonSection, ReactNode> = {
head: <PageHead id="coming-soon" lines={c.head.lines} lead={c.head.lead} primary={c.head.primary} secondary={c.head.secondary} />,
next: (
<section aria-label={c.nextLabel} className="relative isolate pb-16 md:pb-20">
<SideDrifts />
<div className={WRAP}>
<ul role="list" className="m-0 grid list-none grid-cols-1 gap-4 p-0 md:grid-cols-2 lg:grid-cols-6">
{c.next.map((s, i) => {
const last = odd && i === c.next.length - 1
return (
<li key={s.name} className={cn('flex flex-col rounded-panel bg-surface-raised p-2', i < 2 ? 'lg:col-span-3' : 'lg:col-span-2', last && 'md:max-lg:col-span-full')}>
<div className={cn('ds-coming-cover relative isolate grid h-32 place-items-center overflow-hidden rounded-ds-sm bg-surface md:h-40', i < 2 && 'lg:h-60')} style={{ '--at': AT[i % AT.length] } as CSSProperties}>
<Mark src={s.mark} className="size-12 text-fg-faint" />
</div>
<div className="flex flex-1 flex-col gap-2 p-4">
<h2 className="m-0 type-heading-3">{s.name}</h2>
<p className="m-0 max-w-(--ds-layout-measure) type-body text-pretty text-fg-soft">{s.line}</p>
{s.apis.length ? (
<div className="mt-auto flex flex-col items-start gap-2 pt-4">
<span className="type-ui text-fg-muted">{c.feedsLabel}</span>
<ul role="list" className="m-0 flex list-none flex-wrap gap-2 p-0">
{s.apis.map((a) => <li key={a.href}><a href={a.href} className="block rounded-ds-sm bg-surface-inset px-2 py-1 type-ui text-fg-soft transition-[color] duration-160 ease-out hover:text-fg focus-visible:outline-offset-2">{a.name}</a></li>)}
</ul>
</div>
) : null}
</div>
</li>
)
})}
</ul>
</div>
</section>
),
also: (
<section aria-labelledby="also-heading" className="pb-(--ds-layout-section)">
<div className={WRAP}>
<h2 id="also-heading" className="m-0 mb-6 type-heading-4 md:type-heading-3">{c.also.title}</h2>
<ul role="list" className="m-0 grid list-none grid-cols-2 gap-4 p-0 md:grid-cols-4">
{c.also.sources.map((s) => (
<li key={s.name} className="flex min-w-0 items-center gap-3 rounded-panel bg-surface-raised p-4">
<Mark src={s.mark} className="size-6 flex-none text-fg-faint" />
<span className="flex min-w-0 flex-col">
<span className="type-body">{s.name}</span>
<span className="type-ui text-fg-muted">{c.also.note}</span>
</span>
</li>
))}
</ul>
</div>
</section>
),
close: <PageClose lines={c.close.lines} note={c.close.note} primary={c.close.primary} />,
}
return (
<div data-ds="coming-soon-page" className={cn('isolate bg-surface text-fg', className)} style={{ '--ascii-alpha': `url("${ASCII_TEXTURE_ALPHA}")` } as CSSProperties}>
<style href="ds-coming-soon-page" precedence="ds">{css}</style>
<AsciiTrail mode="page" />
<SiteHeader menus={menus} links={c.header.nav} secondary={c.header.secondary} cta={c.header.cta} />
<main id="main">
{pageSections(comingSoonSections, sections).map((k) => <Fragment key={k}>{parts[k]}</Fragment>)}
</main>
<SiteFooter columns={c.footer.columns} legal={c.footer.legal} />
</div>
)
}
export default ComingSoonPage
// A cover's glyphs: White through the ASCII tile's alpha at the card's spot, at the texture's quiet strength, with the
// page's Black clearing the middle around the mark.
const css = `
.ds-coming-cover::before, .ds-coming-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-coming-cover::before {
background: var(--ds-color-white); opacity: var(--ds-feature-ascii-opacity); mix-blend-mode: screen;
mask-image: var(--ascii-alpha); mask-position: var(--at, 0 0); mask-size: var(--ds-feature-ascii-tile) var(--ds-feature-ascii-tile); mask-repeat: repeat;
}
.ds-coming-cover::after { background: radial-gradient(ellipse var(--ds-feature-ascii-clear-w) var(--ds-feature-ascii-clear-h) at 50% 50%, var(--ds-color-surface) 40%, transparent 100%); }
`// The coming soon page's copy, from the site's content/pages/coming-soon.ts: the head, the sources coming next with the
// APIs each feeds, and the ones also on the list. The site names other companies' platforms and shows their marks;
// here the sources are named by kind and each `mark` is left to you (an image URL, tinted to the page's faint gray).
// Both flavors read this file.
export interface ComingApi { name: string, href: string }
export interface ComingSource { name: string, line: string, apis: ComingApi[], mark?: string }
export interface ComingAlso { name: string, mark?: string }
const api = (name: string, slug: string): ComingApi => ({ name, href: `/products/${slug}` })
const nav = [
{ label: 'Products', href: '/products' },
{ label: 'Use cases', href: '/use-cases' },
{ label: 'Enterprise', href: '/enterprise' },
{ label: 'Resources', href: '/resources' },
{ label: 'Pricing', href: '/pricing' },
]
export const comingSoonContent = {
header: { nav, secondary: { label: 'Sign in', href: '/sign-in' }, cta: { label: 'Get a free API key', href: '/sign-up', short: 'Get API key' } },
head: {
lines: ['More of the social internet,', 'soon'],
lead: 'Ads, posts and short videos are live today. Each source here comes to every plan as it lands, the free one too.',
primary: { label: 'Get a free API key', href: '/sign-up' },
secondary: { label: 'Tell us what to add next', href: '/contact' },
},
nextLabel: 'Next on Acme',
feedsLabel: 'Comes to',
next: <{ name: string, line: string, apis: { name: string, href: string }[], mark?: string }[]>[
{ name: 'Long-form video', line: 'The videos and shorts brands and creators post, and how they perform.', apis: [api('Brands API', 'brands'), api('Creators API', 'creators'), api('Media API', 'media')] },
{ name: 'Search ads', line: 'The ads a brand runs on search, and the pages they lead to.', apis: [api('Brands API', 'brands'), api('Media API', 'media'), api('Landing Pages API', 'landing-pages')] },
{ name: 'Work network ads', line: 'The ads a company runs to professionals, and where they send people.', apis: [api('Brands API', 'brands'), api('Media API', 'media'), api('Landing Pages API', 'landing-pages')] },
{ name: 'Image boards', line: 'The pins and ads a brand puts out, found by what is in them.', apis: [api('Brands API', 'brands'), api('Media API', 'media')] },
{ name: 'Microblogs', line: 'Creators on short posts, found by where they are and how many follow them.', apis: [api('Creators API', 'creators')] },
],
also: {
title: 'Also on the list',
note: 'Organic posts',
sources: <{ name: string, mark?: string }[]>[{ name: 'Text threads' }, { name: 'Disappearing stories' }, { name: 'Open networks' }, { name: 'Forums' }],
},
close: { lines: ['Give your agents', 'the social internet'], note: '500 free credits every month. No card required.', primary: { label: 'Get a free API key', href: '/sign-up' } },
footer: {
legal: '© 2026 Acme Inc.',
columns: [
{ title: 'Products', wide: true, links: [{ label: 'Brands and creators', href: '/products/brands' }, { label: 'Media archive', href: '/products/media' }, { label: 'Collaborations', href: '/products/collabs' }, { label: 'Coming soon', href: '/products/coming-soon' }] },
{ title: 'Use cases', wide: true, links: [{ label: 'Paid ads', href: '/use-cases/paid' }, { label: 'Organic social', href: '/use-cases/organic' }, { label: 'Creator sourcing', href: '/use-cases/creators' }] },
{ title: 'Resources', links: [{ label: 'Templates', href: '/templates' }, { label: 'Docs', href: '/docs' }, { label: 'Blog', href: '/blog' }] },
{ title: 'Company', links: [{ label: 'Enterprise', href: '/enterprise' }, { label: 'Talk to us', href: '/contact' }, { label: 'Sign in', href: '/sign-in' }] },
{ title: 'Legal', links: [{ label: 'Terms', href: '/terms' }, { label: 'Privacy', href: '/privacy' }] },
],
},
}
export type ComingSoonContent = typeof comingSoonContent
/** The coming soon page's sections in order; pass `sections` to reorder them or leave some out. */
export const comingSoonSections = ['head', 'next', 'also', 'close'] as const
export type ComingSoonSection = (typeof comingSoonSections)[number]// Joins class names, skipping falsy ones: cn('a', on && 'b', ['c', undefined]). It does not merge conflicting
// utilities (no tailwind-merge), as Vue's class binding does not: the library's classes are written not to compete,
// and a className from the caller is appended after them, as Vue appends a fallthrough class.
export type ClassValue = string | false | null | undefined | 0 | ClassValue[]
export function cn(...values: ClassValue[]): string {
const out: string[] = []
for (const v of values) {
if (!v) continue
if (Array.isArray(v)) {
const s = cn(...v)
if (s) out.push(s)
}
else out.push(v)
}
return out.join(' ')
}import { html } from 'lit'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import { comingSoonContent, type ComingSoonContent, comingSoonSections, type ComingSoonSection } from '@/lib/pages/coming-soon'
import { ASCII_TEXTURE_ALPHA } from '@/lib/plan-lights'
import '@/elements/components/site/site-header'
import '@/elements/components/visuals/ascii-trail'
import '@/elements/components/site/page-head'
import '@/elements/components/site/page-close'
import '@/elements/components/blocks/site-footer'
import '@/elements/components/visuals/side-drifts'
import styles from 'virtual:tw'
import { pageSections } from '@/lib/image'
import { headerMenus, type HeaderMenus } from '@/lib/site-header'
// ComingSoonPage.tsx as <spyglass-coming-soon-page>: the site's coming soon page: the page head with two buttons, the
// sources coming next as cards (a cover with the mark over clearing glyphs, the name, a line and the APIs it feeds),
// "Also on the list", the closing section and the footer. `content` replaces the copy (lib/pages/coming-soon.ts); a
// source's `mark` is an image URL, tinted to the faint gray.
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'
const AT = ['0 0', 'var(--ds-coming-ascii-at-2)', 'var(--ds-coming-ascii-at-3)', 'var(--ds-coming-ascii-at-4)', 'var(--ds-coming-ascii-at-5)']
const mark = (src: string | undefined, cls: string) => (src
? html`<span aria-hidden="true" class=${`block bg-current ${cls}`} style=${`mask-image: url("${src}"); mask-size: contain; mask-repeat: no-repeat; mask-position: center`}></span>`
: html`<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" class=${cls}><rect x="3" y="3" width="18" height="18" rx="5" stroke="currentColor" stroke-width="1.5"></rect></svg>`)
/**
* @summary The coming soon page template.
*/
export class ComingSoonPage extends DsElement {
static styles = [DsElement.styles, styles]
protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="coming-soon-page"]'))
static properties = { content: { type: Object }, menus: { type: Object }, sections: { type: Array } }
/** The page's copy (lib/pages/coming-soon.ts by default). */
content: ComingSoonContent = comingSoonContent
/** The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. */
menus?: HeaderMenus
/** The sections to show, in order (a list of names); all of them in the page order by default. */
sections?: ComingSoonSection[]
render() {
const c = this.content ?? comingSoonContent
const odd = c.next.length % 2 === 1
const parts: Record<ComingSoonSection, unknown> = {
head: html`<spyglass-page-head head-id="coming-soon" .lines=${c.head.lines} lead=${c.head.lead} .primary=${c.head.primary} .secondary=${c.head.secondary}></spyglass-page-head>`,
next: html`<section aria-label=${c.nextLabel} class="relative isolate pb-16 md:pb-20"><spyglass-side-drifts></spyglass-side-drifts><div class=${WRAP}><ul role="list" class="m-0 grid list-none grid-cols-1 gap-4 p-0 md:grid-cols-2 lg:grid-cols-6">${c.next.map((s, i) => {
const last = odd && i === c.next.length - 1
return html`<li class=${`flex flex-col rounded-panel bg-surface-raised p-2 ${i < 2 ? 'lg:col-span-3' : 'lg:col-span-2'} ${last ? 'md:max-lg:col-span-full' : ''}`}><div class=${`ds-coming-cover relative isolate grid h-32 place-items-center overflow-hidden rounded-ds-sm bg-surface md:h-40 ${i < 2 ? 'lg:h-60' : ''}`} style=${`--at: ${AT[i % AT.length]}`}>${mark(s.mark, 'size-12 text-fg-faint')}</div><div class="flex flex-1 flex-col gap-2 p-4"><h2 class="m-0 type-heading-3">${s.name}</h2><p class="m-0 max-w-(--ds-layout-measure) type-body text-pretty text-fg-soft">${s.line}</p>${s.apis.length ? html`<div class="mt-auto flex flex-col items-start gap-2 pt-4"><span class="type-ui text-fg-muted">${c.feedsLabel}</span><ul role="list" class="m-0 flex list-none flex-wrap gap-2 p-0">${s.apis.map((a) => html`<li><a href=${a.href} class="block rounded-ds-sm bg-surface-inset px-2 py-1 type-ui text-fg-soft transition-[color] duration-160 ease-out hover:text-fg focus-visible:outline-offset-2">${a.name}</a></li>`)}</ul></div>` : ''}</div></li>`
})}</ul></div></section>`,
also: html`<section aria-labelledby="also-heading" class="pb-(--ds-layout-section)"><div class=${WRAP}><h2 id="also-heading" class="m-0 mb-6 type-heading-4 md:type-heading-3">${c.also.title}</h2><ul role="list" class="m-0 grid list-none grid-cols-2 gap-4 p-0 md:grid-cols-4">${c.also.sources.map((s) => html`<li class="flex min-w-0 items-center gap-3 rounded-panel bg-surface-raised p-4">${mark(s.mark, 'size-6 flex-none text-fg-faint')}<span class="flex min-w-0 flex-col"><span class="type-body">${s.name}</span><span class="type-ui text-fg-muted">${c.also.note}</span></span></li>`)}</ul></div></section>`,
close: html`<spyglass-page-close .lines=${c.close.lines} note=${c.close.note} .primary=${c.close.primary}></spyglass-page-close>`,
}
return html`<div data-ds="coming-soon-page" class="isolate bg-surface text-fg" style=${`--ascii-alpha: url("${ASCII_TEXTURE_ALPHA}")`}><spyglass-ascii-trail mode="page"></spyglass-ascii-trail><spyglass-site-header .menus=${this.menus ?? headerMenus} .links=${c.header.nav} .secondary=${c.header.secondary} .cta=${c.header.cta}></spyglass-site-header><main id="main">${pageSections(comingSoonSections, this.sections).map((k) => parts[k])}</main><spyglass-site-footer .columns=${c.footer.columns} legal=${c.footer.legal}></spyglass-site-footer></div>`
}
}
define('coming-soon-page', ComingSoonPage).ds-coming-cover::before, .ds-coming-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-coming-cover::before {
background: var(--ds-color-white); opacity: var(--ds-feature-ascii-opacity); mix-blend-mode: screen;
mask-image: var(--ascii-alpha); mask-position: var(--at, 0 0); mask-size: var(--ds-feature-ascii-tile) var(--ds-feature-ascii-tile); mask-repeat: repeat;
}
.ds-coming-cover::after { background: radial-gradient(ellipse var(--ds-feature-ascii-clear-w) var(--ds-feature-ascii-clear-h) at 50% 50%, var(--ds-color-surface) 40%, transparent 100%); }Reference: Site app/products/coming-soon and pages/ComingSoon (ComingSoon.tsx, ComingSoon.module.css): cards on --surface, 8px in, covers 128, 160 from 768 and 240 for the first two from 1024 with the alpha texture at each card's --ascii-at and the radial clear, names h5 24/28, chips on --surface-inset; the also row four across from 768; PageHead, SideDrifts, PageClose; the platforms and their marks left out (named by kind here).