Aller au contenu

🔣 IcônesGratuit · 0 NahnahPar NAHNAH AI

Icônes maison & déco

10 icônes maison au trait (maison, canapé, lampe, bougie, plante, lit, ampoule…) en grille animable.

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-icones-maison.liquid (Liquid, CSS et JS inclus).

{%- comment -%} NAHNAH AI · Icônes maison & déco (bibliothèque Sections & effets) : 10 icônes au trait, animables {%- endcomment -%}
<div class="nn-icones-maison nn-icones-maison--{{ section.settings.alignement }}" data-nn-animation="{{ section.settings.animation }}" data-nn-mode="{{ section.settings.mode }}" 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-icone: {{ section.settings.couleur_icone }}; --nn-taille: {{ section.settings.taille }}px; --nn-colonnes: {{ section.settings.colonnes }};">
  {%- if section.settings.titre != blank or section.settings.texte != blank -%}
    <div class="nn-icones-maison__entete">
      {%- if section.settings.titre != blank -%}<h2 class="nn-icones-maison__titre">{{ section.settings.titre }}</h2>{%- endif -%}
      {%- if section.settings.texte != blank -%}<p class="nn-icones-maison__intro">{{ section.settings.texte | escape }}</p>{%- endif -%}
    </div>
  {%- endif -%}
  <ul class="nn-icones-maison__grille" role="list">
    {%- for block in section.blocks -%}
      <li class="nn-icones-maison__carte" style="--nn-i: {{ forloop.index0 }};" {{ block.shopify_attributes }}>
        <span class="nn-icones-maison__pastille nn-icones-maison__pastille--{{ section.settings.forme }}">
          <svg class="nn-icones-maison__svg" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
        {%- case block.settings.icone -%}
          {%- when 'maison' -%}
            <path pathLength="1" d="M3.5 11 12 4l8.5 7"/><path pathLength="1" d="M5.5 9.5V20h13V9.5"/><path pathLength="1" d="M10 20v-5.5h4V20"/>
          {%- when 'canape' -%}
            <path pathLength="1" d="M5 11V8a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3"/><path pathLength="1" d="M3 13a2 2 0 0 1 4 0v1.5h10V13a2 2 0 0 1 4 0v4.5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/><path pathLength="1" d="M5.5 18.5v2M18.5 18.5v2"/>
          {%- when 'lampe' -%}
            <path pathLength="1" d="M8 3.5h8l3 7.5H5z"/><path pathLength="1" d="M12 11v8M8 20.5h8"/>
          {%- when 'bougie' -%}
            <rect pathLength="1" x="8" y="10" width="8" height="11" rx="1"/><path pathLength="1" d="M12 10V8"/><path pathLength="1" d="M12 7.5c-1.3-1-1.3-2.6 0-4 1.3 1.4 1.3 3 0 4z"/>
          {%- when 'plante' -%}
            <path pathLength="1" d="M6.5 13.5h11l-1.3 6.8a1 1 0 0 1-1 .7H8.8a1 1 0 0 1-1-.7z"/><path pathLength="1" d="M12 13.5V8"/><path pathLength="1" d="M12 9.5C12 6 9.5 4 6 4c0 3.5 2.5 5.5 6 5.5zM12 8c0-2.8 2-4.5 5-4.5 0 2.8-2 4.5-5 4.5z"/>
          {%- when 'lit' -%}
            <path pathLength="1" d="M3 5.5v14M3 15.5h18v4M21 15.5v-3a2.5 2.5 0 0 0-2.5-2.5H10.5v5.5"/><circle pathLength="1" cx="6.8" cy="12.3" r="1.8"/>
          {%- when 'cles' -%}
            <circle pathLength="1" cx="8" cy="15.5" r="4.5"/><path pathLength="1" d="m11.2 12.3 8.3-8.3M16.5 7l2.5 2.5M14 9.5l2 2"/>
          {%- when 'cadre' -%}
            <rect pathLength="1" x="4" y="4" width="16" height="16" rx="1.5"/><path pathLength="1" d="m4 16 4.5-4.5 4 4 2.5-2.5L20 18"/><circle pathLength="1" cx="15" cy="8.5" r="1.5"/>
          {%- when 'ampoule' -%}
            <path pathLength="1" d="M9.5 18h5M10.5 21h3"/><path pathLength="1" d="M8.5 14.5a6 6 0 1 1 7 0c-.7.5-1 1.2-1 2v1h-5v-1c0-.8-.3-1.5-1-2z"/>
          {%- when 'porte' -%}
            <path pathLength="1" d="M5 21V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v17M3 21h18"/><path pathLength="1" d="M15 12h.01"/>
        {%- endcase -%}
          </svg>
        </span>
        {%- if block.settings.titre != blank -%}
          <h3 class="nn-icones-maison__nom">
            {%- if block.settings.lien != blank -%}
              <a class="nn-icones-maison__lien" href="{{ block.settings.lien }}">{{ block.settings.titre | escape }}</a>
            {%- else -%}
              {{ block.settings.titre | escape }}
            {%- endif -%}
          </h3>
        {%- endif -%}
        {%- if block.settings.texte != blank -%}<p class="nn-icones-maison__texte">{{ block.settings.texte | escape }}</p>{%- endif -%}
      </li>
    {%- endfor -%}
  </ul>
