Pages

Use case page

A use case's page as the site sets it: the hero with the connect menu and the chat answering beside it, the proof line over the marks, the scroll story, three stories, the wheel of audiences with the light around its ring, the FAQ, the closing section and the footer.

Install

React apps get the React files; every other stack gets the web component.

npx spyglass-ds add use-case-page
<script type="module" src="/spyglass-ds/elements/use-case-page.js"></script>
Use case page

Creative research

The hooks, angles and formats that win for any brand, worked out before you ask.

For creative strategists, designers and performance teams.

Spyglass MCPConnected

What hooks has Acme leaned on in its Meta ads in the last 30 days?

Worked for 5s

getBrandMediaInsightsbrandId: "acme", type: "HOOK"

Acme’s Meta ads from Oct 17 to Nov 16 leaned on a handful of repeatable hooks:

HookAds
Mornings without the rushA full breakfast in about a minute.71
Healthy eating takes effortSkip the meal prep, keep the nutrition.64
Better value than the usual“My breakfast costs less than your coffee.”47
Try before committingA sampler box takes the risk out of a flavor.33

An example question and answer. The figures are illustrative.

Trusted by teams and agents at

  • Acme
  • Acme Labs
  • Acme Studio
  • Acme Goods
  • Acme Air
  • Acme & Co

How a creative team reads hooks across a category

A whole category’s ads

Pick a category and get every Meta ad from its 16 daily nutrition brands at once.

Grouped by hook

Ads gather under the hook they open with. The hook most brands use rises to the top.

Take one hook apart

It opens on a question. 16 brands make the same move, and Acme has kept its version live 63 days.

Same hook, other brands

Search the hook in plain words and see it in other brands’ ads and posts, each in its own style.

Watch a hook rise or fade

A daily trend tracker shows which hooks gain brands, and which brands drop them.

Get a free API keySee templates
  1. A whole category’s ads

    Pick a category and get every Meta ad from its 16 daily nutrition brands at once.

  2. Grouped by hook

    Ads gather under the hook they open with. The hook most brands use rises to the top.

  3. Take one hook apart

    It opens on a question. 16 brands make the same move, and Acme has kept its version live 63 days.

  4. Same hook, other brands

    Search the hook in plain words and see it in other brands’ ads and posts, each in its own style.

  5. Watch a hook rise or fade

    A daily trend tracker shows which hooks gain brands, and which brands drop them.

    Get a free API keySee templates

Creative research, in their words

A customer officer, a founder and a GM on researching creative.

  • Acme Labs

    “The first platform to really crack creative research. Not incrementally better, ten times better. We listen, ship and iterate.”

    SamChief customer officer, Acme Labs
  • Acme Studio

    “Sharp, intuitive and built by a team that ships fixes the same day. The easiest recommendation I can make for any creative research.”

    JoFounder, Acme Studio
  • Acme Air

    “The only creative tool that shows me what our audience actually sees. Finding trends and new audiences has never been easier.”

    AriGeneral manager, Acme Air

Built for every marketing team

  • The ads that are winning in any category, and why.
  • Which hooks, angles and formats are winning.
  • The posts that move an audience, across every platform.
  • Everything a brand does, in one place.
  • The creators a brand works with, and the ones it should.
  • Every client's ads, posts and creators, one API.

Frequently asked questions

Every filter and limit is in the docs.

Read the docs

Creative strategists, designers and performance teams who need to know which hooks, angles and formats work before they brief the next round.

Give your agents the social internet

500 free credits every month. No card required.

Usage

