{% extends 'base.html.twig' %} {% block title %}Auth Layout - Design System - Bubul{% endblock %} {% block body %}
Layout split-screen pour les pages d'authentification
Le Auth Layout divise l'ecran en deux parties : une zone visuelle (gauche) avec le logo et une zone contenu (droite) pour le formulaire. En mobile, les deux zones s'empilent verticalement.
50%
Visuel
50%
Contenu
1
Organisme
embed
Pattern Twig
Organismes utilises
auth-visual
Logo centre sur fond blanc
block content
Via {% verbatim %}{% embed %}{% endverbatim %}
Pattern embed Twig
{% verbatim %}{% embed '_organisms/auth-layout/auth-layout.html.twig' with {
logoSize: '2xl'
} %}
{% block content %}
{% include '_organisms/login-form/login-form.html.twig' with {
action: path('app_login'),
lastUsername: last_username,
csrfToken: csrf_token('authenticate')
} only %}
{% endblock %}
{% endembed %}{% endverbatim %}
Layout split 50/50
Layout empile verticalement
Options de configuration
| Parametre | Type | Defaut | Description |
|---|---|---|---|
logoVariant |
string | 'detailed' | Variant du logo (detailed, full) |
logoSize |
string | '2xl' | Taille du logo |
visualBg |
string | 'white' | Couleur de fond du visuel |
contentBg |
string | 'gray-50' | Couleur de fond du contenu |