🌅 HérosGratuit · 0 NahnahPar NAHNAH AI
Héros liste d’attente
Avant un lancement : badge « bientôt », date annoncée, image du produit et inscription par e-mail à la liste d’attente (client Shopify avec un tag).
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-liste-attente.liquid (Liquid, CSS et JS inclus).
{%- comment -%} NAHNAH AI · Héros liste d’attente (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-hero-liste-attente" 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-liste-attente__grille">
<div class="nn-hero-liste-attente__contenu">
{%- if section.settings.badge != blank -%}<p class="nn-hero-liste-attente__badge"><span class="nn-hero-liste-attente__point" aria-hidden="true"></span>{{ section.settings.badge | escape }}</p>{%- endif -%}
{%- if section.settings.titre != blank -%}<h2 class="nn-hero-liste-attente__titre">{{ section.settings.titre }}</h2>{%- endif -%}
{%- if section.settings.texte != blank -%}<div class="nn-hero-liste-attente__texte">{{ section.settings.texte }}</div>{%- endif -%}
{%- if section.settings.date != blank -%}<p class="nn-hero-liste-attente__date">{{ section.settings.date | escape }}</p>{%- endif -%}
{%- assign id_formulaire = 'nn-hero-liste-attente-' | append: section.id -%}
{%- form 'customer', id: id_formulaire, class: 'nn-hero-liste-attente__form' -%}
<input type="hidden" name="contact[tags]" value="liste-attente">
<label class="nn-hero-liste-attente__vh" for="NnChamp-{{ section.id }}">Adresse e-mail</label>
<div class="nn-hero-liste-attente__groupe">
<input class="nn-hero-liste-attente__champ" id="NnChamp-{{ section.id }}" type="email" name="contact[email]" required autocomplete="email" placeholder="{{ section.settings.placeholder | escape }}">
<button class="nn-hero-liste-attente__bouton" type="submit">{{ section.settings.bouton_texte | escape }}</button>
</div>
{%- if form.posted_successfully? -%}
<p class="nn-hero-liste-attente__retour" role="status">{{ section.settings.message_succes | escape }}</p>
{%- elsif form.errors -%}
<p class="nn-hero-liste-attente__retour nn-hero-liste-attente__retour--erreur" role="alert">Vérifie ton adresse e-mail puis réessaie.</p>
{%- endif -%}
{%- if section.settings.mention != blank -%}<p class="nn-hero-liste-attente__mention">{{ section.settings.mention | escape }}</p>{%- endif -%}
{%- endform -%}
</div>
<div class="nn-hero-liste-attente__media">
<span class="nn-hero-liste-attente__anneau" aria-hidden="true"></span>
{%- if section.settings.image != blank -%}
{{ section.settings.image | image_url: width: 1600 | image_tag: class: 'nn-hero-liste-attente__img', sizes: '(min-width: 900px) 40vw, 90vw', widths: '600, 900, 1200, 1600', loading: 'eager' }}
{%- else -%}
{{ 'product-2' | placeholder_svg_tag: 'nn-hero-liste-attente__img nn-hero-liste-attente__img--vide' }}
{%- endif -%}
</div>
</div>
</div>
{% schema %}
{
"name": "Héros liste d’attente",
"tag": "section",
"class": "nn-section-hero-liste-attente",
"settings": [
{
"type": "image_picker",
"id": "image",
"label": "Image du produit"
},
{
"type": "text",
"id": "badge",
"label": "Badge (vide : masqué)",
"default": "Bientôt disponible"
},
{
"type": "inline_richtext",
"id": "titre",
"label": "Titre",
"default": "Sois le premier à le découvrir"
},
{
"type": "richtext",
"id": "texte",
"label": "Texte",
"default": "<p>Inscris-toi pour être prévenu par e-mail dès l’ouverture des commandes.</p>"
},
{
"type": "text",
"id": "date",
"label": "Date annoncée (vide : masquée)",
"default": "Lancement prochainement"
},
{
"type": "header",
"content": "Inscription"
},
{
"type": "paragraph",
"content": "Les inscrits sont enregistrés comme clients Shopify avec le tag « liste-attente » (Clients → filtrer par tag)."
},
{
"type": "text",
"id": "placeholder",
"label": "Texte indicatif du champ",
"default": "ton@email.fr"
},
{
"type": "text",
"id": "bouton_texte",
"label": "Texte du bouton",
"default": "Me prévenir"
},
{
"type": "text",
"id": "message_succes",
"label": "Message après inscription",
"default": "C’est noté : tu seras prévenu dès le lancement."
},
{
"type": "text",
"id": "mention",
"label": "Mention sous le formulaire (vide : masquée)",
"default": "Un seul e-mail au lancement, désinscription en un clic."
},
{
"type": "header",
"content": "Couleurs"
},
{
"type": "color",
"id": "couleur_fond",
"label": "Fond",
"default": "#0C0C10"
},
{
"type": "color",
"id": "couleur_texte",
"label": "Texte",
"default": "#F5F3FF"
},
{
"type": "color",
"id": "couleur_accent",
"label": "Accent",
"default": "#9B7BFF"
},
{
"type": "color",
"id": "couleur_bouton",
"label": "Bouton",
"default": "#9B7BFF"
},
{
"type": "color",
"id": "couleur_texte_bouton",
"label": "Texte du bouton",
"default": "#0C0C10"
},
{
"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 liste d’attente"
}
]
}
{% endschema %}
{% stylesheet %}
.nn-hero-liste-attente {
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-liste-attente *, .nn-hero-liste-attente *::before, .nn-hero-liste-attente *::after { box-sizing: border-box; }
.nn-hero-liste-attente :where(a, button):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 3px; }
.nn-hero-liste-attente__surtitre { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nn-accent); }
.nn-hero-liste-attente__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-liste-attente__texte { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; opacity: 0.88; max-width: 560px; }
.nn-hero-liste-attente__texte p { margin: 0 0 0.6em; }
.nn-hero-liste-attente__boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.nn-hero-liste-attente__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-liste-attente__bouton--second { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) {
.nn-hero-liste-attente__bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--nn-bouton) 35%, transparent); }
.nn-hero-liste-attente__bouton--second:hover { box-shadow: inset 0 0 0 2px currentColor, 0 12px 26px rgba(0, 0, 0, 0.12); }
}
.nn-hero-liste-attente__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-hero-liste-attente__grille { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) 16px; }
@media (min-width: 900px) { .nn-hero-liste-attente__grille { grid-template-columns: 1.1fr 0.9fr; padding-inline: 32px; } }
.nn-hero-liste-attente__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--nn-accent) 50%, transparent); border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nn-hero-liste-attente__point { width: 8px; height: 8px; border-radius: 50%; background: var(--nn-accent); animation: nn-hero-liste-attente-pouls 1.8s ease-in-out infinite; }
@keyframes nn-hero-liste-attente-pouls { 50% { transform: scale(0.6); opacity: 0.4; } }
.nn-hero-liste-attente__date { margin: 0 0 20px; font-size: 15px; font-weight: 700; color: var(--nn-accent); }
.nn-hero-liste-attente__form { margin: 0; }
.nn-hero-liste-attente__groupe { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 520px; }
.nn-hero-liste-attente__champ {
flex: 1 1 220px;
min-width: 0;
min-height: 52px;
padding: 12px 18px;
border: 1px solid color-mix(in srgb, var(--nn-texte) 30%, transparent);
border-radius: 999px;
background: color-mix(in srgb, var(--nn-fond) 85%, var(--nn-texte));
color: var(--nn-texte);
font: inherit;
font-size: 16px;
}
.nn-hero-liste-attente__champ::placeholder { color: color-mix(in srgb, var(--nn-texte) 60%, transparent); }
.nn-hero-liste-attente__champ:focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 2px; }
.nn-hero-liste-attente__groupe .nn-hero-liste-attente__bouton { flex: 0 1 auto; min-height: 52px; border: 0; border-radius: 999px; font-family: inherit; cursor: pointer; }
@media (max-width: 419px) { .nn-hero-liste-attente__groupe .nn-hero-liste-attente__bouton { flex: 1 1 100%; } }
.nn-hero-liste-attente__retour { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--nn-accent); }
.nn-hero-liste-attente__retour--erreur { color: #FF8A8A; }
.nn-hero-liste-attente__mention { margin: 12px 0 0; font-size: 13px; opacity: 0.7; }
.nn-hero-liste-attente__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.nn-hero-liste-attente__anneau { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, var(--nn-accent), transparent 30%, var(--nn-accent) 60%, transparent 85%, var(--nn-accent)); opacity: 0.45; filter: blur(2px); animation: nn-hero-liste-attente-tourne 14s linear infinite; }
.nn-hero-liste-attente__anneau::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--nn-fond); }
@keyframes nn-hero-liste-attente-tourne { to { transform: rotate(360deg); } }
.nn-hero-liste-attente__img { position: relative; display: block; width: 76%; height: 76%; object-fit: cover; border-radius: 50%; filter: saturate(0.9); }
@media (prefers-reduced-motion: reduce) {
.nn-hero-liste-attente, .nn-hero-liste-attente *, .nn-hero-liste-attente *::before, .nn-hero-liste-attente *::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 liste d’attente » (Héros)
Description : Avant un lancement : badge « bientôt », date annoncée, image du produit et inscription par e-mail à la liste d’attente (client Shopify avec un tag).
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/hero-liste-attente
Fichier : nahnah-hero-liste-attente.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-liste-attente.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-liste-attente ».
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-liste-attente).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-liste-attente ».
- 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-liste-attente 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