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
21
server/src/migrations/073_featured_grid.sql
Normal file
21
server/src/migrations/073_featured_grid.sql
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
-- ═══════════════════════════════════════════════════════════════
|
||||
-- 073 FEATURED GRID
|
||||
--
|
||||
-- The front page's featured cards get a hand-set shape:
|
||||
--
|
||||
-- front_page.featured_columns 2, 3 or 4 across on a wide screen;
|
||||
-- null is 3, as before
|
||||
-- featured_cards.size normal, wide (2 columns), tall
|
||||
-- (2 rows) or large (both); null is
|
||||
-- automatic, as before: the first of
|
||||
-- three or more cards is large
|
||||
--
|
||||
-- Only the Front page editor offers them. A region's or the
|
||||
-- Community blog's cards keep a null size, so they lay out as before.
|
||||
-- ═══════════════════════════════════════════════════════════════
|
||||
|
||||
ALTER TABLE front_page ADD COLUMN featured_columns INTEGER
|
||||
CHECK (featured_columns IN (2, 3, 4));
|
||||
|
||||
ALTER TABLE featured_cards ADD COLUMN size TEXT
|
||||
CHECK (size IN ('normal', 'wide', 'tall', 'large'));
|
||||
Loading…
Add table
Add a link
Reference in a new issue