🌅 HérosGratuit · 0 NahnahPar NAHNAH AI
Héros Horizon lunaire
Dégradé nuit vers gris clair, quadrillage discret en haut, titre massif à reflet métallique et arc de planète lumineux qui se lève en bas de la bannière, sous les boutons.
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-hero-horizon.liquid (Liquid, CSS et JS inclus).
{%- comment -%} NAHNAH AI · Héros Horizon lunaire (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-hero-horizon" 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-hero-horizon__cadre nn-hero-horizon--h-{{ section.settings.hauteur }}">
{%- if section.settings.grille -%}<span class="nn-hero-horizon__grille" aria-hidden="true"></span>{%- endif -%}
<div class="nn-hero-horizon__contenu">
{%- if section.settings.badge != blank -%}
<a class="nn-hero-horizon__badge" href="{{ section.settings.badge_lien | default: routes.all_products_collection_url }}"><span>{{ section.settings.badge | escape }}</span><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6l6 6-6 6"/></svg></a>
{%- endif -%}
{%- if section.settings.titre != blank -%}<h2 class="nn-hero-horizon__titre"><span class="nn-hero-horizon__metal">{{ section.settings.titre }}</span></h2>{%- endif -%}
{%- if section.settings.texte != blank -%}<div class="nn-hero-horizon__texte">{{ section.settings.texte }}</div>{%- endif -%}
{%- if section.settings.bouton_texte != blank -%}
<div class="nn-hero-horizon__boutons">
{%- if section.settings.bouton_texte != blank -%}
<a class="nn-hero-horizon__bouton" href="{{ section.settings.bouton_lien | default: routes.all_products_collection_url }}">{{ section.settings.bouton_texte | escape }}</a>
{%- endif -%}
</div>
{%- endif -%}
</div>
<div class="nn-hero-horizon__planete{% if section.settings.lueur %} nn-hero-horizon__planete--lueur{% endif %}" aria-hidden="true"></div>
</div>
</div>
{% schema %}
{
"name": "Héros Horizon lunaire",
"tag": "section",
"class": "nn-section-hero-horizon",
"settings": [
{
"type": "text",
"id": "badge",
"label": "Badge (vide : masqué)",
"default": "Nouvelle saison"
},
{
"type": "url",
"id": "badge_lien",
"label": "Lien du badge (vide : tous les produits)"
},
{
"type": "inline_richtext",
"id": "titre",
"label": "Titre",
"default": "Le confort qui change tout"
},
{
"type": "richtext",
"id": "texte",
"label": "Texte",
"default": "<p>Des pièces durables, pensées pour ton quotidien et livrées avec soin, partout.</p>"
},
{
"type": "header",
"content": "Boutons"
},
{
"type": "text",
"id": "bouton_texte",
"label": "Texte du bouton (vide : masqué)",
"default": "Explorer maintenant"
},
{
"type": "url",
"id": "bouton_lien",
"label": "Lien du bouton (vide : tous les produits)"
},
{
"type": "checkbox",
"id": "grille",
"label": "Quadrillage en haut",
"default": true
},
{
"type": "checkbox",
"id": "lueur",
"label": "Lueur de l’horizon",
"default": true
},
{
"type": "select",
"id": "hauteur",
"label": "Hauteur",
"options": [
{
"value": "petite",
"label": "Petite"
},
{
"value": "moyenne",
"label": "Moyenne"
},
{
"value": "grande",
"label": "Grande"
},
{
"value": "ecran",
"label": "Plein écran"
}
],
"default": "grande"
},
{
"type": "header",
"content": "Couleurs"
},
{
"type": "color",
"id": "couleur_fond",
"label": "Fond",
"default": "#0A0A0A"
},
{
"type": "color",
"id": "couleur_texte",
"label": "Texte",
"default": "#FFFFFF"
},
{
"type": "color",
"id": "couleur_accent",
"label": "Accent",
"default": "#9AA0A6"
},
{
"type": "color",
"id": "couleur_bouton",
"label": "Bouton",
"default": "#2A2A2E"
},
{
"type": "color",
"id": "couleur_texte_bouton",
"label": "Texte du bouton",
"default": "#FFFFFF"
},
{
"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 Horizon lunaire"
}
]
}
{% endschema %}
{% stylesheet %}
.nn-hero-horizon {
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-horizon *, .nn-hero-horizon *::before, .nn-hero-horizon *::after { box-sizing: border-box; }
.nn-hero-horizon :where(a, button):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 3px; }
.nn-hero-horizon__surtitre { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nn-accent); }
.nn-hero-horizon__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-horizon__texte { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; opacity: 0.88; max-width: 560px; }
.nn-hero-horizon__texte p { margin: 0 0 0.6em; }
.nn-hero-horizon__boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.nn-hero-horizon__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-horizon__bouton--second { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) {
.nn-hero-horizon__bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--nn-bouton) 35%, transparent); }
.nn-hero-horizon__bouton--second:hover { box-shadow: inset 0 0 0 2px currentColor, 0 12px 26px rgba(0, 0, 0, 0.12); }
}
.nn-hero-horizon__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-hero-horizon__cadre {
--nn-vis: clamp(120px, 20vw, 240px);
position: relative;
display: flex;
flex-direction: column;
align-items: center;
isolation: isolate;
overflow: hidden;
padding: clamp(56px, 8vw, 96px) 16px calc(var(--nn-vis) + 40px);
text-align: center;
background: linear-gradient(180deg, var(--nn-fond) 0%, var(--nn-fond) 22%, color-mix(in srgb, var(--nn-accent) 50%, var(--nn-fond)) 62%, var(--nn-accent) 100%);
}
.nn-hero-horizon--h-petite { min-height: 380px; }
.nn-hero-horizon--h-moyenne { min-height: clamp(440px, 62vh, 620px); }
.nn-hero-horizon--h-grande { min-height: clamp(520px, 80vh, 780px); }
.nn-hero-horizon--h-ecran { min-height: 100vh; min-height: 100svh; }
.nn-hero-horizon__grille { position: absolute; inset: 0 0 45%; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, color-mix(in srgb, var(--nn-texte) 7%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--nn-texte) 7%, transparent) 1px, transparent 1px); background-size: 88px 88px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.nn-hero-horizon__contenu { position: relative; z-index: 1; width: 100%; max-width: 980px; }
.nn-hero-horizon__contenu > * { animation: nn-hero-horizon-entree 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nn-hero-horizon__contenu > :nth-child(2) { animation-delay: 0.12s; }
.nn-hero-horizon__contenu > :nth-child(3) { animation-delay: 0.24s; }
.nn-hero-horizon__contenu > :nth-child(4) { animation-delay: 0.36s; }
@keyframes nn-hero-horizon-entree { from { opacity: 0; transform: translateY(22px); } }
.nn-hero-horizon__badge {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
min-height: 36px;
margin: 0 0 26px;
padding: 6px 16px;
border: 1px solid color-mix(in srgb, var(--nn-texte) 18%, transparent);
border-radius: 999px;
background: color-mix(in srgb, var(--nn-texte) 6%, transparent);
color: color-mix(in srgb, var(--nn-texte) 78%, transparent);
font-size: 13px;
letter-spacing: 0.06em;
text-decoration: none;
text-transform: uppercase;
}
.nn-hero-horizon__badge svg { flex: none; width: 14px; height: 14px; }
.nn-hero-horizon__titre { font-size: clamp(40px, 8vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.nn-hero-horizon__metal { background: linear-gradient(180deg, var(--nn-texte) 25%, color-mix(in srgb, var(--nn-texte) 55%, var(--nn-accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nn-hero-horizon__texte { margin-inline: auto; color: color-mix(in srgb, var(--nn-texte) 72%, transparent); opacity: 1; }
.nn-hero-horizon__boutons { justify-content: center; }
.nn-hero-horizon__bouton { min-width: 200px; border-radius: 12px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--nn-texte) 65%, transparent), inset 0 1px 0 color-mix(in srgb, var(--nn-texte) 25%, transparent), 0 12px 30px rgba(0, 0, 0, 0.35); }
.nn-hero-horizon__planete { position: absolute; left: 50%; bottom: 0; z-index: 0; width: max(1100px, 160%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nn-fond) 70%, var(--nn-accent)) 0%, var(--nn-fond) 30%); pointer-events: none; transform: translate(-50%, calc(100% - var(--nn-vis))); animation: nn-hero-horizon-leve 1.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes nn-hero-horizon-leve { from { transform: translate(-50%, 100%); } }
.nn-hero-horizon__planete--lueur { box-shadow: 0 -2px 0 color-mix(in srgb, var(--nn-texte) 85%, transparent), inset 0 26px 50px -24px color-mix(in srgb, var(--nn-texte) 45%, transparent); }
.nn-hero-horizon__planete--lueur::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 -12px 70px 8px color-mix(in srgb, var(--nn-texte) 55%, transparent); animation: nn-hero-horizon-lueur 5s ease-in-out infinite; }
@keyframes nn-hero-horizon-lueur { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
.nn-hero-horizon, .nn-hero-horizon *, .nn-hero-horizon *::before, .nn-hero-horizon *::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 : « Héros Horizon lunaire » (Héros)
Description : Dégradé nuit vers gris clair, quadrillage discret en haut, titre massif à reflet métallique et arc de planète lumineux qui se lève en bas de la bannière, sous les boutons.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/hero-horizon
Fichier : nahnah-hero-horizon.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-hero-horizon.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-hero-horizon ».
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 : hero-horizon).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-hero-horizon ».
- 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 hero-horizon 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