Shumiland/migrations/0018_group_hero_typography.sql
Vadym Samoilenko 3b39f3d3b0
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions
feat(group-visits): hero typography controls + bottom-aligned title plate
- Move hero title plate to the bottom of the photo so faces stay visible
- Admin can now set hero title/subtitle size (px) and font
  (Montserrat/Poppins/Inter); mobile scales via clamp()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 15:31:24 +01:00

20 lines
907 B
SQL

-- Hero typography controls for group-visits-page global
-- (heroTitleSize / heroSubtitleSize / heroFont)
DO $$ BEGIN
CREATE TYPE "enum_group_visits_page_hero_font" AS ENUM ('montserrat', 'poppins', 'inter');
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
DO $$ BEGIN
CREATE TYPE "enum__group_visits_page_v_version_hero_font" AS ENUM ('montserrat', 'poppins', 'inter');
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
ALTER TABLE "group_visits_page"
ADD COLUMN IF NOT EXISTS "hero_title_size" numeric,
ADD COLUMN IF NOT EXISTS "hero_subtitle_size" numeric,
ADD COLUMN IF NOT EXISTS "hero_font" "enum_group_visits_page_hero_font";
ALTER TABLE "_group_visits_page_v"
ADD COLUMN IF NOT EXISTS "version_hero_title_size" numeric,
ADD COLUMN IF NOT EXISTS "version_hero_subtitle_size" numeric,
ADD COLUMN IF NOT EXISTS "version_hero_font" "enum__group_visits_page_v_version_hero_font";