Nov 12, 2026 · Research
How to read a competitor’s creative mix.
Count formats before you judge hooks. A week of one brand’s ads says more than its best one.
Read the postPages
The blog index template, built only from library items: the title, the newest post large and every other post in a grid of three, each with an image, the date and category in capitals and a Funnel Display title.
React apps get the React files; every other stack gets the web component.
npx spyglass-ds add blog-page<script type="module" src="/spyglass-ds/elements/blog-page.js"></script>What we learn from the creatives in the index.
Nov 12, 2026 · Research
Count formats before you judge hooks. A week of one brand’s ads says more than its best one.
Read the postNov 5, 2026 · Hooks
Before and after still leads. Here is what the rest of the top ads open with.
Oct 29, 2026 · Boards
Boards work when each one answers a single question.
Oct 22, 2026 · Research
Acme Drinks shipped 40 creatives in seven days. We followed every one.
Oct 15, 2026 · Formats
We sorted 1,000 Acme ads by format. The split was closer than we thought.
Oct 8, 2026 · Briefs
Start Monday with the five changes that matter, not fifty screenshots.
A website's blog index. The posts are neutral examples: replace them in lib/pages/blog.ts or pass content.
Never
sections lists the sections to show, in order (head, featured, posts); a key left out is not shown. Each post's image is a creative: an image slot, or the placeholder's brand, caption and tone. menus passes the header menus (the live card's picture, the use cases' shots).
Adds with it: button, creative-card, footer-row, site-header
The web component takes the same as attributes or properties (<spyglass-blog-page>); title is heading there.
<BlogPage>
| Prop | Type | Default |
|---|---|---|
content | BlogContent | |
menus | HeaderMenus The header menus' content, pictures included (the live card's `picture`, the use cases' `shots`); Acme by default. | |
sections | readonly BlogSection[] The sections to show, in order; all of them in the page order by default (leave one out to omit it). | |
className | string |
The same example in React and as web components; both render identically.
import { BlogPage } from '@/react/components/pages/BlogPage'
// The blog page template with its own copy.
export default function Page() {
return <BlogPage />
}<!-- The blog page template with its own copy. -->
<spyglass-blog-page></spyglass-blog-page>import { Button } from '@/react/components/ui/Button'
import { CreativeCard } from '@/react/components/site/CreativeCard'
import { FooterRow } from '@/react/components/site/FooterRow'
import { SiteHeader } from '@/react/components/site/SiteHeader'
import { blogContent, type BlogContent, blogSections, type BlogSection } from '@/lib/pages/blog'
import { cn } from '@/react/lib/cn'
import { pageSections } from '@/lib/image'
import { Fragment, type ReactNode } from 'react'
import type { HeaderMenus } from '@/lib/site-header'
// The blog index from library items: the title, the newest post large (its image beside the title, the excerpt and a
// button), then every other post in a grid of three, each an image, the date and category in capitals, the title in
// Funnel Display and the excerpt. Titles change color on hover; nothing moves. `content` replaces the copy and the
// posts (lib/pages/blog.ts).
export interface BlogPageProps {
content?: BlogContent
/** 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 BlogSection[]
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 TITLE = 'rounded-control transition-[color] duration-160 ease-standard hover:text-fg-soft'
export function BlogPage({ content: c = blogContent, menus, sections, className }: BlogPageProps) {
const [first, ...rest] = c.posts
const parts: Record<BlogSection, ReactNode> = {
head: (
<div className={cn(WRAP, 'grid gap-4 pt-16 pb-12 max-sm:pt-10 max-sm:pb-8')}>
<h1 className="type-section">{c.title}</h1>
<p className="max-w-140 type-body-lg text-fg-soft">{c.body}</p>
</div>
),
featured: (
first && (
<article className={cn(WRAP, 'grid grid-cols-2 items-center gap-12 pb-16 max-md:grid-cols-1 max-sm:gap-6 max-sm:pb-12')}>
<CreativeCard {...first.image} alt={first.image.alt ?? first.title} ratio="7/5" />
<div className="flex flex-col items-start gap-4">
<p className="type-label text-fg-muted">{`${first.date} · ${first.category}`}</p>
<h2 className="type-section"><a href={first.href} className={TITLE}>{first.title}</a></h2>
<p className="type-body-lg text-fg-soft">{first.excerpt}</p>
<Button href={first.href} variant="secondary" className="mt-2">{c.read}</Button>
</div>
</article>
)
),
posts: (
<section aria-label="More posts" className={cn(WRAP, 'grid grid-cols-3 gap-x-6 gap-y-12 pt-12 pb-24 max-md:grid-cols-2 max-sm:grid-cols-1 max-sm:pb-16')}>
{rest.map((p) => (
<article key={p.href} className="grid content-start gap-4">
<CreativeCard {...p.image} alt={p.image.alt ?? p.title} ratio="7/5" />
<p className="type-label text-fg-muted">{`${p.date} · ${p.category}`}</p>
<h3 className="type-heading-3 text-balance"><a href={p.href} className={TITLE}>{p.title}</a></h3>
<p className="type-ui text-fg-soft">{p.excerpt}</p>
</article>
))}
</section>
),
}
return (
<div data-ds="blog-page" className={cn('bg-surface text-fg', className)}>
<SiteHeader menus={menus} links={c.header.nav} secondary={c.header.secondary} cta={c.header.cta} />
<main>
{pageSections(blogSections, sections).map((k) => <Fragment key={k}>{parts[k]}</Fragment>)}
</main>
<footer className="border-t border-edge">
<div className={cn(WRAP, 'py-10')}>
<FooterRow domain={c.footer.domain} homeHref="/" links={c.footer.links} />
</div>
</footer>
</div>
)
}
export default BlogPage// The blog index template's copy: neutral example posts by the team, with Acme placeholders. Replace them with real posts. Both flavors read this file.
import type { CreativeImage } from '@/lib/image'
/** An Acme placeholder creative: the advertiser, a neutral tone (1 to 4) and a headline. */
const creative = (brand: string, tone: 1 | 2 | 3 | 4, caption?: string): CreativeImage => (caption ? { brand, tone, caption } : { brand, tone })
const nav = [
{ label: 'Product', href: '/product' },
{ label: 'Pricing', href: '/pricing' },
{ label: 'Changelog', href: '/changelog' },
{ label: 'Blog', href: '/blog' },
]
const footer = {
domain: 'spyglass.so',
links: [
{ label: 'Product', href: '/product' },
{ label: 'Pricing', href: '/pricing' },
{ label: 'About', href: '/about' },
{ label: 'Changelog', href: '/changelog' },
{ label: 'Blog', href: '/blog' },
{ label: 'Terms', href: '/legal' },
],
}
const header = { nav, secondary: { label: 'Sign in', href: '/sign-in' }, cta: { label: 'Get 50% off', href: '/pricing' } }
export const blogPosts = [
{ href: '/blog/competitor-creative-mix', title: 'How to read a competitor’s creative mix.', excerpt: 'Count formats before you judge hooks. A week of one brand’s ads says more than its best one.', date: 'Nov 12, 2026', category: 'Research', image: creative('Acme Skin', 3) },
{ href: '/blog/skincare-hooks', title: 'Five hooks that keep working in skincare ads.', excerpt: 'Before and after still leads. Here is what the rest of the top ads open with.', date: 'Nov 5, 2026', category: 'Hooks', image: creative('Acme Skin', 2) },
{ href: '/blog/swipe-files', title: 'A swipe file your team will use.', excerpt: 'Boards work when each one answers a single question.', date: 'Oct 29, 2026', category: 'Boards', image: creative('Acme Studio', 4) },
{ href: '/blog/launch-week', title: 'What a launch week looks like in the index.', excerpt: 'Acme Drinks shipped 40 creatives in seven days. We followed every one.', date: 'Oct 22, 2026', category: 'Research', image: creative('Acme Drinks', 1) },
{ href: '/blog/ugc-or-studio', title: 'UGC or studio: what the numbers say.', excerpt: 'We sorted 1,000 Acme ads by format. The split was closer than we thought.', date: 'Oct 15, 2026', category: 'Formats', image: creative('Acme Fit', 3) },
{ href: '/blog/briefs-from-changes', title: 'Write the brief from what changed.', excerpt: 'Start Monday with the five changes that matter, not fifty screenshots.', date: 'Oct 8, 2026', category: 'Briefs', image: creative('Acme Studio', 2) },
]
export const blogContent = {
header: { ...header, nav: nav.map((l) => (l.href === '/blog' ? { ...l, current: true } : l)) },
title: 'Blog.',
body: 'What we learn from the creatives in the index.',
read: 'Read the post',
posts: blogPosts,
footer,
}
export type BlogContent = typeof blogContent
export type BlogPost = (typeof blogPosts)[number]
/** The blog index's sections in order; pass `sections` to reorder them or leave some out. */
export const blogSections = ['head', 'featured', 'posts'] as const
export type BlogSection = (typeof blogSections)[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, nothing } from 'lit'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import { blogContent, type BlogContent, blogSections, type BlogSection } from '@/lib/pages/blog'
import '@/elements/components/ui/button'
import '@/elements/components/site/creative-card'
import '@/elements/components/site/footer-row'
import '@/elements/components/site/site-header'
import styles from 'virtual:tw'
import { pageSections } from '@/lib/image'
import { ifDefined } from 'lit/directives/if-defined.js'
import { headerMenus, type HeaderMenus } from '@/lib/site-header'
// BlogPage.tsx as <spyglass-blog-page>: the title, the newest post large and the others in a grid of three. Titles
// change color on hover; nothing moves. `content` replaces the copy and the posts.
const WRAP = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'
const TITLE = 'rounded-control transition-[color] duration-160 ease-standard hover:text-fg-soft'
/**
* @summary The blog index template.
*/
export class BlogPage extends DsElement {
static styles = [DsElement.styles, styles]
protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="blog-page"]'))
static properties = { content: { type: Object }, menus: { type: Object }, sections: { type: Array } }
/** The page's copy and posts (lib/pages/blog.ts by default). */
content: BlogContent = blogContent
/** 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?: BlogSection[]
render() {
const c = this.content ?? blogContent
const [first, ...rest] = c.posts
const parts: Record<BlogSection, unknown> = {
head: html`<div class=${`${WRAP} grid gap-4 pt-16 pb-12 max-sm:pt-10 max-sm:pb-8`}><h1 class="type-section">${c.title}</h1><p class="max-w-140 type-body-lg text-fg-soft">${c.body}</p></div>`,
featured: html`${first ? html`<article class=${`${WRAP} grid grid-cols-2 items-center gap-12 pb-16 max-md:grid-cols-1 max-sm:gap-6 max-sm:pb-12`}><spyglass-creative-card src=${ifDefined(first.image.src)} fit=${ifDefined(first.image.fit)} position=${ifDefined(first.image.position)} brand=${ifDefined(first.image.brand)} caption=${ifDefined(first.image.caption)} tone=${ifDefined(first.image.tone)} alt=${first.image.alt ?? first.title} ratio="7/5"></spyglass-creative-card><div class="flex flex-col items-start gap-4"><p class="type-label text-fg-muted">${`${first.date} · ${first.category}`}</p><h2 class="type-section"><a href=${first.href} class=${TITLE}>${first.title}</a></h2><p class="type-body-lg text-fg-soft">${first.excerpt}</p><spyglass-button href=${first.href} variant="secondary" class="mt-2">${c.read}</spyglass-button></div></article>` : nothing}`,
posts: html`<section aria-label="More posts" class=${`${WRAP} grid grid-cols-3 gap-x-6 gap-y-12 pt-12 pb-24 max-md:grid-cols-2 max-sm:grid-cols-1 max-sm:pb-16`}>${rest.map((p) => html`<article class="grid content-start gap-4"><spyglass-creative-card src=${ifDefined(p.image.src)} fit=${ifDefined(p.image.fit)} position=${ifDefined(p.image.position)} brand=${ifDefined(p.image.brand)} caption=${ifDefined(p.image.caption)} tone=${ifDefined(p.image.tone)} alt=${p.image.alt ?? p.title} ratio="7/5"></spyglass-creative-card><p class="type-label text-fg-muted">${`${p.date} · ${p.category}`}</p><h3 class="type-heading-3 text-balance"><a href=${p.href} class=${TITLE}>${p.title}</a></h3><p class="type-ui text-fg-soft">${p.excerpt}</p></article>`)}</section>`,
}
return html`<div data-ds="blog-page" class="bg-surface text-fg">
<spyglass-site-header .menus=${this.menus ?? headerMenus} .links=${c.header.nav} .secondary=${c.header.secondary} .cta=${c.header.cta}></spyglass-site-header>
<main>${pageSections(blogSections, this.sections).map((k) => parts[k])}</main>
<footer class="border-t border-edge"><div class=${`${WRAP} py-10`}><spyglass-footer-row domain=${c.footer.domain} home-href="/" .links=${c.footer.links}></spyglass-footer-row></div></footer>
</div>`
}
}
define('blog-page', BlogPage)Reference: Built from the library (site header, creative card, button, footer row) and the brand's type: Funnel Display titles, DM Sans excerpts, labels in capitals.