[object Object]

← back to Museumwallpaper

hero/ideas: single big full-bleed hero (remove 2x2 four-square grid + hero-4grid.js/json + inert CSS), collapse Ideas to one rail

9d95d78d583e9674ea28132cd3995da829beaa1e · 2026-06-01 14:16:30 -0700 · Steve Abrams

Files touched

Diff

commit 9d95d78d583e9674ea28132cd3995da829beaa1e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Jun 1 14:16:30 2026 -0700

    hero/ideas: single big full-bleed hero (remove 2x2 four-square grid + hero-4grid.js/json + inert CSS), collapse Ideas to one rail
---
 public/hero-4grid.js   | 112 ------------------------------------------------
 public/hero-4grid.json | 113 -------------------------------------------------
 public/index.html      |  10 ++---
 3 files changed, 3 insertions(+), 232 deletions(-)

diff --git a/public/hero-4grid.js b/public/hero-4grid.js
deleted file mode 100644
index 54a9cbb..0000000
--- a/public/hero-4grid.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * hero-4grid.js — universal 2×2 rotating hero for DW-family sites.
- *
- * What it does:
- *   - Fetches /data/hero-4grid.json on load
- *   - Switches the hero to 4-square mode (data-hero-mode="four-square")
- *   - Paints 4 cells with the configured images
- *   - Auto-cycles each cell every N seconds, rotating through the pool
- *   - Applies object-fit: cover; object-position: center 12% to ENFORCE
- *     the "never show image with header" rule
- *
- * Drop-in:  <script src="/hero-4grid.js" defer></script>
- *
- * Per-site override: set window.Hero4GridConfig = { url, autocycle } before load.
- */
-(function () {
-  'use strict';
-  if (window.__hero4GridLoaded) return;
-  window.__hero4GridLoaded = true;
-
-  var CFG = window.Hero4GridConfig || {};
-  var URL = CFG.url || '/hero-4grid.json';
-
-  function inject(cellEls, grid) {
-    // Switch hero mode
-    document.documentElement.dataset.heroMode = 'four-square';
-    var cinema = document.querySelector('.cinema');
-    if (!cinema) return;
-    // Build .cinema-grid if absent
-    var gridEl = cinema.querySelector('.cinema-grid');
-    if (!gridEl) {
-      gridEl = document.createElement('div');
-      gridEl.className = 'cinema-grid';
-      cinema.appendChild(gridEl);
-    }
-    gridEl.innerHTML = '';
-    for (var i = 0; i < 4; i++) {
-      var cell = document.createElement('div');
-      cell.className = 'cell hero4-cell';
-      cell.dataset.idx = i;
-      gridEl.appendChild(cell);
-    }
-    // Anti-header crop CSS — applied via inline so it ALWAYS wins
-    var style = document.createElement('style');
-    style.id = 'hero4-crop';
-    // Self-contained: inject the 2×2 LAYOUT too (not just the crop), so the grid
-    // works on any site that has the <script> tag even if its index.html never
-    // shipped .cinema-grid CSS. Hides the single .cinema-bg only once four-square
-    // mode is actually active (set in inject()), so a fetch failure keeps the
-    // static hero. Appended last → wins over any per-site .cinema-grid at equal
-    // specificity; identical values so sites that DO define it are unaffected.
-    style.textContent =
-      '.cinema-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:0;z-index:0;}' +
-      '.hero4-cell{width:100%;height:100%;background-size:cover !important;background-position:center 12% !important;background-repeat:no-repeat;transition:opacity 600ms ease;}' +
-      '.hero4-cell.swap-out{opacity:0;}' +
-      '[data-hero-mode="four-square"] .cinema-bg{display:none !important;}';
-    document.head.appendChild(style);
-
-    paint(grid);
-    if (grid.rotation_pool && grid.rotation_pool.length > 4) {
-      startRotation(grid);
-    }
-  }
-
-  function paint(grid) {
-    var cells = document.querySelectorAll('.hero4-cell');
-    for (var i = 0; i < cells.length; i++) {
-      var c = grid.cells[i];
-      if (c && c.image_url) {
-        cells[i].style.backgroundImage = "url('" + c.image_url + "')";
-        cells[i].title = c.title || '';
-      }
-    }
-  }
-
-  function startRotation(grid) {
-    var sec = Number(grid.autocycle_seconds) || 6;
-    var pool = grid.rotation_pool.slice();
-    // Index per cell — start with the next image after the initial 4
-    var nextIdx = [4 % pool.length, 5 % pool.length, 6 % pool.length, 7 % pool.length];
-    var cellIdx = 0;
-    setInterval(function () {
-      if (document.hidden) return; // pause when tab hidden
-      var cells = document.querySelectorAll('.hero4-cell');
-      var cell = cells[cellIdx];
-      if (!cell) return;
-      var next = pool[nextIdx[cellIdx] % pool.length];
-      if (!next || !next.image_url) { cellIdx = (cellIdx + 1) % 4; return; }
-      // Preload then swap
-      var pre = new Image();
-      pre.onload = function () {
-        cell.classList.add('swap-out');
-        setTimeout(function () {
-          cell.style.backgroundImage = "url('" + next.image_url + "')";
-          cell.title = next.title || '';
-          cell.classList.remove('swap-out');
-        }, 600);
-      };
-      pre.src = next.image_url;
-      nextIdx[cellIdx] = (nextIdx[cellIdx] + 4) % pool.length;
-      cellIdx = (cellIdx + 1) % 4;
-    }, sec * 1000);
-  }
-
-  fetch(URL, { credentials: 'same-origin' })
-    .then(function (r) { return r.ok ? r.json() : null; })
-    .then(function (grid) {
-      if (!grid || !grid.cells || !Array.isArray(grid.cells)) return;
-      inject(null, grid);
-    })
-    .catch(function (e) { console.warn('[hero-4grid] fetch failed:', e); });
-})();
diff --git a/public/hero-4grid.json b/public/hero-4grid.json
deleted file mode 100644
index 0fdf719..0000000
--- a/public/hero-4grid.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
-  "cells": [
-    {
-      "kind": "room",
-      "sku": "eur-80171-ncw4156-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513498288179.jpg?v=1775522555",
-      "title": "Montrose 06 - Antique Gold Wallcovering | Nina Campbell"
-    },
-    {
-      "kind": "pattern",
-      "sku": "dwkk-127806",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/W0129_03_CAC_30d1c173-50c1-4883-8aad-6a6d2f4b827c.jpg?v=1753321614",
-      "title": "Emerald Forest Wp - Midnight Multi By Clarke And Clarke | Clarke & Clarke Botanical Wonders Wallcovering |Animal/Insects Novelty Wallcovering Print"
-    },
-    {
-      "kind": "room",
-      "sku": "eur-80212-ncw4186-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513500057651.jpg?v=1775522783",
-      "title": "Khitan 09 | Nina Campbell Europe"
-    },
-    {
-      "kind": "pattern",
-      "sku": "puget-s-pineapple-scr-7913",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/products/a93e317a808fe9f2decf3b6ed0840547.jpg?v=1572309083",
-      "title": "Puget's Pineapple"
-    }
-  ],
-  "rotation_pool": [
-    {
-      "sku": "eur-80171-ncw4156-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513498288179.jpg?v=1775522555",
-      "title": "Montrose 06 - Antique Gold Wallcovering | Nina Campbell"
-    },
-    {
-      "sku": "dwkk-127806",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/W0129_03_CAC_30d1c173-50c1-4883-8aad-6a6d2f4b827c.jpg?v=1753321614",
-      "title": "Emerald Forest Wp - Midnight Multi By Clarke And Clarke | Clarke & Clarke Botanical Wonders Wallcovering |Animal/Insects Novelty Wallcovering Print"
-    },
-    {
-      "sku": "eur-80212-ncw4186-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513500057651.jpg?v=1775522783",
-      "title": "Khitan 09 | Nina Campbell Europe"
-    },
-    {
-      "sku": "puget-s-pineapple-scr-7913",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/products/a93e317a808fe9f2decf3b6ed0840547.jpg?v=1572309083",
-      "title": "Puget's Pineapple"
-    },
-    {
-      "sku": "eur-80348-ncw4350-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513505038387.jpg?v=1775523537",
-      "title": "Les Indiennes Paisley Damask 05 - Blue Wallcovering | Nina Campbell"
-    },
-    {
-      "sku": "dwkk-g587e5f45",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/W3930_106_4bdd548a-6fa8-4951-a6ee-d949daf9d7cf.jpg?v=1753322304",
-      "title": "W3930 - 106 White | Kravet Design | Ronald Redding Arts & Crafts | Botanical & Floral Damask Wallcovering Print"
-    },
-    {
-      "sku": "rocheforte-wallpaper-xq6-68160",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/xq6-68160-sample-rocheforte-hollywood-wallcoverings.jpg?v=1775730867",
-      "title": "Rocheforte | Hollywood Wallcoverings"
-    },
-    {
-      "sku": "wolfgordonwallcovering_dwwg_metm-571-jpg",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/metm-571.jpg?v=1762300912",
-      "title": "Metamorphosis - Antique Gold | Wolf Gordon Wallcoverings"
-    },
-    {
-      "sku": "rocheforte-wallpaper-xq6-68158",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/xq6-68158-sample-rocheforte-hollywood-wallcoverings.jpg?v=1775730833",
-      "title": "Rocheforte | Hollywood Wallcoverings"
-    },
-    {
-      "sku": "eur-80349-ncw4350-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513505071155.jpg?v=1775523544",
-      "title": "Les Indiennes Paisley Damask 06 - Black Wallcovering | Nina Campbell"
-    },
-    {
-      "sku": "dwkk-129747",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/W3924_35_a46b0e96-7261-4840-8d43-a0869dcdc6ae.jpg?v=1753322355",
-      "title": "W3924 - 35 Ivory | Kravet Design | Ronald Redding Arts & Crafts | Botanical & Floral Wallcovering Print"
-    },
-    {
-      "sku": "eur-80292-ncw4277-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/nina_crop_7513502482483.jpg?v=1775523199",
-      "title": "Meredith 02 - Neutral Gray Wallcovering | Nina Campbell"
-    },
-    {
-      "sku": "wolfgordonwallcovering_dwwg_alc-4816-jpg",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/alc-4816.jpg?v=1762284375",
-      "title": "Alchemy - Antique Gold | Wolf Gordon Wallcoverings"
-    },
-    {
-      "sku": "derby-paintable-anaglytpa-original-wallpaper-gga-82660",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/products/52584dd643e8836d8c8caef0d8435a1d.jpg?v=1750790445",
-      "title": "Derby Paintable Anaglytpa Original | Jeffrey Stevens"
-    },
-    {
-      "sku": "dwwm-14366-william-morris-designer-wallcoverings-los-angeles",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/files/fruit-morris-and-co--wallpaper-216819-image01_d48138bc-9e35-4dee-bc44-d6784a6e34d7.jpg?v=1741111392",
-      "title": "| William Morris"
-    },
-    {
-      "sku": "dwss-72548",
-      "image_url": "https://cdn.shopify.com/s/files/1/0015/4117/7456/products/595-21_image1_2d30a63a-def3-4a51-9adc-d74fe32137fd.jpg?v=1646104617",
-      "title": "Fredsfaglar grey Sample Wallcovering | Sandberg"
-    }
-  ],
-  "autocycle_seconds": 6,
-  "updated_at": "2026-05-14T15:38:53.328Z",
-  "generated_by": "dw-4grid-fanout.js"
-}
\ No newline at end of file
diff --git a/public/index.html b/public/index.html
index 6392a96..4b80ada 100644
--- a/public/index.html
+++ b/public/index.html
@@ -210,7 +210,7 @@ textarea:focus-visible,
 /* Never-show-images-with-headers rule (2026-05-14): every hero image
    is cropped to center 12% from the top to defeat vendor watermarks /
    scraped-site chrome / banner overlays. */
