{# # ============================================================================ # ORGANISM: LANDING HOW IT WORKS # ============================================================================ # # Section "Comment ça marche" — alternating steps with screenshots. # Fully parameterized: all text and images passed via Twig parameters. # # ============================================================================ # COMPOSITION # ============================================================================ # # - _atoms/icon/icon.html.twig (not used directly, but available) # # ============================================================================ # PARAMETRES # ============================================================================ # # | Parametre | Type | Defaut | Description | # |------------|--------|--------------------------------|--------------------------------| # | eyebrow | string | 'COMMENT ÇA MARCHE' | Eyebrow text above title | # | title | string | 'De l\'idée à la formation...' | H2 title | # | subtitle | string | 'Bubul accompagne chaque...' | Subtitle text | # | steps | array | (default 3 steps) | [{number, title, description, image, imageAlt}] | # | class | string | '' | Additional CSS classes | # | id | string | 'how-it-works' | HTML anchor id | # # ============================================================================ # STRUCTURE D'UNE STEP (steps[]) # ============================================================================ # # | Cle | Type | Description | # |-------------|--------|------------------------------------------| # | number | int | Step number (auto from loop if omitted) | # | title | string | Step heading | # | description | string | Step description paragraph | # | image | string | Image path | # | imageAlt | string | Alt text for the image | # # ============================================================================ # USAGE EXAMPLES # ============================================================================ # # {% include '_organisms/landing/how-it-works.html.twig' with { # steps: myCustomSteps # } only %} # # ============================================================================ #} {% set eyebrow = eyebrow ?? 'COMMENT ÇA MARCHE' %} {% set title = title ?? 'De l\'idée à la formation publiée' %} {% set subtitle = subtitle ?? 'Bubul accompagne chaque étape — du déploiement de votre LMS à la publication de vos contenus. Aucune compétence technique requise.' %} {% set id = id ?? 'how-it-works' %} {% set class = class ?? '' %} {% set defaultSteps = [ { title: 'Choisissez votre outil', description: 'Cours LMS, présentation, podcast, infographie… Sélectionnez l\'outil adapté à votre besoin et déposez votre contenu ou décrivez votre projet.', image: '/img/landing/step1.png', imageAlt: 'Sélection de l\'outil Bubul' }, { title: 'L\'IA génère en quelques minutes', description: 'Cours structurés, quiz, présentations, infographies, podcasts — tout est généré automatiquement selon vos paramètres.', image: '/img/landing/step2.png', imageAlt: 'Génération IA en cours' }, { title: 'Publiez et transmettez', description: 'Relisez, ajustez si besoin, puis exportez ou déployez en un clic. Vos apprenants accèdent immédiatement à un contenu de qualité professionnelle.', image: '/img/landing/step3.png', imageAlt: 'Déploiement et publication' } ] %} {% set steps = steps ?? defaultSteps %}
{# Header #}

{{ eyebrow }}

{{ title }}

{{ subtitle }}

{# Steps — alternating layout #}
{% for step in steps %} {% set stepNumber = step.number ?? loop.index %} {% set isReversed = loop.index is even %}
{# Text #}
{{ stepNumber }}

{{ step.title }}

{{ step.description }}

{# Image #}
{{ step.imageAlt ?? step.title }}
{% endfor %}