Build Specification — Shared Page Structure

Events Page — Build Specification

Status: DRAFT — Review before launching build agents Date: 2026-03-16


1. Page Purpose (One Sentence)

Help users find and register for AlMaghrib events near them in under 30 seconds.


2. Shared Page Structure (All 3 Directions)

Every direction implements these sections in this order:

Section 1: Hero

Section 2: Filter Bar (sticky on scroll)

Section 3: Event Cards Grid

Section 4: Expanded Event Detail (inline or modal)

Section 5: Footer


3. Content Specification

Hero Copy Options (for each direction to choose from)

Filter Labels

Card Summary Fields (priority order)

  1. Course image (image_bg for wide cards, image for portrait cards)
  2. Event title (heading)
  3. Subtitle (sub_heading)
  4. Instructor name + avatar
  5. City + country
  6. Date (formatted: "Sat, April 18, 2026")
  7. Event type badge ("Weekend Seminar" / "Ilm Night")
  8. Credits badge (if credits is not null)
  9. Price (current pricing tier with currency symbol)

Expanded View Fields (additional)

  1. Full description (HTML stripped to text)
  2. Pricing breakdown (standard + early bird if available)
  3. Schedule with local times (from schedule_tz)
  4. Registration count ("46 students registered")
  5. Attendee avatars (first 5)
  6. Venue (if event_schedule_venue is not null)
  7. "Register Now" button → site_url (or slug-based URL as fallback)

Empty States

CTA Labels


4. Data Integration

Static Mockup Approach

Data Transformations Needed in JS


5. Design System Constraints (Non-Negotiable)

These MUST be followed across all 3 directions:

Typography

Colors (from design-system-audit.md)

Components

Footer

Mobile


6. Technical Requirements


7. Quality Bar