Content & media

The blocks that carry the substance of a page: words, pictures, match video, and grids and tabs that compose smaller pieces side by side.

Rich text with code

A text block holds the full rich-text editor, including code blocks with highlighting, a filename and marked lines — here, a snippet from the Rosterly developer docs.

Commissioners on the League plan can pull live scores into their own league site with GET /v1/leagues/:id/live. Scores arrive within seconds of the event on the pitch.

live-table.tsTypeScript
const res = await fetch(
    'https://api.rosterly.example/v1/leagues/sunday-kickabout/live',
    { headers: { Authorization: `Bearer ${token}` } }
)
const { gameweek, fixtures } = await res.json()

// Each team's running total, highest first
const table = fixtures.flatMap((f) => [f.home, f.away])
    .sort((a, b) => b.points - a.points)

Inherit page theme or Use code colours decides whether a code block follows its section or stays dark.

Image

One picture, with its own width and alignment. Alt text is a field, not an afterthought. Rosterly’s theme cuts a corner off hero images; a standalone image keeps its own shape.

Live scoring: each player’s points updating as the match goes on
A points chart with one gameweek lit

Gallery · grid

Images in a grid that open in a lightbox — match-day photos, say. More load as the visitor scrolls.

Gallery · mosaic

The same images in the second gallery style.

Grid

A grid places any blocks side by side — here an image and a text block in each of three columns. Full-width blocks, like the hero, stay out of columns.

Draft

Draft

Snake, auction or keeper: run the draft live, with a clock and auto-pick.

Score

Score

Points land seconds after the goal, with every bonus explained.

Trade

Trade

Every offer gets a fair-value check before anyone accepts.

HTML embed

Paste a snippet of HTML — a status badge, a fixtures widget from your data provider — or point the block at a URL to frame it.

Live scoring is running. This box is plain HTML pasted into an HTML Embed block.

YouTube video

Paste a YouTube link — a draft-night highlights reel, a weekly tips show. The player loads only when it is clicked, so the page stays fast. This one is the first video ever uploaded to YouTube — swap in your own.

Vimeo or a video file

The Video block plays a Vimeo link, loaded only when it is pressed and without tracking, or a file uploaded to Sanity, which can also play silently on a loop. This one is Vimeo’s own demo — swap in your own.

Tabs

A row of labels and one panel at a time, each with rich text, an image and buttons. Every panel is in the page, so search engines read them all. Rosterly’s theme turns the row into a broadcast menu bar: capitals, and a volt bar under the open tab.

Matchday, three ways

Set your line-up, pick a captain and check who is injured, all before the deadline banner turns amber.

The squad screen with the captain picked

Your league’s next season starts here

Set up a league in five minutes, invite your rivals with one link, and draft live on the night. Free for up to ten managers.