One page per use case, solution or audience. content replaces the copy (lib/pages/use-case.ts); visual="build" swaps the chat for the library visual (the site's build your own page).

Never

  • Real customers, quotes or photos in the stories: pass your own with permission, or keep Acme's
  • Another brand's creative in the hero, the story or the wheel: pass your own images
  • A second White button beside the connect menu

Every section is a library item: use-case-hero, proof-block, scroll-story, stories-block, use-case-wheel with dispersion-field, faq-block and page-close. still holds the wheel and its light for a still preview. sections lists the sections to show, in order (hero, proof, story, stories, wheel, faq, close); a key left out is not shown. chat and build carry the hero's pictures, blocks.story.story the scroll story's data in place of its preset and blocks.wheel.items the wheel's pictures. menus passes the header menus (the live card's picture, the use cases' shots).

Adds with it: ascii-trail, connect-menu, creative-card, dispersion-field, faq-block, page-close, proof-block, resources-page, scroll-story, site-footer, site-header, stories-block, use-case-hero, use-case-wheel

Props

The web component takes the same as attributes or properties (<spyglass-use-case-page>); title is heading there.

<UseCasePage>

PropTypeDefault
contentUseCaseContent
visual'chat' | 'build''chat'
chatChatContent
buildBuildContent
stillboolean

Hold the wheel and its light still.

false
blocksUseCaseBlocks

Each block's data, pictures included: the story's `story` and the wheel's `items`.

{}
menusHeaderMenus

The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default.

sectionsreadonly UseCaseSection[]

The sections to show, in order; all of them in the page order by default (leave one out to omit it).

classNamestring

Examples

The same example in React and as web components; both render identically.

react/examples/use-case-page/Page.tsx
import { UseCasePage } from '@/react/components/pages/UseCasePage'
// The creative research page as the site sets it, with Acme's stories and placeholder creatives; the wheel and its light held still.

export default function Page() {
  return <UseCasePage still />
}
elements/examples/use-case-page/Page.html
<!-- The creative research page as the site sets it, with Acme's stories and placeholder creatives; the wheel and its light held still. -->
<spyglass-use-case-page still></spyglass-use-case-page>

Source

react/components/pages/UseCasePage.tsx
'use client'

import { SiteHeader } from '@/react/components/site/SiteHeader'
import { AsciiTrail } from '@/react/components/visuals/AsciiTrail'
import { UseCaseHero } from '@/react/components/site/UseCaseHero'
import { ConnectMenu } from '@/react/components/site/ConnectMenu'
import { ProofBlock } from '@/react/components/site/ProofBlock'
import { ScrollStory } from '@/react/components/blocks/ScrollStory'
import { StoriesBlock } from '@/react/components/blocks/StoriesBlock'
import { UseCaseWheel } from '@/react/components/blocks/UseCaseWheel'
import { FaqBlock } from '@/react/components/blocks/FaqBlock'
import { PageClose } from '@/react/components/site/PageClose'
import { SiteFooter } from '@/react/components/blocks/SiteFooter'
import { DispersionField } from '@/react/components/visuals/DispersionField'
import type { ChatContent, BuildContent } from '@/lib/use-case-hero'
import { useCaseContent, type UseCaseContent, useCaseSections, type UseCaseSection, type UseCaseBlocks } from '@/lib/pages/use-case'
import { cn } from '@/react/lib/cn'
import { pageSections } from '@/lib/image'
import { Fragment, type ReactNode } from 'react'
import type { HeaderMenus } from '@/lib/site-header'

// A use case's page as the site sets it (app/use-cases/[slug], pages/UseCasesPage/UseCaseDetail): the header, the
// hero (the name, the line, the connect menu with a quiet button and the chat answering beside them, or the build
// visual), the proof line over the marquee of marks, the scroll story with its two buttons, the stories in three cards
// (Acme's, with initials), the wheel of audiences with the light around its ring, the FAQ with the docs button, the
// closing section and the footer. `content` replaces the copy (lib/pages/use-case.ts); `visual`, `chat` and `build` go
// to the hero; `still` holds the wheel and its light (for a still preview).
export interface UseCasePageProps {
  content?: UseCaseContent
  visual?: 'chat' | 'build'
  chat?: ChatContent
  build?: BuildContent
  /** Hold the wheel and its light still. */
  still?: boolean
  /** Each block's data, pictures included: the story's `story` and the wheel's `items`. */
  blocks?: UseCaseBlocks
  /** 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 UseCaseSection[]
  className?: string
}

const CONTAINER = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

export function UseCasePage({ content: c = useCaseContent, visual = 'chat', chat, build, still = false, blocks = {}, menus, sections, className }: UseCasePageProps) {
  const parts: Record<UseCaseSection, ReactNode> = {
    hero: <UseCaseHero content={c.hero} visual={visual} chat={chat} build={build} control={c.control === 'mcp' ? <ConnectMenu /> : undefined} />,
    proof: <ProofBlock id={`${c.slug}-proof`} title={c.proof} />,
    story: <ScrollStory story={blocks.story?.story} preset={c.story.preset} actions={c.story.actions} />,
    stories: <StoriesBlock id={`${c.slug}-stories`} headline={c.stories.headline} lead={c.stories.lead} stories={c.stories.items} customers={false} />,
    wheel: <UseCaseWheel id="v2-use-cases" items={blocks.wheel?.items} autoplay={!still} light={(ripple) => <DispersionField composition="ring" seed={5} ripple={ripple} still={still} className="relative size-full" />} />,
    faq: (
      <div className={cn(CONTAINER, 'py-(--ds-layout-section)')}>
        <FaqBlock id={`${c.slug}-faq`} title={c.faq.headline} body={c.faq.lead} action={c.faq.docs} items={c.faq.items} />
      </div>
    ),
    close: <PageClose />,
  }
  return (
    <div data-ds="use-case-page" className={cn('isolate bg-surface text-fg', className)}>
      <AsciiTrail mode="page" />
      <SiteHeader menus={menus} links={c.chrome.header.nav} secondary={c.chrome.header.secondary} cta={c.chrome.header.cta} />
      <main id="main">
        {pageSections(useCaseSections, sections).map((k) => <Fragment key={k}>{parts[k]}</Fragment>)}
      </main>
      <SiteFooter columns={c.chrome.footer.columns} legal={c.chrome.footer.legal} />
    </div>
  )
}

export default UseCasePage
lib/pages/use-case.ts
// A use case page's copy (site app/use-cases/[slug], pages/UseCasesPage/UseCaseDetail, content/pages/use-cases.ts,
// useCasePages and useCaseStories), here creative research with Acme's stories: the hero, the proof line, the scroll
// story and its buttons, the stories head, the FAQ and the docs button. Both flavors read this file; the header,
// footer and close come from lib/pages/site-chrome.ts.
import { useCaseHeroContent, type UseCaseHeroContent } from '@/lib/use-case-hero'
import type { Story } from '@/lib/stories'
import type { StoryAction } from '@/lib/scroll-story'
import type { ScrollStoryPreset } from '@/lib/pages/scroll-stories'
import { siteChrome, type SiteChrome } from '@/lib/pages/site-chrome'
import type { ScrollStoryData } from '@/lib/scroll-story'
import type { WheelItem } from '@/lib/use-case-wheel'

export interface UseCaseFaqItem {
	q: string
	a: string
}

export interface UseCaseContent {
	/** The page's slug: the stem of every section's id. */
	slug: string
	hero: UseCaseHeroContent
	/** The White button's place: the connect menu (`mcp`) or the hero's own White button (`buttons`). */
	control: 'mcp' | 'buttons'
	proof: string
	story: { preset: ScrollStoryPreset; actions: StoryAction[] }
	stories: { headline: string; lead: string; items: Story[] }
	faq: { headline: string; lead: string; docs: { label: string; href: string }; items: UseCaseFaqItem[] }
	chrome: SiteChrome
}

export const useCaseContent: UseCaseContent = {
	slug: 'creative-research',
	hero: { ...useCaseHeroContent, primary: { label: 'Connect to MCP', href: '/docs/mcp' }, secondary: { label: 'Get a free API key', href: '/sign-up' } },
	control: 'mcp',
	proof: 'Trusted by teams and agents at',
	story: {
		preset: 'research',
		actions: [
			{ label: 'Get a free API key', href: '/sign-up' },
			{ label: 'See templates', href: '/templates' },
		],
	},
	stories: {
		headline: 'Creative research, in their words',
		lead: 'A customer officer, a founder and a GM on researching creative.',
		items: [
			{ company: 'Acme Labs', quote: 'The first platform to really crack creative research. Not incrementally better, ten times better. We listen, ship and iterate.', name: 'Sam', role: 'Chief customer officer' },
			{ company: 'Acme Studio', quote: 'Sharp, intuitive and built by a team that ships fixes the same day. The easiest recommendation I can make for any creative research.', name: 'Jo', role: 'Founder' },
			{ company: 'Acme Air', quote: 'The only creative tool that shows me what our audience actually sees. Finding trends and new audiences has never been easier.', name: 'Ari', role: 'General manager' },
		],
	},
	faq: {
		headline: 'Frequently asked questions',
		lead: 'Every filter and limit is in the docs.',
		docs: { label: 'Read the docs', href: '/docs' },
		items: [
			{ q: 'Who is it for?', a: 'Creative strategists, designers and performance teams who need to know which hooks, angles and formats work before they brief the next round.' },
			{ q: 'What does it read in a creative?', a: 'The hook, the angle, who it is made for, its format and its funnel stage. Every ad and post is analyzed for these before it reaches you.' },
			{ q: 'Do I wait for the analysis?', a: 'No. A brand’s top hooks, angles and personas are worked out ahead of time, over up to the last 90 days. Your agent asks and gets the answer back at once.' },
			{ q: 'Can I research a whole category?', a: 'Yes. Search every indexed ad and post by what is in it, a scene, a line, a style, and see which brands use it, how long their ads run and the views their posts get.' },
			{ q: 'Does it show what an ad spent?', a: 'No. Counts are ads, run length is how long an ad stayed live and views are how a post did. None says what a brand spent or sold, and none claims it does.' },
		],
	},
	chrome: siteChrome,
}

/** The use case page's sections in order; pass `sections` to reorder them or leave some out. */
export const useCaseSections = ['hero', 'proof', 'story', 'stories', 'wheel', 'faq', 'close'] as const
export type UseCaseSection = (typeof useCaseSections)[number]

/** Each block's own data, pictures included (Acme placeholders where left out). */
export interface UseCaseBlocks {
	/** The scroll story's data in place of its preset (lib/scroll-story.ts; its images take `src`, `alt`, `fit`, `position`). */
	story?: { story?: ScrollStoryData }
	/** The wheel's audiences, each with three pairs of pictures. */
	wheel?: { items?: WheelItem[] }
}
react/lib/cn.ts
// 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(' ')
}
elements/components/pages/use-case-page.ts
import { html, nothing } from 'lit'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import type { ChatContent, BuildContent } from '@/lib/use-case-hero'
import { useCaseContent, type UseCaseContent, useCaseSections, type UseCaseSection, type UseCaseBlocks } from '@/lib/pages/use-case'
import '@/elements/components/site/site-header'
import '@/elements/components/site/use-case-hero'
import '@/elements/components/site/connect-menu'
import '@/elements/components/site/proof-block'
import '@/elements/components/blocks/scroll-story'
import '@/elements/components/blocks/stories-block'
import '@/elements/components/blocks/use-case-wheel'
import '@/elements/components/blocks/faq-block'
import '@/elements/components/site/page-close'
import '@/elements/components/blocks/site-footer'
import '@/elements/components/visuals/dispersion-field'
import '@/elements/components/visuals/ascii-trail'
import styles from 'virtual:tw'
import { pageSections } from '@/lib/image'
import { useCaseWheelContent } from '@/lib/use-case-wheel'
import { headerMenus, type HeaderMenus } from '@/lib/site-header'

