Aller au contenu

🧱 Pieds de pageGratuit · 0 NahnahPar NAHNAH AI

Pied de page nom géant

Le nom de la boutique en lettres géantes en bas de page, avec menus, newsletter compacte et un bouton « Retour en haut » qui remonte en douceur.

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-footer-grand-nom.liquid (Liquid, CSS et JS inclus).

{%- comment -%} NAHNAH AI · Pied de page nom géant (bibliothèque Sections & effets) {%- endcomment -%}
<nn-footer-grand-nom class="nn-footer-grand-nom nn-footer-grand-nom--tuiles" 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-footer-grand-nom__int">
    <div class="nn-footer-grand-nom__haut">
      <nav class="nn-footer-grand-nom__menus" aria-label="Liens du pied de page">
        <ul class="nn-footer-grand-nom__liens" role="list">
        {%- for link in section.settings.menu_boutique.links -%}
          <li><a href="{{ link.url }}"{% if link.current %} aria-current="page"{% endif %}>{{ link.title | escape }}</a></li>
        {%- endfor -%}
      </ul>
        <ul class="nn-footer-grand-nom__liens" role="list">
        {%- for link in section.settings.menu.links -%}
          <li><a href="{{ link.url }}"{% if link.current %} aria-current="page"{% endif %}>{{ link.title | escape }}</a></li>
        {%- endfor -%}
      </ul>
      </nav>
      {%- if section.settings.news_titre != blank -%}
        <div class="nn-footer-grand-nom__news">
          <h2 class="nn-footer-grand-nom__titre">{{ section.settings.news_titre | escape }}</h2>
          {%- form 'customer', class: 'nn-footer-grand-nom__form' -%}
        <input type="hidden" name="contact[tags]" value="newsletter">
        <label class="nn-footer-grand-nom__vh" for="NnNewsGrandNom-{{ section.id }}">Adresse e-mail</label>
        <div class="nn-footer-grand-nom__groupe">
          <input class="nn-footer-grand-nom__champ" id="NnNewsGrandNom-{{ section.id }}" type="email" name="contact[email]" required autocomplete="email" placeholder="ton@email.fr">
          <button class="nn-footer-grand-nom__envoyer" type="submit">OK</button>
        </div>
        {%- if form.posted_successfully? -%}
          <p class="nn-footer-grand-nom__retour" role="status">Merci, ton inscription est bien enregistrée.</p>
        {%- elsif form.errors -%}
          <p class="nn-footer-grand-nom__retour nn-footer-grand-nom__retour--erreur" role="alert">Vérifie ton adresse e-mail puis réessaie.</p>
        {%- endif -%}
        <p class="nn-footer-grand-nom__rgpd">Désinscription possible à tout moment depuis chaque e-mail.</p>
      {%- endform -%}
        </div>
      {%- endif -%}
    </div>
    <p class="nn-footer-grand-nom__geant" aria-hidden="true">{{ shop.name | escape }}</p>
    <div class="nn-footer-grand-nom__bas">
      <p class="nn-footer-grand-nom__copyright">© {{ 'now' | date: '%Y' }} {{ shop.name | escape }}{% if section.settings.mentions != blank %} · {{ section.settings.mentions | escape }}{% endif %}</p>
      {%- if section.settings.politiques and shop.policies.size > 0 -%}
      <ul class="nn-footer-grand-nom__politiques" role="list">
        {%- for politique in shop.policies -%}
          <li><a href="{{ politique.url }}">{{ politique.title | escape }}</a></li>
        {%- endfor -%}
      </ul>
    {%- endif -%}
      {%- if section.settings.paiement -%}
      <ul class="nn-footer-grand-nom__paiement" role="list" aria-label="Moyens de paiement acceptés">
        {%- for type in shop.enabled_payment_types -%}
          <li>{{ type | payment_type_svg_tag: class: 'nn-footer-grand-nom__carte' }}</li>
        {%- endfor -%}
      </ul>
    {%- endif -%}
      {%- if section.settings.retour_haut -%}
        <button type="button" class="nn-footer-grand-nom__haut-bouton" data-nn-haut>Retour en haut<svg class="nn-footer-grand-nom__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="M12 19V5M6 11l6-6 6 6"/></svg></button>
      {%- endif -%}
    </div>
  </div>
</nn-footer-grand-nom>

