NAHNAH AI

🌅 HérosGratuit · 0 NahnahPar NAHNAH AI

Héros titre dégradé néon

Titre géant au dégradé animé, halos lumineux qui flottent et grille discrète : idéal pour un lancement ou une marque tech.

Aperçu en direct

Données de démonstration (produits, menus, textes d’exemple) : dans ta boutique, ce sont les tiennes.

Code à copier

Fichier complet sections/nahnah-hero-titre-degrade.liquid (Liquid, CSS et JS inclus).

{%- comment -%} NAHNAH AI · Héros titre dégradé néon (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-hero-titre-degrade" style="--nn-mh: {{ section.settings.marge_haut }}px; --nn-mb: {{ section.settings.marge_bas }}px; --nn-fond: {{ section.settings.couleur_fond }}; --nn-texte: {{ section.settings.couleur_texte }}; --nn-accent: {{ section.settings.couleur_accent }}; --nn-bouton: {{ section.settings.couleur_bouton }}; --nn-texte-bouton: {{ section.settings.couleur_texte_bouton }}; --nn-accent-2: {{ section.settings.couleur_accent_2 }};">
  <div class="nn-hero-titre-degrade__cadre{% if section.settings.grille %} nn-hero-titre-degrade--grille{% endif %}">
    <span class="nn-hero-titre-degrade__halo nn-hero-titre-degrade__halo--a" aria-hidden="true"></span>
    <span class="nn-hero-titre-degrade__halo nn-hero-titre-degrade__halo--b" aria-hidden="true"></span>
    <div class="nn-hero-titre-degrade__contenu">
      {%- if section.settings.badge != blank -%}
        <p class="nn-hero-titre-degrade__badge"><span class="nn-hero-titre-degrade__point" aria-hidden="true"></span>{{ section.settings.badge | escape }}</p>
      {%- endif -%}
      {%- if section.settings.titre != blank -%}
        <h2 class="nn-hero-titre-degrade__titre"><span class="nn-hero-titre-degrade__degrade">{{ section.settings.titre }}</span></h2>
      {%- endif -%}
      {%- if section.settings.texte != blank -%}
        <div class="nn-hero-titre-degrade__texte">{{ section.settings.texte }}</div>
      {%- endif -%}
      {%- if section.settings.bouton_texte != blank or section.settings.bouton2_texte != blank -%}
      <div class="nn-hero-titre-degrade__boutons">
        {%- if section.settings.bouton_texte != blank -%}
          <a class="nn-hero-titre-degrade__bouton" href="{{ section.settings.bouton_lien | default: routes.all_products_collection_url }}">{{ section.settings.bouton_texte | escape }}</a>
        {%- endif -%}
        {%- if section.settings.bouton2_texte != blank -%}
          <a class="nn-hero-titre-degrade__bouton nn-hero-titre-degrade__bouton--second" href="{{ section.settings.bouton2_lien | default: routes.collections_url }}">{{ section.settings.bouton2_texte | escape }}</a>
        {%- endif -%}
      </div>
    {%- endif -%}
    </div>
  </div>
</div>

{% schema %}
{
  "name": "Héros titre dégradé néon",
  "tag": "section",
  "class": "nn-section-hero-titre-degrade",
  "settings": [
    {
      "type": "text",
      "id": "badge",
      "label": "Badge (vide : masqué)",
      "default": "Nouveauté"
    },
    {
      "type": "inline_richtext",
      "id": "titre",
      "label": "Titre",
      "default": "Le style qui se remarque"
    },
    {
      "type": "richtext",
      "id": "texte",
      "label": "Texte",
      "default": "<p>Une sélection pensée pour sortir du lot, sans compromis sur la qualité.</p>"
    },
    {
      "type": "color",
      "id": "couleur_accent_2",
      "label": "Seconde couleur du dégradé",
      "default": "#F5C451"
    },
    {
      "type": "checkbox",
      "id": "grille",
      "label": "Grille de fond",
      "default": true
    },
    {
      "type": "header",
      "content": "Boutons"
    },
    {
      "type": "text",
      "id": "bouton_texte",
      "label": "Texte du bouton (vide : masqué)",
      "default": "Découvrir la sélection"
    },
    {
      "type": "url",
      "id": "bouton_lien",
      "label": "Lien du bouton (vide : tous les produits)"
    },
    {
      "type": "text",
      "id": "bouton2_texte",
      "label": "Texte du bouton secondaire (vide : masqué)",
      "default": "Voir les collections"
    },
    {
      "type": "url",
      "id": "bouton2_lien",
      "label": "Lien du bouton secondaire (vide : collections)"
    },
    {
      "type": "header",
      "content": "Couleurs"
    },
    {
      "type": "color",
      "id": "couleur_fond",
      "label": "Fond",
      "default": "#070B14"
    },
    {
      "type": "color",
      "id": "couleur_texte",
      "label": "Texte",
      "default": "#F2F5F9"
    },
    {
      "type": "color",
      "id": "couleur_accent",
      "label": "Accent",
      "default": "#2EE6A8"
    },
    {
      "type": "color",
      "id": "couleur_bouton",
      "label": "Bouton",
      "default": "#2EE6A8"
    },
    {
      "type": "color",
      "id": "couleur_texte_bouton",
      "label": "Texte du bouton",
      "default": "#070B14"
    },
    {
      "type": "header",
      "content": "Espacement"
    },
    {
      "type": "range",
      "id": "marge_haut",
      "label": "Marge haute",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 0
    },
    {
      "type": "range",
      "id": "marge_bas",
      "label": "Marge basse",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 0
    }
  ],
  "presets": [
    {
      "name": "Héros titre dégradé néon"
    }
  ]
}
{% endschema %}

{% stylesheet %}
.nn-hero-titre-degrade {
  position: relative;
  display: block;
  padding: var(--nn-mh) 0 var(--nn-mb);
  background: var(--nn-fond);
  color: var(--nn-texte);
  overflow-x: clip;
}
.nn-hero-titre-degrade *, .nn-hero-titre-degrade *::before, .nn-hero-titre-degrade *::after { box-sizing: border-box; }
.nn-hero-titre-degrade :where(a, button):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 3px; }
.nn-hero-titre-degrade__surtitre { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nn-accent); }
.nn-hero-titre-degrade__titre { margin: 0 0 16px; font-size: clamp(32px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; color: inherit; }
.nn-hero-titre-degrade__texte { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; opacity: 0.88; max-width: 560px; }
.nn-hero-titre-degrade__texte p { margin: 0 0 0.6em; }
.nn-hero-titre-degrade__boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.nn-hero-titre-degrade__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 28px;
  border-radius: var(--nn-arrondi-bouton, 8px);
  background: var(--nn-bouton);
  color: var(--nn-texte-bouton);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nn-hero-titre-degrade__bouton--second { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) {
  .nn-hero-titre-degrade__bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--nn-bouton) 35%, transparent); }
  .nn-hero-titre-degrade__bouton--second:hover { box-shadow: inset 0 0 0 2px currentColor, 0 12px 26px rgba(0, 0, 0, 0.12); }
}
.nn-hero-titre-degrade__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-hero-titre-degrade__cadre { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 12vw, 150px) 16px; text-align: center; }
.nn-hero-titre-degrade--grille::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--nn-texte) 6%, transparent) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--nn-texte) 6%, transparent) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.nn-hero-titre-degrade__halo { position: absolute; z-index: -2; width: min(520px, 90vw); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.nn-hero-titre-degrade__halo--a { top: -20%; left: -10%; background: var(--nn-accent); animation: nn-hero-titre-degrade-flotte 14s ease-in-out infinite alternate; }
.nn-hero-titre-degrade__halo--b { right: -12%; bottom: -30%; background: var(--nn-accent-2); animation: nn-hero-titre-degrade-flotte 17s ease-in-out infinite alternate-reverse; }
@keyframes nn-hero-titre-degrade-flotte { to { transform: translate(12%, 10%) scale(1.1); } }
.nn-hero-titre-degrade__contenu { position: relative; max-width: 920px; margin: 0 auto; }
.nn-hero-titre-degrade__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--nn-accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--nn-accent) 10%, transparent);
  font-size: 13px;
  font-weight: 600;
}
.nn-hero-titre-degrade__point { width: 8px; height: 8px; border-radius: 50%; background: var(--nn-accent); box-shadow: 0 0 10px var(--nn-accent); animation: nn-hero-titre-degrade-pouls 2s ease-in-out infinite; }
@keyframes nn-hero-titre-degrade-pouls { 50% { opacity: 0.35; transform: scale(0.8); } }
.nn-hero-titre-degrade__titre { font-size: clamp(40px, 9vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
.nn-hero-titre-degrade__degrade {
  background: linear-gradient(90deg, var(--nn-texte), var(--nn-accent), var(--nn-accent-2), var(--nn-texte));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nn-hero-titre-degrade-defile 9s linear infinite;
}
@keyframes nn-hero-titre-degrade-defile { to { background-position: 300% 0; } }
.nn-hero-titre-degrade__texte { margin-inline: auto; }
.nn-hero-titre-degrade__boutons { justify-content: center; }
.nn-hero-titre-degrade__bouton { border-radius: 999px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--nn-accent) 60%, transparent), 0 0 26px color-mix(in srgb, var(--nn-bouton) 45%, transparent); }
.nn-hero-titre-degrade__bouton--second { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nn-texte) 45%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .nn-hero-titre-degrade, .nn-hero-titre-degrade *, .nn-hero-titre-degrade *::before, .nn-hero-titre-degrade *::after {
    animation: none !important;
    transition: none !important;
  }
}
{% endstylesheet %}

Licence NAHNAH AI : utilisation libre dans tes boutiques (y compris commerciales), modification permise, revente de l’élément seul interdite.

Installer dans ma boutique

En un clic, la section est ajoutée à un thème de ta boutique Shopify connectée (un thème non publié par défaut).

Chargement de tes boutiques…

Installer dans Shopify

  1. Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
  2. Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « nahnah-hero-titre-degrade ».
  3. Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
  4. Ouvre Personnaliser → Ajouter une section → choisis-la, règle les textes et les couleurs, puis Enregistrer.

Installer via le MCP

Depuis Claude, Claude Code ou ChatGPT connecté à NAHNAH AI, demande : « Donne-moi le code de l’élément hero-titre-degrade de la bibliothèque NAHNAH AI et les étapes pour l’installer ». L’assistant récupère le code et les étapes (outil obtenir_code_element), gratuitement.

Boutique connectée à NAHNAH AI : l’assistant peut aussi l’installer directement (outil installer_element).

Connecter le MCP

Dans la même catégorie