Front page: set the featured cards' grid by hand, columns and a size per card (migration 073)
Front page editor: Featured Content > Columns (2, 3 or 4 across on a wide screen) and a Size on each card (normal, wide, tall, large). Blank keeps today's layout: 3 across, the first of three or more large. Regions and the Community blog stay automatic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
910aef78b5
commit
31d9f78120
11 changed files with 130 additions and 23 deletions
|
|
@ -106,8 +106,13 @@ export type FeaturedCard = {
|
|||
blurb?: string | null
|
||||
/** Resolve the file with mediaUrl in media.ts. */
|
||||
image: { file: string; kind: string } | null
|
||||
/** Its shape in the grid; null is automatic (FeaturedCards). */
|
||||
size?: FeaturedSize | null
|
||||
}
|
||||
|
||||
export type FeaturedSize = 'normal' | 'wide' | 'tall' | 'large'
|
||||
export type FeaturedColumns = 2 | 3 | 4
|
||||
|
||||
/** The countdown's event plus what the hero's event card draws. */
|
||||
export type HeroEvent = CountdownEvent & {
|
||||
tagline?: string | null
|
||||
|
|
@ -123,6 +128,8 @@ export type FrontPage = {
|
|||
stats: FrontPageStat[]
|
||||
paths: FrontPagePath[]
|
||||
featured: FeaturedCard[]
|
||||
/** Columns across on a wide screen; null is the grid's default. */
|
||||
featured_columns: FeaturedColumns | null
|
||||
countdown: CountdownEvent | null
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue