{% extends 'base.html.twig' %} {% block title %}Logo - Design System - Bubul{% endblock %} {% block body %}
Deux versions selon le contexte d'utilisation
Avec degradés et effets visuels
Version simplifiée SVG
| Paramètre | Type | Défaut | Description |
|---|---|---|---|
variant |
string | 'detailed' |
Version: detailed, simple |
size |
string | 'md' |
Taille: xs, sm, md, lg, xl, 2xl |
class |
string | '' |
Classes CSS additionnelles |
{% verbatim %}{# Logo detailed (défaut) #}
{% include '_atoms/logo/logo.html.twig' %}
{# Logo detailed grande taille #}
{% include '_atoms/logo/logo.html.twig' with {
variant: 'detailed',
size: 'xl'
} %}
{# Logo simple #}
{% include '_atoms/logo/logo.html.twig' with {
variant: 'simple',
size: 'lg'
} %}
{# Logo avec texte #}
{% include '_atoms/logo/logo-with-text.html.twig' with {
showIcon: true,
showBadge: true,
size: 'lg'
} %}{% endverbatim %}
templates/_atoms/logo/logo.html.twig
Tailles disponibles pour le logo avec dégradés
xs (24px)
sm (32px)
md (48px)
lg (64px)
xl (96px)
2xl (128px)
Tailles disponibles pour le logo simplifié
xs (24px)
sm (32px)
md (48px)
lg (64px)
xl (96px)
2xl (128px)
Logo avec le texte "Bubul" et badge BETA
| Paramètre | Type | Défaut | Description |
|---|---|---|---|
showIcon |
bool | true |
Afficher l'icône SVG |
showText |
bool | true |
Afficher le texte "Bubul" |
showBadge |
bool | true |
Afficher le badge "BETA" |
size |
string | 'md' |
Taille: sm, md, lg, xl |
inline |
bool | false |
Version inline (pour titres) |
Complet (défaut)
Icône + Bubul + BETA
Texte + Badge
Bubul + BETA
Icône + Texte
Sans badge BETA
Texte seul
Juste "Bubul"
sm
md
lg
xl
{% verbatim %}{# Complet #}
{% include '_atoms/logo/logo-with-text.html.twig' %}
{# Sans badge #}
{% include '_atoms/logo/logo-with-text.html.twig' with { showBadge: false } %}
{# Texte seul (inline pour titre) #}
{% include '_atoms/logo/logo-with-text.html.twig' with {
showIcon: false,
showBadge: false,
inline: true
} %}
{# Grande taille #}
{% include '_atoms/logo/logo-with-text.html.twig' with { size: 'lg' } %}{% endverbatim %}
templates/_atoms/logo/logo-with-text.html.twig
Logo produit SAM — Suivi Apprenants Moodle
disabled: false (défaut)
disabled: true — grayscale + opacity-40
{{ s }}
{{ s }} ({{ px }}px)
| Paramètre | Type | Défaut | Description |
|---|---|---|---|
variant |
string | 'bubul' |
Mettre 'sam' pour activer le logo SAM |
disabled |
bool | false |
Applique grayscale opacity-40 sur l'ensemble |
subtitle |
string | null |
Sous-titre (ex: 'Analytics Moodle') |
size |
string | 'md' |
Taille : sm, md, lg, xl |
showIcon / showText / showBadge |
bool | true / true / true |
Contrôle fins des éléments affichés |
{% verbatim %}{# Logo SAM avec sous-titre (activé) #}
{% include '_atoms/logo/logo-with-text.html.twig' with {
variant: 'sam',
subtitle: 'Analytics Moodle',
showBadge: false,
size: 'lg'
} %}
{# Logo SAM désactivé #}
{% include '_atoms/logo/logo-with-text.html.twig' with {
variant: 'sam',
subtitle: 'Analytics Moodle',
showBadge: false,
disabled: true
} %}
{# Icône SAM seule #}
{% include '_atoms/icon/sam-logo.html.twig' with { size: 'md' } only %}{% endverbatim %}
templates/_atoms/logo/logo-with-text.html.twig
templates/_atoms/icon/sam-logo.html.twig
variant: 'detailed' pour les pages d'accueil et marketingvariant: 'simple' pour la navigation (sidebar, header)xs (icône) ou sm (logo detailed)Toujours maintenir un espace minimum autour du logo équivalent à 25% de sa hauteur. Cela garantit une bonne lisibilité et un aspect professionnel.