🪧 En-têtes (headers)Gratuit · 0 NahnahPar NAHNAH AI
En-tête néon verre dépoli
En-tête sombre translucide façon verre dépoli, liens soulignés d’un trait néon au survol, bouton d’appel lumineux et menu mobile repliable.
Aperçu en direct
Données de démonstration (produits, menus, textes d’exemple) : dans ta boutique, ce sont les tiennes.
Photos : Unsplash / Pexels (exemples de l’aperçu, jamais inclus dans le code).
Code à copier
Fichier complet sections/nahnah-menu-neon-verre.liquid (Liquid, CSS et JS inclus).
{%- comment -%} NAHNAH AI · En-tête néon verre dépoli (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-menu-neon-verre{% if section.settings.collant %} nn-menu-neon-verre--collant{% endif %}" 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 }};">
<div class="nn-menu-neon-verre__barre">
<details class="nn-menu-neon-verre__tiroir">
<summary class="nn-menu-neon-verre__burger">
<span class="nn-menu-neon-verre__vh">Menu</span>
<svg class="nn-menu-neon-verre__ico-menu" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7h16M4 12h16M4 17h16"/></svg>
<svg class="nn-menu-neon-verre__ico-fermer" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6l12 12M18 6 6 18"/></svg>
</summary>
<nav class="nn-menu-neon-verre__panneau" aria-label="Menu principal">
<ul class="nn-menu-neon-verre__mob-liste" role="list">
{%- for link in section.settings.menu.links -%}
<li class="nn-menu-neon-verre__mob-item">
{%- if link.links != blank -%}
<details class="nn-menu-neon-verre__mob-sous" data-nn-sous>
<summary class="nn-menu-neon-verre__mob-lien">
<span>{{ link.title | escape }}</span>
<svg class="nn-menu-neon-verre__chevron" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul class="nn-menu-neon-verre__mob-sous-liste" role="list">
{%- for enfant in link.links -%}
<li><a class="nn-menu-neon-verre__mob-sous-lien" href="{{ enfant.url }}"{% if enfant.current %} aria-current="page"{% endif %}>{{ enfant.title | escape }}</a></li>
{%- endfor -%}
<li><a class="nn-menu-neon-verre__mob-sous-lien nn-menu-neon-verre__mob-sous-lien--tout" href="{{ link.url }}">Tout voir : {{ link.title | escape }}</a></li>
</ul>
</details>
{%- else -%}
<a class="nn-menu-neon-verre__mob-lien" href="{{ link.url }}"{% if link.current %} aria-current="page"{% endif %}>{{ link.title | escape }}</a>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
</nav>
</details>
<a class="nn-menu-neon-verre__logo" href="{{ routes.root_url }}"><span class="nn-menu-neon-verre__point" aria-hidden="true"></span><span class="nn-menu-neon-verre__nom">{{ shop.name | escape }}</span></a>
<nav class="nn-menu-neon-verre__nav" aria-label="Menu principal">
<ul class="nn-menu-neon-verre__nav-liste" role="list">
{%- for link in section.settings.menu.links -%}
<li class="nn-menu-neon-verre__nav-item">
{%- if link.links != blank -%}
<details class="nn-menu-neon-verre__nav-sous" data-nn-sous>
<summary class="nn-menu-neon-verre__nav-lien">
<span>{{ link.title | escape }}</span>
<svg class="nn-menu-neon-verre__chevron" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul class="nn-menu-neon-verre__nav-sous-liste" role="list">
{%- for enfant in link.links -%}
<li><a class="nn-menu-neon-verre__nav-sous-lien" href="{{ enfant.url }}"{% if enfant.current %} aria-current="page"{% endif %}>{{ enfant.title | escape }}</a></li>
{%- endfor -%}
<li><a class="nn-menu-neon-verre__nav-sous-lien nn-menu-neon-verre__nav-sous-lien--tout" href="{{ link.url }}">Tout voir : {{ link.title | escape }}</a></li>
</ul>
</details>
{%- else -%}
<a class="nn-menu-neon-verre__nav-lien" href="{{ link.url }}"{% if link.current %} aria-current="page"{% endif %}>{{ link.title | escape }}</a>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
</nav>
<div class="nn-menu-neon-verre__droite">
{%- if section.settings.bouton_texte != blank -%}
<a class="nn-menu-neon-verre__cta" href="{{ section.settings.bouton_lien | default: routes.all_products_collection_url }}">{{ section.settings.bouton_texte | escape }}</a>
{%- endif -%}
<div class="nn-menu-neon-verre__icones">
<a class="nn-menu-neon-verre__icone" href="{{ routes.search_url }}" aria-label="Rechercher"><svg class="nn-menu-neon-verre__ico" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></a>
{%- if section.settings.compte -%}<a class="nn-menu-neon-verre__icone nn-menu-neon-verre__icone--compte" href="{{ routes.account_url }}" aria-label="Mon compte"><svg class="nn-menu-neon-verre__ico" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg></a>{%- endif -%}
<a class="nn-menu-neon-verre__icone nn-menu-neon-verre__panier" href="{{ routes.cart_url }}" aria-label="Panier : {{ cart.item_count }} article{% if cart.item_count > 1 %}s{% endif %}">
<svg class="nn-menu-neon-verre__ico" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8z"/><path d="M9 8V7a3 3 0 0 1 6 0v1"/></svg>
{%- if cart.item_count > 0 -%}<span class="nn-menu-neon-verre__compteur" aria-hidden="true">{{ cart.item_count }}</span>{%- endif -%}
</a>
</div>
</div>
</div>
</div>
{% schema %}
{
"name": "En-tête néon verre dépoli",
"tag": "header",
"class": "nn-section-menu-neon-verre",
"settings": [
{
"type": "link_list",
"id": "menu",
"label": "Menu",
"default": "main-menu"
},
{
"type": "checkbox",
"id": "compte",
"label": "Afficher l’icône du compte client",
"default": true
},
{
"type": "checkbox",
"id": "collant",
"label": "Rester en haut au défilement",
"default": true
},
{
"type": "text",
"id": "bouton_texte",
"label": "Bouton d’appel (vide : masqué)",
"default": "Nouveautés"
},
{
"type": "url",
"id": "bouton_lien",
"label": "Lien du bouton (vide : tous les produits)"
},
{
"type": "header",
"content": "Couleurs"
},
{
"type": "color",
"id": "couleur_fond",
"label": "Fond",
"default": "#0B1220"
},
{
"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 et pastille du panier",
"default": "#2EE6A8"
},
{
"type": "color",
"id": "couleur_texte_bouton",
"label": "Texte du bouton",
"default": "#0B1220"
},
{
"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": "En-tête néon verre dépoli"
}
]
}
{% endschema %}
{% stylesheet %}
.nn-menu-neon-verre {
position: relative;
z-index: 20;
display: block;
padding: var(--nn-mh) 0 var(--nn-mb);
background: var(--nn-fond);
color: var(--nn-texte);
overflow-x: clip;
}
.nn-menu-neon-verre *, .nn-menu-neon-verre *::before, .nn-menu-neon-verre *::after { box-sizing: border-box; }
.nn-menu-neon-verre :where(a, button, summary, input):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 2px; }
.nn-menu-neon-verre summary { list-style: none; cursor: pointer; }
.nn-menu-neon-verre summary::-webkit-details-marker { display: none; }
.nn-menu-neon-verre__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-menu-neon-verre__logo { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.nn-menu-neon-verre__logo-img { display: block; width: var(--nn-logo, 120px); max-width: 100%; height: auto; max-height: 56px; object-fit: contain; object-position: left center; }
.nn-menu-neon-verre__nom { overflow: hidden; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; text-overflow: ellipsis; }
.nn-menu-neon-verre__icones { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nn-menu-neon-verre__icone { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: inherit; text-decoration: none; transition: background-color 0.2s ease; }
@media (hover: hover) { .nn-menu-neon-verre__icone:hover { background: color-mix(in srgb, var(--nn-texte) 8%, transparent); } }
.nn-menu-neon-verre__ico { width: 22px; height: 22px; }
.nn-menu-neon-verre__compteur {
position: absolute;
top: 3px;
right: 1px;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 999px;
background: var(--nn-bouton);
color: var(--nn-texte-bouton);
font-size: 11px;
font-weight: 700;
line-height: 18px;
text-align: center;
animation: nn-menu-neon-verre-compteur 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes nn-menu-neon-verre-compteur { from { transform: scale(0.4); } }
@media (max-width: 380px) { .nn-menu-neon-verre__icone--compte { display: none; } }
.nn-section-menu-neon-verre:has(.nn-menu-neon-verre--collant) { position: sticky; top: 0; z-index: 40; }
.nn-menu-neon-verre {
background: color-mix(in srgb, var(--nn-fond) 78%, transparent);
-webkit-backdrop-filter: blur(14px) saturate(140%);
backdrop-filter: blur(14px) saturate(140%);
}
.nn-menu-neon-verre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--nn-accent), transparent); box-shadow: 0 0 12px var(--nn-accent); opacity: 0.8; }
.nn-menu-neon-verre__barre { display: flex; align-items: center; gap: 12px; max-width: 1280px; min-height: 70px; margin: 0 auto; padding: 8px 16px; }
.nn-menu-neon-verre__logo { gap: 10px; }
.nn-menu-neon-verre__point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nn-accent); box-shadow: 0 0 12px var(--nn-accent), 0 0 24px var(--nn-accent); animation: nn-menu-neon-verre-pouls 2.4s ease-in-out infinite; }
@keyframes nn-menu-neon-verre-pouls { 50% { opacity: 0.5; transform: scale(0.85); } }
.nn-menu-neon-verre__nav { flex: 1 1 auto; min-width: 0; }
.nn-menu-neon-verre__nav-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.nn-menu-neon-verre__nav-item { position: relative; }
.nn-menu-neon-verre__nav-lien {
display: inline-flex;
align-items: center;
gap: 4px;
min-height: 44px;
padding: 8px 12px;
border-radius: 8px;
color: inherit;
font-size: 15px;
font-weight: 500;
text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) { .nn-menu-neon-verre__nav-lien:hover { background: color-mix(in srgb, var(--nn-texte) 7%, transparent); } }
.nn-menu-neon-verre__nav-lien[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--nn-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nn-menu-neon-verre__chevron { width: 16px; height: 16px; transition: transform 0.2s ease; }
.nn-menu-neon-verre__nav-sous[open] > summary .nn-menu-neon-verre__chevron, .nn-menu-neon-verre__mob-sous[open] > summary .nn-menu-neon-verre__chevron { transform: rotate(180deg); }
.nn-menu-neon-verre__nav-sous-liste {
position: absolute;
top: calc(100% + 6px);
left: 0;
z-index: 30;
min-width: 230px;
margin: 0;
padding: 8px;
border: 1px solid color-mix(in srgb, var(--nn-texte) 12%, transparent);
border-radius: 12px;
background: var(--nn-fond);
color: var(--nn-texte);
list-style: none;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
animation: nn-menu-neon-verre-deroule 0.2s ease both;
}
@keyframes nn-menu-neon-verre-deroule { from { transform: translateY(-6px); opacity: 0; } }
.nn-menu-neon-verre__nav-sous-lien { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: inherit; font-size: 15px; text-decoration: none; }
@media (hover: hover) { .nn-menu-neon-verre__nav-sous-lien:hover { background: color-mix(in srgb, var(--nn-texte) 7%, transparent); } }
.nn-menu-neon-verre__nav-sous-lien--tout, .nn-menu-neon-verre__mob-sous-lien--tout { font-weight: 700; }
.nn-menu-neon-verre__nav-liste { justify-content: center; }
.nn-menu-neon-verre__nav-lien { position: relative; }
.nn-menu-neon-verre__nav-lien::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--nn-accent); box-shadow: 0 0 10px var(--nn-accent); transform: scaleX(0); transition: transform 0.25s ease; }
@media (hover: hover) { .nn-menu-neon-verre__nav-lien:hover { background: none; color: var(--nn-accent); } .nn-menu-neon-verre__nav-lien:hover::after { transform: scaleX(1); } }
.nn-menu-neon-verre__nav-sous-liste { background: color-mix(in srgb, var(--nn-fond) 92%, #fff); border-color: color-mix(in srgb, var(--nn-accent) 30%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--nn-accent) 15%, transparent); }
.nn-menu-neon-verre__droite { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nn-menu-neon-verre__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--nn-bouton); color: var(--nn-texte-bouton); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 0 18px color-mix(in srgb, var(--nn-bouton) 55%, transparent); white-space: nowrap; transition: box-shadow 0.25s ease; }
@media (hover: hover) { .nn-menu-neon-verre__cta:hover { box-shadow: 0 0 28px var(--nn-bouton); } }
.nn-menu-neon-verre__compteur { box-shadow: 0 0 10px var(--nn-bouton); }
.nn-menu-neon-verre__tiroir { display: none; }
@media (max-width: 989px) {
.nn-menu-neon-verre__tiroir { display: block; }
}
.nn-menu-neon-verre__burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: inherit; }
.nn-menu-neon-verre__ico-menu, .nn-menu-neon-verre__ico-fermer { grid-area: 1 / 1; width: 24px; height: 24px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nn-menu-neon-verre__ico-fermer { opacity: 0; transform: rotate(-90deg); }
.nn-menu-neon-verre__tiroir[open] .nn-menu-neon-verre__ico-menu { opacity: 0; transform: rotate(90deg); }
.nn-menu-neon-verre__tiroir[open] .nn-menu-neon-verre__ico-fermer { opacity: 1; transform: none; }
.nn-menu-neon-verre__panneau {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 40;
max-height: calc(100vh - 96px);
overflow-y: auto;
padding: 8px 16px 24px;
border-top: 1px solid color-mix(in srgb, var(--nn-texte) 10%, transparent);
background: var(--nn-fond);
color: var(--nn-texte);
box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
animation: nn-menu-neon-verre-panneau 0.25s ease both;
}
@keyframes nn-menu-neon-verre-panneau { from { transform: translateY(-8px); opacity: 0; } }
.nn-menu-neon-verre__mob-liste { margin: 0; padding: 0; list-style: none; }
.nn-menu-neon-verre__mob-item { border-bottom: 1px solid color-mix(in srgb, var(--nn-texte) 10%, transparent); }
.nn-menu-neon-verre__mob-lien { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: inherit; font-size: 17px; font-weight: 600; text-decoration: none; }
.nn-menu-neon-verre__mob-sous-liste { margin: 0 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--nn-accent); list-style: none; }
.nn-menu-neon-verre__mob-sous-lien { display: flex; align-items: center; min-height: 44px; color: inherit; font-size: 16px; text-decoration: none; opacity: 0.88; }
.nn-menu-neon-verre__panneau { background: color-mix(in srgb, var(--nn-fond) 96%, #fff); }
@media (max-width: 989px) {
.nn-menu-neon-verre__nav { display: none; }
.nn-menu-neon-verre__logo { flex: 1 1 auto; }
}
@media (max-width: 520px) { .nn-menu-neon-verre__cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
.nn-menu-neon-verre, .nn-menu-neon-verre *, .nn-menu-neon-verre *::before, .nn-menu-neon-verre *::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.
Prompt à copier
À coller dans Claude ou ChatGPT avec le fichier téléchargé (ou le code copié) : l’assistant t’aide à l’installer et à l’adapter à ta marque.
Tu es un expert des thèmes Shopify Online Store 2.0. Aide-moi à installer puis à adapter à ma marque cet élément gratuit de la bibliothèque NAHNAH AI.
Élément : « En-tête néon verre dépoli » (En-têtes (headers))
Description : En-tête sombre translucide façon verre dépoli, liens soulignés d’un trait néon au survol, bouton d’appel lumineux et menu mobile repliable.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/menu-neon-verre
Fichier : nahnah-menu-neon-verre.liquid (bouton « Télécharger » de la page) ou le code copié avec le bouton « Copier » : je te le joins ou je le colle après ce message.
Emplacement dans le thème : sections/nahnah-menu-neon-verre.liquid (Liquid, puis {% stylesheet %} et {% javascript %}, dans ce seul fichier).
Étapes d’installation :
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-menu-neon-verre ».
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.
Ce que j’attends de toi :
- Guide-moi pas à pas dans Shopify : Boutique en ligne → Thèmes → « … » → Modifier le code → dossier sections → Ajouter une section, puis Personnaliser → Ajouter une section.
- Propose-moi d’adapter les couleurs, les textes et les liens à ma marque : demande d’abord mes couleurs (codes hexadécimaux), mon ton et mes liens.
- Garde le bloc {% schema %} et tous ses réglages (identifiants, types, presets) : je dois pouvoir tout régler ensuite dans l’éditeur de thème.
- Rends-moi le fichier complet modifié, prêt à coller, sans faux avis, fausse urgence ni chiffre inventé.
Si tu as le connecteur NAHNAH AI (MCP), récupère directement le code exact avec l’outil obtenir_code_element (id : menu-neon-verre).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
- Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
- Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « nahnah-menu-neon-verre ».
- Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
- 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 menu-neon-verre 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