</div>

{% schema %}
{
  "name": "Icônes maison & déco",
  "tag": "section",
  "class": "nn-section-icones-maison",
  "max_blocks": 24,
  "settings": [
    {
      "type": "inline_richtext",
      "id": "titre",
      "label": "Titre",
      "default": "Pour chaque pièce de la maison"
    },
    {
      "type": "textarea",
      "id": "texte",
      "label": "Texte d’introduction",
      "default": "Des objets choisis pour un intérieur chaleureux."
    },
    {
      "type": "select",
      "id": "alignement",
      "label": "Alignement",
      "options": [
        {
          "value": "centre",
          "label": "Centré"
        },
        {
          "value": "gauche",
          "label": "À gauche"
        }
      ],
      "default": "centre"
    },
    {
      "type": "range",
      "id": "colonnes",
      "label": "Colonnes sur ordinateur",
      "min": 2,
      "max": 6,
      "step": 1,
      "default": 5
    },
    {
      "type": "header",
      "content": "Icônes"
    },
    {
      "type": "range",
      "id": "taille",
      "label": "Taille des icônes",
      "min": 24,
      "max": 64,
      "step": 4,
      "default": 36,
      "unit": "px"
    },
    {
      "type": "select",
      "id": "forme",
      "label": "Fond de l’icône",
      "options": [
        {
          "value": "cercle",
          "label": "Cercle"
        },
        {
          "value": "carre",
          "label": "Carré arrondi"
        },
        {
          "value": "aucune",
          "label": "Aucun"
        }
      ],
      "default": "cercle"
    },
    {
      "type": "select",
      "id": "animation",
      "label": "Animation",
      "options": [
        {
          "value": "aucune",
          "label": "Aucune"
        },
        {
          "value": "rebond",
          "label": "Rebond"
        },
        {
          "value": "rotation",
          "label": "Rotation"
        },
        {
          "value": "pulsation",
          "label": "Pulsation"
        },
        {
          "value": "balancement",
          "label": "Balancement"
        },
        {
          "value": "trace",
          "label": "Tracé dessiné"
        }
      ],
      "default": "trace"
    },
    {
      "type": "select",
      "id": "mode",
      "label": "Déclenchement",
      "options": [
        {
          "value": "survol",
          "label": "Au survol (souris)"
        },
        {
          "value": "continu",
          "label": "En continu"
        }
      ],
      "default": "survol"
    },
    {
      "type": "paragraph",
      "content": "Les animations sont coupées automatiquement si le visiteur a demandé à réduire les animations."
    },
    {
      "type": "header",
      "content": "Couleurs"
    },
    {
      "type": "color",
      "id": "couleur_fond",
      "label": "Fond",
      "default": "#FFFDF8"
    },
    {
      "type": "color",
      "id": "couleur_texte",
      "label": "Texte",
      "default": "#2B2118"
    },
    {
      "type": "color",
      "id": "couleur_accent",
      "label": "Accent",
      "default": "#B8935A"
    },
    {
      "type": "color",
      "id": "couleur_icone",
      "label": "Icône",
      "default": "#8A6A3A"
    },
    {
      "type": "header",
      "content": "Espacement"
    },
    {
      "type": "range",
      "id": "marge_haut",
      "label": "Marge haute",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 48
    },
    {
      "type": "range",
      "id": "marge_bas",
      "label": "Marge basse",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 48
    }
  ],
  "blocks": [
    {
      "type": "icone",
      "name": "Icône",
      "settings": [
        {
          "type": "select",
          "id": "icone",
          "label": "Icône",
          "options": [
            {
              "value": "maison",
              "label": "Maison"
            },
            {
              "value": "canape",
              "label": "Salon"
            },
            {
              "value": "lampe",
              "label": "Luminaires"
            },
            {
              "value": "bougie",
              "label": "Bougies"
            },
            {
              "value": "plante",
              "label": "Plantes"
            },
            {
              "value": "lit",
              "label": "Chambre"
            },
            {
              "value": "cles",
              "label": "Nouveau chez-soi"
            },
            {
              "value": "cadre",
              "label": "Décoration murale"
            },
            {
              "value": "ampoule",
              "label": "Idées déco"
            },
            {
              "value": "porte",
              "label": "Entrée"
            }
          ],
          "default": "maison"
        },
        {
          "type": "text",
          "id": "titre",
          "label": "Titre",
          "default": "Maison"
        },
        {
          "type": "textarea",
          "id": "texte",
          "label": "Texte",
          "default": "Pour toute la maison"
        },
        {
          "type": "url",
          "id": "lien",
          "label": "Lien (facultatif)"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "Icônes maison & déco",
      "blocks": [
        {
          "type": "icone",
          "settings": {
            "icone": "maison",
            "titre": "Maison",
            "texte": "Pour toute la maison"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "canape",
            "titre": "Salon",
            "texte": "Le confort au salon"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "lampe",
            "titre": "Luminaires",
            "texte": "Une lumière douce le soir"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "bougie",
            "titre": "Bougies",
            "texte": "Une ambiance chaleureuse"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "plante",
            "titre": "Plantes",
            "texte": "Un coin de verdure"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "lit",
            "titre": "Chambre",
            "texte": "Pour des nuits paisibles"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "cles",
            "titre": "Nouveau chez-soi",
            "texte": "Idéal pour une crémaillère"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "cadre",
            "titre": "Décoration murale",
            "texte": "Habille tes murs"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "ampoule",
            "titre": "Idées déco",
            "texte": "De l’inspiration pour chaque pièce"
          }
        },
        {
          "type": "icone",
          "settings": {
            "icone": "porte",
            "titre": "Entrée",
            "texte": "Soigne la première impression"
          }
        }
      ]
    }
  ]
}
{% endschema %}

{% stylesheet %}
.nn-icones-maison {
  padding: var(--nn-mh) 16px var(--nn-mb);
  background: var(--nn-fond);
  color: var(--nn-texte);
}
.nn-icones-maison__entete { max-width: 640px; margin: 0 auto 28px; }
.nn-icones-maison--centre .nn-icones-maison__entete { text-align: center; }
.nn-icones-maison__titre { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; }
.nn-icones-maison__intro { margin: 0; opacity: 0.8; font-size: 16px; line-height: 1.5; }
.nn-icones-maison__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 750px) { .nn-icones-maison__grille { grid-template-columns: repeat(var(--nn-colonnes), minmax(0, 1fr)); gap: 30px 20px; } }
.nn-icones-maison__carte { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.nn-icones-maison--gauche .nn-icones-maison__carte { align-items: flex-start; text-align: start; }
.nn-icones-maison__pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--nn-taille) * 1.9);
  height: calc(var(--nn-taille) * 1.9);
  margin-bottom: 12px;
  color: var(--nn-icone);
}
.nn-icones-maison__pastille--cercle { border-radius: 50%; background: color-mix(in srgb, var(--nn-accent) 18%, transparent); }
.nn-icones-maison__pastille--carre { border-radius: 28%; background: color-mix(in srgb, var(--nn-accent) 18%, transparent); }
.nn-icones-maison__pastille--aucune { width: auto; height: auto; }
.nn-icones-maison__svg { display: block; width: var(--nn-taille); height: var(--nn-taille); transform-origin: 50% 50%; }
.nn-icones-maison__nom { margin: 0 0 4px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.nn-icones-maison__texte { margin: 0; font-size: 14px; line-height: 1.45; opacity: 0.75; overflow-wrap: anywhere; }
.nn-icones-maison__lien { color: inherit; text-decoration: none; }
.nn-icones-maison__lien::after { content: ""; position: absolute; inset: 0; }
.nn-icones-maison__carte:has(.nn-icones-maison__lien) { position: relative; border-radius: 12px; }
.nn-icones-maison__lien:hover { text-decoration: underline; }
.nn-icones-maison__lien:focus-visible { outline: none; }
.nn-icones-maison__carte:has(.nn-icones-maison__lien:focus-visible) { outline: 3px solid var(--nn-accent); outline-offset: 6px; }
@keyframes nn-icones-maison-rebond { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-18%); } 55% { transform: translateY(3%); } 75% { transform: translateY(-5%); } }
@keyframes nn-icones-maison-rotation { to { transform: rotate(1turn); } }
@keyframes nn-icones-maison-pulsation { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes nn-icones-maison-balancement { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes nn-icones-maison-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nn-icones-maison-trace-boucle { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
.nn-icones-maison[data-nn-mode="continu"][data-nn-animation="rebond"] .nn-icones-maison__svg { animation: nn-icones-maison-rebond 1.8s ease-in-out infinite; animation-delay: calc(var(--nn-i) * 120ms); }
.nn-icones-maison[data-nn-mode="continu"][data-nn-animation="rotation"] .nn-icones-maison__svg { animation: nn-icones-maison-rotation 6s linear infinite; }
.nn-icones-maison[data-nn-mode="continu"][data-nn-animation="pulsation"] .nn-icones-maison__svg { animation: nn-icones-maison-pulsation 2.2s ease-in-out infinite; animation-delay: calc(var(--nn-i) * 120ms); }
.nn-icones-maison[data-nn-mode="continu"][data-nn-animation="balancement"] .nn-icones-maison__svg { animation: nn-icones-maison-balancement 2.4s ease-in-out infinite; animation-delay: calc(var(--nn-i) * 120ms); }
.nn-icones-maison[data-nn-mode="continu"][data-nn-animation="trace"] .nn-icones-maison__svg > * { stroke-dasharray: 1; animation: nn-icones-maison-trace-boucle 3.2s ease-in-out infinite; animation-delay: calc(var(--nn-i) * 160ms); }
@media (hover: hover) {
  .nn-icones-maison[data-nn-mode="survol"][data-nn-animation="rebond"] .nn-icones-maison__carte:hover .nn-icones-maison__svg { animation: nn-icones-maison-rebond 0.8s ease-out; }
  .nn-icones-maison[data-nn-mode="survol"][data-nn-animation="rotation"] .nn-icones-maison__carte:hover .nn-icones-maison__svg { animation: nn-icones-maison-rotation 0.7s ease-in-out; }
  .nn-icones-maison[data-nn-mode="survol"][data-nn-animation="pulsation"] .nn-icones-maison__carte:hover .nn-icones-maison__svg { animation: nn-icones-maison-pulsation 0.9s ease-in-out infinite; }
  .nn-icones-maison[data-nn-mode="survol"][data-nn-animation="balancement"] .nn-icones-maison__carte:hover .nn-icones-maison__svg { animation: nn-icones-maison-balancement 0.7s ease-in-out; }
  .nn-icones-maison[data-nn-mode="survol"][data-nn-animation="trace"] .nn-icones-maison__carte:hover .nn-icones-maison__svg > * { stroke-dasharray: 1; animation: nn-icones-maison-trace 0.9s ease-out; }
}
.nn-icones-maison[data-nn-mode="survol"][data-nn-animation="trace"] .nn-icones-maison__carte:focus-within .nn-icones-maison__svg > * { stroke-dasharray: 1; animation: nn-icones-maison-trace 0.9s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .nn-icones-maison *, .nn-icones-maison *::before, .nn-icones-maison *::after {
    animation: none !important;
    transition: none !important;
  }
}
{% endstylesheet %}
Télécharger le fichier .liquid

Les 10 icônes, une par une

  • Maison
  • Salon
  • Luminaires
  • Bougies
  • Plantes
  • Chambre
  • Nouveau chez-soi
  • Décoration murale
  • Idées déco
  • Entrée

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 : « Icônes maison & déco » (Icônes)
Description : 10 icônes maison au trait (maison, canapé, lampe, bougie, plante, lit, ampoule…) en grille animable.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/icones-maison
Fichier : nahnah-icones-maison.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-icones-maison.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-icones-maison ».
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 : icones-maison).

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-icones-maison ».
  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 icones-maison 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