-.cinema-bg, .hero4-cell, .cell { background-position: center 12% !important; }
+.cinema-bg, .cell { background-position: center 12% !important; }
 .card img, .product img { object-position: center 12% !important; }
 </style>
 <!-- Meta Pixel — INERT until set-fb-pixel.sh is run (does NOT load fbevents.js or hit Meta until flipped) -->
@@ -404,10 +404,7 @@ textarea:focus-visible,
     <h2 class="rail-title">New this week</h2>
     <div class="rail" id="railNewest"></div>
   </div>
-  <div class="rail-block">
-    <h2 class="rail-title">Curated picks</h2>
-    <div class="rail" id="railCurated"></div>
-  </div>
+  
 </section>
 
 <section class="section" id="shop">
@@ -1259,8 +1256,7 @@ async function renderRailSections(){
 
 <!-- corner-nav disabled (UL-hamburger rebuild) -->
 <script src="/sku-redact.js" defer></script>
-<!-- hero4-fix: activate 2x2 hero (self-contained; was commented placeholder) -->
-<script src="/hero-4grid.js" defer></script>
+
 
 <!-- Big Red customer chat — lower-left, woman-avatar, vendor-redacted retail persona. -->
 <script data-bigred-widget src="https://chat.designerwallcoverings.com/widget.js"

← 64cd0a5 museumwallpaper: re-curate to textures-only (150 = 75 Type I  ·  back to Museumwallpaper  ·  header name → domain name 'Museum Wallpaper' (remove odd bra 1272eb8 →