Hero with Diagram Component
Hero section component that integrates a Mermaid decision tree diagram for the "How Festa Works" page. Features trauma-informed UX, responsive layouts, and WCAG 2.2 AA compliance.
π Component Specifications
Props
headline- Main page headlinesubheadline- Supporting subheadlinediagramCode- Mermaid diagram syntaxcta- Call to action object (text, url)layout- Layout variant (default, centered, split)
Features
- β Integrated Mermaid diagram rendering
- β Responsive mobile/tablet/desktop layouts
- β Festa calm gradient backgrounds
- β WCAG 2.2 AA color contrast compliance
- β Keyboard accessible navigation
- β Trauma-informed visual hierarchy
Version 1: Default Layout (Text Above, Diagram Below)
Traditional hero layout with headline/subheadline stacked above the diagram. Best for prioritizing text content.
Three Ways We Partner for Impact
Whether you need to build internal capacity, implement a full-scale project, or co-create something entirely new, we meet you where you are.
organization need?"} Question -->|"Build internal
capacity"| DesignForGood["π‘ We Design for Good
Build Your Team's
Design Capacity"] Question -->|"Full project
implementation"| HumanityForGood["β€οΈ Humanity for Good
In-House Social
Impact Projects"] Question -->|"Co-creation &
partnership"| CollaborationForGood["π€² Collaboration for Good
Full Partnership
Co-Design"] style Start fill:#007f4e,stroke:#00a65c,stroke-width:3px,color:#fff style Question fill:#72b043,stroke:#447728,stroke-width:3px,color:#fff style DesignForGood fill:#007f4e,stroke:#00a65c,stroke-width:3px,color:#fff style HumanityForGood fill:#72b043,stroke:#447728,stroke-width:3px,color:#fff style CollaborationForGood fill:#f37324,stroke:#ea580c,stroke-width:3px,color:#fff
Not sure which approach is right for you? Book a free consultation and we'll help you figure it out together.
Version 2: Centered Layout (Diagram Emphasized)
Centered layout with diagram as primary visual element. Best for visual learners and decision-making clarity.
Three Ways We Partner for Impact
We meet you where you areβwhether building capacity, implementing projects, or co-creating solutions.
Partnership Path"} Question -->|"Capacity"| Design["π‘ Design
for Good"] Question -->|"Projects"| Humanity["β€οΈ Humanity
for Good"] Question -->|"Partnership"| Collab["π€² Collaboration
for Good"] style Start fill:#007f4e,stroke:#00a65c,stroke-width:4px,color:#fff style Question fill:#72b043,stroke:#447728,stroke-width:4px,color:#fff style Design fill:#007f4e,stroke:#00a65c,stroke-width:3px,color:#fff style Humanity fill:#72b043,stroke:#447728,stroke-width:3px,color:#fff style Collab fill:#f37324,stroke:#ea580c,stroke-width:3px,color:#fff
Version 3: Split Layout (50/50 Text & Diagram)
Side-by-side layout balancing text and diagram. Best for desktop viewing with ample explanation space.
Three Ways We Partner for Impact
Whether you need to build internal capacity, implement a full-scale project, or co-create something entirely new, we meet you where you are.
Each partnership model is designed to address specific organizational needs while maintaining our commitment to trauma-informed design, accessibility, and measurable social impact.
Learn MoreNeeds"] --> Question{"What do you
need most?"} Question -->|"Build
Capacity"| Design["π‘ Design
for Good"] Question -->|"Full
Project"| Humanity["β€οΈ Humanity
for Good"] Question -->|"True
Partnership"| Collab["π€² Collaboration
for Good"] style Start fill:#007f4e,stroke:#00a65c,stroke-width:3px,color:#fff style Question fill:#72b043,stroke:#447728,stroke-width:3px,color:#fff style Design fill:#007f4e,stroke:#00a65c,stroke-width:2px,color:#fff style Humanity fill:#72b043,stroke:#447728,stroke-width:2px,color:#fff style Collab fill:#f37324,stroke:#ea580c,stroke-width:2px,color:#fff
Version 4: Minimal Layout (Compact for Mobile-First)
Streamlined mobile-first layout with minimal text and simplified diagram. Best for quick decision-making.
How Festa Works
Three partnership paths for social impact organizations
Implementation Notes
Design Considerations
- β Mobile-First: All layouts tested on mobile, tablet, and desktop breakpoints
- β Gradient Backgrounds: Festa calm colors optimized for WCAG 2.2 AA contrast
- β Diagram Visibility: Mermaid colors tested on all gradient backgrounds
- β Responsive Typography: Text scales appropriately across devices
- β Visual Hierarchy: Clear progression from headline β diagram β CTA
Accessibility Features
- β Color Contrast: All text meets WCAG 2.2 AA standards (4.5:1 minimum)
- β Focus Indicators: Visible focus rings on all interactive elements
- β Semantic HTML: Proper heading hierarchy (h1 β h2 β h3)
- β Keyboard Navigation: All CTAs and links fully keyboard accessible
- β Screen Reader Support: ARIA labels and descriptive link text
Trauma-Informed Design
- β Clear Navigation: Decision tree provides predictable pathways
- β No Sudden Movement: Diagram is static, no auto-animations
- β Empowering Language: "We meet you where you are" messaging
- β Visual Breathing Room: Generous spacing prevents cognitive overwhelm
- β User Control: User chooses when to interact with diagram or proceed to CTA
Usage Guidelines
When to Use Each Layout
Version 1: Default Layout
Use when text content needs to be prioritized and read before viewing the diagram. Best for pages requiring detailed explanation.
Version 2: Centered Layout
Use when the diagram is the primary communication tool. Best for visual learners and quick decision-making.
Version 3: Split Layout
Use on desktop-focused pages where you have significant explanatory content alongside the diagram. Best for detailed service pages.
Version 4: Minimal Layout
Use for mobile-first experiences or when space is limited. Best for overview pages or navigation hubs.