{% schema %}
{
  "name": "Pied de page nom géant",
  "tag": "footer",
  "class": "nn-section-footer-grand-nom",
  "settings": [
    {
      "type": "link_list",
      "id": "menu_boutique",
      "label": "Premier menu",
      "default": "main-menu"
    },
    {
      "type": "link_list",
      "id": "menu",
      "label": "Second menu",
      "default": "footer"
    },
    {
      "type": "text",
      "id": "news_titre",
      "label": "Titre de la newsletter (vide : masquée)",
      "default": "Reçois nos nouveautés"
    },
    {
      "type": "checkbox",
      "id": "retour_haut",
      "label": "Bouton « Retour en haut »",
      "default": true
    },
    {
      "type": "header",
      "content": "Bas de page"
    },
    {
      "type": "checkbox",
      "id": "paiement",
      "label": "Afficher les logos de paiement",
      "default": true
    },
    {
      "type": "checkbox",
      "id": "politiques",
      "label": "Afficher les liens des politiques (CGV, retours…)",
      "default": false
    },
    {
      "type": "text",
      "id": "mentions",
      "label": "Mention après le copyright (vide : masquée)",
      "default": "Tous droits réservés"
    },
    {
      "type": "header",
      "content": "Couleurs"
    },
    {
      "type": "color",
      "id": "couleur_fond",
      "label": "Fond",
      "default": "#0E0E10"
    },
    {
      "type": "color",
      "id": "couleur_texte",
      "label": "Texte",
      "default": "#EDEDED"
    },
    {
      "type": "color",
      "id": "couleur_accent",
      "label": "Accent",
      "default": "#FF6B3D"
    },
    {
      "type": "color",
      "id": "couleur_bouton",
      "label": "Bouton",
      "default": "#FF6B3D"
    },
    {
      "type": "color",
      "id": "couleur_texte_bouton",
      "label": "Texte du bouton",
      "default": "#0E0E10"
    },
    {
      "type": "header",
      "content": "Espacement"
    },
    {
      "type": "range",
      "id": "marge_haut",
      "label": "Marge haute",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 64
    },
    {
      "type": "range",
      "id": "marge_bas",
      "label": "Marge basse",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 24
    }
  ],
  "presets": [
    {
      "name": "Pied de page nom géant"
    }
  ]
}
{% endschema %}

{% stylesheet %}
.nn-footer-grand-nom {
  position: relative;
  display: block;
  padding: var(--nn-mh) 0 var(--nn-mb);
  background: var(--nn-fond);
  color: var(--nn-texte);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}