// UseCasePage.tsx as <spyglass-use-case-page>: the header, the hero (with the connect menu), the proof line, the scroll
// story, the stories, the wheel with the light around its ring (the field takes the wheel's ripple), the FAQ, the
// closing section and the footer. `content`, `visual`, `chat` and `build` as in React; `still` holds the wheel and its
// light.
const CONTAINER = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

/**
 * @summary A use case's page.
 */
export class UseCasePage extends DsElement {
	static styles = [DsElement.styles, styles]
	protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="use-case-page"]'))
	static properties = { content: { type: Object }, visual: {}, chat: { type: Object }, build: { type: Object }, still: { type: Boolean }, sections: { type: Array }, blocks: { type: Object }, menus: { type: Object } }
	/** The copy as JSON (lib/pages/use-case.ts by default). */
	content: UseCaseContent = useCaseContent
	/** The hero's visual: chat or build. */
	visual: 'chat' | 'build' = 'chat'
	/** The hero chat's session. */
	chat?: ChatContent
	/** The hero's build library. */
	build?: BuildContent
	/** Hold the wheel and its light still. */
	still = false

	updated() {
		const wheel = this.renderRoot.querySelector<HTMLElement & { ripple?: unknown }>('spyglass-use-case-wheel')
		const field = this.renderRoot.querySelector<HTMLElement & { ripple?: unknown }>('spyglass-dispersion-field')
		if (wheel && field && field.ripple !== wheel.ripple) field.ripple = wheel.ripple
	}
	/** 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. */
	/** Each block's data, pictures included: the story's `story` and the wheel's `items`. */
	blocks: UseCaseBlocks = {}
	sections?: UseCaseSection[]

	render() {
		const c = this.content ?? useCaseContent
		const b = this.blocks ?? {}
		const parts: Record<UseCaseSection, unknown> = {
			hero: html`<spyglass-use-case-hero .content=${c.hero} visual=${this.visual} .chat=${this.chat} .build=${this.build}>${c.control === 'mcp' ? html`<spyglass-connect-menu slot="control"></spyglass-connect-menu>` : nothing}</spyglass-use-case-hero>`,
			proof: html`<spyglass-proof-block head-id=${`${c.slug}-proof`} heading=${c.proof}></spyglass-proof-block>`,
			story: html`<spyglass-scroll-story .story=${b.story?.story} preset=${c.story.preset} .actions=${c.story.actions}></spyglass-scroll-story>`,
			stories: html`<spyglass-stories-block section-id=${`${c.slug}-stories`} headline=${c.stories.headline} lead=${c.stories.lead} .stories=${c.stories.items} customers="false"></spyglass-stories-block>`,
			wheel: html`<spyglass-use-case-wheel section-id="v2-use-cases" .items=${b.wheel?.items ?? useCaseWheelContent.items} .autoplay=${!this.still}><spyglass-dispersion-field slot="light" class="relative block size-full" composition="ring" seed="5" ?still=${this.still}></spyglass-dispersion-field></spyglass-use-case-wheel>`,
			faq: html`<div class=${`${CONTAINER} py-(--ds-layout-section)`}><spyglass-faq-block head-id=${`${c.slug}-faq`} heading=${c.faq.headline} body=${c.faq.lead} .action=${c.faq.docs} .items=${c.faq.items}></spyglass-faq-block></div>`,
			close: html`<spyglass-page-close></spyglass-page-close>`,
		}
		return html`<div data-ds="use-case-page" class="isolate bg-surface text-fg"><spyglass-ascii-trail mode="page"></spyglass-ascii-trail><spyglass-site-header .menus=${this.menus ?? headerMenus} .links=${c.chrome.header.nav} .secondary=${c.chrome.header.secondary} .cta=${c.chrome.header.cta}></spyglass-site-header><main id="main">${pageSections(useCaseSections, this.sections).map((k) => parts[k])}</main><spyglass-site-footer .columns=${c.chrome.footer.columns} legal=${c.chrome.footer.legal}></spyglass-site-footer></div>`
	}
}

define('use-case-page', UseCasePage)

Reference: Site app/use-cases/[slug]/page.tsx and pages/UseCasesPage/UseCaseDetail.tsx: UseCaseHero, V3Proof, ScrollStory with the primary button and See templates, V3Stories (team layout, no customer row), V2UseCases with DispersionField ring seed 5, V3Faq with the docs button, PageClose, the footer.