.nn-footer-grand-nom *, .nn-footer-grand-nom *::before, .nn-footer-grand-nom *::after { box-sizing: border-box; }
.nn-footer-grand-nom a { color: inherit; }
.nn-footer-grand-nom :where(a, button, summary, input):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 2px; }
.nn-footer-grand-nom summary { list-style: none; cursor: pointer; }
.nn-footer-grand-nom summary::-webkit-details-marker { display: none; }
.nn-footer-grand-nom__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-footer-grand-nom__int { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 750px) { .nn-footer-grand-nom__int { padding-inline: 32px; } }
.nn-footer-grand-nom__titre { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nn-footer-grand-nom__liens, .nn-footer-grand-nom__politiques { margin: 0; padding: 0; list-style: none; }
.nn-footer-grand-nom__liens a, .nn-footer-grand-nom__politiques a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; opacity: 0.82; transition: opacity 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .nn-footer-grand-nom__liens a:hover, .nn-footer-grand-nom__politiques a:hover { opacity: 1; color: var(--nn-accent); } }
.nn-footer-grand-nom__liens a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nn-footer-grand-nom__politiques { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 13px; }
.nn-footer-grand-nom__reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nn-footer-grand-nom__reseau { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--nn-texte) 22%, transparent); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
@media (hover: hover) { .nn-footer-grand-nom__reseau:hover { border-color: var(--nn-accent); color: var(--nn-accent); transform: translateY(-2px); } }
.nn-footer-grand-nom__externe { width: 14px; height: 14px; }
.nn-footer-grand-nom__paiement { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nn-footer-grand-nom__carte { display: block; width: 38px; height: 24px; }
.nn-footer-grand-nom--tuiles .nn-footer-grand-nom__paiement li { padding: 3px; border-radius: 6px; background: #fff; line-height: 0; }
.nn-footer-grand-nom__copyright { margin: 0; font-size: 13px; opacity: 0.75; }
.nn-footer-grand-nom__form { margin: 0; }
.nn-footer-grand-nom__groupe { display: flex; flex-wrap: wrap; gap: 8px; }
.nn-footer-grand-nom__champ { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--nn-texte) 25%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--nn-texte) 4%, var(--nn-fond)); color: inherit; font: inherit; font-size: 16px; }
.nn-footer-grand-nom__champ::placeholder { color: inherit; opacity: 0.55; }
.nn-footer-grand-nom__champ:focus { outline: none; border-color: var(--nn-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nn-accent) 25%, transparent); }
.nn-footer-grand-nom__envoyer { flex: 0 0 auto; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--nn-bouton); color: var(--nn-texte-bouton); font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) { .nn-footer-grand-nom__envoyer:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--nn-bouton) 35%, transparent); } }
.nn-footer-grand-nom__retour { margin: 10px 0 0; font-weight: 600; color: var(--nn-accent); }
.nn-footer-grand-nom__retour--erreur { color: #E5484D; }
.nn-footer-grand-nom__rgpd { margin: 8px 0 0; font-size: 12px; opacity: 0.65; }
.nn-footer-grand-nom__haut { display: grid; gap: 32px; }
@media (min-width: 750px) { .nn-footer-grand-nom__haut { grid-template-columns: 1fr minmax(280px, 420px); align-items: start; } }
.nn-footer-grand-nom__menus { display: flex; flex-wrap: wrap; gap: 8px 64px; }
.nn-footer-grand-nom__liens a { font-size: 18px; font-weight: 600; }
.nn-footer-grand-nom__titre { color: var(--nn-accent); }
.nn-footer-grand-nom__champ { border-radius: 0; border-width: 0 0 2px; background: transparent; padding-left: 0; }
.nn-footer-grand-nom__champ:focus { box-shadow: none; }
.nn-footer-grand-nom__envoyer { border-radius: 0; }
.nn-footer-grand-nom__geant {
  margin: clamp(32px, 6vw, 72px) 0 16px;
  font-size: clamp(44px, 13vw, 200px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, var(--nn-texte) 30%, color-mix(in srgb, var(--nn-texte) 10%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.nn-footer-grand-nom__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--nn-texte) 15%, transparent); }
.nn-footer-grand-nom__haut-bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--nn-texte) 30%, transparent); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.nn-footer-grand-nom__haut-bouton .nn-footer-grand-nom__ico { width: 18px; height: 18px; transition: transform 0.25s ease; }
@media (hover: hover) { .nn-footer-grand-nom__haut-bouton:hover { border-color: var(--nn-accent); color: var(--nn-accent); } .nn-footer-grand-nom__haut-bouton:hover .nn-footer-grand-nom__ico { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .nn-footer-grand-nom, .nn-footer-grand-nom *, .nn-footer-grand-nom *::before, .nn-footer-grand-nom *::after {
    animation: none !important;
    transition: none !important;
  }
}
{% endstylesheet %}

{% javascript %}
if (!customElements.get("nn-footer-grand-nom")) {
  // « Retour en haut » : défilement doux (immédiat si animations réduites), puis focus sur le contenu principal
  customElements.define("nn-footer-grand-nom", class extends HTMLElement {
    connectedCallback() {
      if (this._pret) return;
      this._pret = true;
      var bouton = this.querySelector("[data-nn-haut]");
      if (!bouton) return;
      bouton.addEventListener("click", function () {
        var reduit = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
        window.scrollTo({ top: 0, behavior: reduit ? "auto" : "smooth" });
        var cible = document.querySelector("main, [role='main']");
        if (cible) {
          if (!cible.hasAttribute("tabindex")) cible.setAttribute("tabindex", "-1");
          cible.focus({ preventScroll: true });
        }
      });
    }
  });
}
{% endjavascript %}
Télécharger le fichier .liquid

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 : « Pied de page nom géant » (Pieds de page)
Description : Le nom de la boutique en lettres géantes en bas de page, avec menus, newsletter compacte et un bouton « Retour en haut » qui remonte en douceur.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/footer-grand-nom
Fichier : nahnah-footer-grand-nom.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-footer-grand-nom.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-footer-grand-nom ».
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 : footer-grand-nom).

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-footer-grand-nom ».
  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 footer-grand-nom 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