← back to NationalPaperHangers

views/public/watch.ejs

147 lines

<%- include('../partials/head', { title }) %>
<%- include('../partials/header') %>

<%
  var CAT_LABELS = {
    hand_painted: 'Hand-painted',
    silk: 'Silk',
    grasscloth: 'Grasscloth',
    mural: 'Mural & scenic',
    metallic_leaf: 'Metallic leaf',
    vinyl: 'Vinyl',
    technique: 'Technique',
    historical: 'Historical',
    brand_showcase: 'Brand showcase',
    installer_at_work: 'Installer at work'
  };
  var orderedCats = ['installer_at_work','technique','hand_painted','silk','grasscloth','mural','metallic_leaf','vinyl','brand_showcase','historical'];
  var totalCount = (counts || []).reduce(function(s, r){ return s + (r.n || 0); }, 0);
%>

<section class="watch-page">
  <header class="watch-head">
    <p class="kicker">Curated · NPH ops-reviewed</p>
    <h1 class="display-sm">Watch professional installations</h1>
    <p class="lede">
      Hand-picked YouTube videos showing how luxury wallcoverings are actually installed —
      manufacturer brand channels, craft educators, and verified installers at work.
      Every video on this page is reviewed by NPH ops before publish; no algorithmic feed,
      no scraped content, no embedded ads we don't control.
    </p>
  </header>

  <% if (totalCount === 0) { %>
    <div class="empty-state" style="margin-top:32px">
      <h3>The library is being curated.</h3>
      <p>NPH ops is reviewing manufacturer channels and educator playlists right now. The first batch goes live shortly — bookmark this page.</p>
      <p class="muted" style="margin-top:16px;font-size:13px">If you're a wallcovering installer or manufacturer with a video to suggest, email <a href="mailto:info@nationalpaperhangers.com">info@nationalpaperhangers.com</a> with the YouTube link and a one-sentence description.</p>
    </div>
  <% } else { %>
    <nav class="watch-tabs" aria-label="Categories">
      <a href="/watch" class="<%= currentCategory ? '' : 'is-current' %>">All <span class="muted">(<%= totalCount %>)</span></a>
      <% orderedCats.forEach(function(c){
        var found = (counts || []).find(function(r){ return r.category === c; });
        if (!found) return; %>
        <a href="/watch?category=<%= c %>" class="<%= currentCategory === c ? 'is-current' : '' %>">
          <%= CAT_LABELS[c] || c %> <span class="muted">(<%= found.n %>)</span>
        </a>
      <% }); %>
    </nav>

    <div class="watch-grid">
      <% videos.forEach(function(v){ %>
        <article class="watch-card watch-platform-<%= v.platform || 'youtube' %>">
          <div class="watch-thumb">
            <%- v.embed_html %>
            <span class="watch-pill"><%= (v.platform || 'youtube').toUpperCase() %></span>
          </div>
          <div class="watch-meta">
            <p class="watch-cat"><%= CAT_LABELS[v.category] || v.category %></p>
            <h3 class="watch-title"><%= v.title %></h3>
            <% if (v.description) { %><p class="watch-desc"><%= v.description %></p><% } %>
            <p class="watch-credit">
              <% if (v.channel_url) { %>
                <a href="<%= v.channel_url %>" target="_blank" rel="noopener nofollow">
                  <%= v.channel_name || (v.platform === 'linkedin' ? 'LinkedIn page' : 'YouTube channel') %> ↗
                </a>
              <% } else if (v.channel_name) { %>
                <%= v.channel_name %>
              <% } %>
              <% if (v.brands && v.brands.length) { %>
                <span class="watch-tag-row">· brands:
                  <% v.brands.forEach(function(b, i){ %><%= i ? ', ' : ' ' %><%= b %><% }); %>
                </span>
              <% } %>
            </p>
            <p class="watch-license"><%= v.license_note %></p>
          </div>
        </article>
      <% }); %>
    </div>

    <% if (typeof industryLinks !== 'undefined' && industryLinks && industryLinks.length) { %>
      <section class="watch-industry">
        <h2 class="section-title">Industry on LinkedIn &amp; beyond</h2>
        <p class="muted" style="margin:-12px 0 18px;font-size:13px">Verified company pages, installer associations, and educator profiles. Click through to follow on the source platform.</p>
        <div class="watch-industry-grid">
          <% industryLinks.forEach(function(l){ %>
            <a class="watch-industry-card platform-<%= l.platform %>" href="<%= l.url %>" target="_blank" rel="noopener nofollow">
              <span class="watch-industry-platform"><%= l.platform.toUpperCase() %></span>
              <strong class="watch-industry-name"><%= l.name %></strong>
              <% if (l.blurb) { %><p class="watch-industry-blurb"><%= l.blurb %></p><% } %>
              <span class="watch-industry-cat"><%= l.category.replace(/_/g, ' ') %></span>
            </a>
          <% }); %>
        </div>
      </section>
    <% } %>

    <p class="watch-foot muted">
      Videos are embedded via YouTube's standard player. Selection is editorial, not paid.
      Notice an issue with a listing? Email <a href="mailto:info@nationalpaperhangers.com">info@nationalpaperhangers.com</a>.
    </p>
  <% } %>
</section>

<%- include('../partials/footer') %>

<style>
  .watch-page { padding: 48px 32px 96px; max-width: 1200px; margin: 0 auto; }
  .watch-head { max-width: 800px; margin-bottom: 32px; }
  .watch-head .lede { margin-top: 12px; }
  .watch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0 0 16px; border-bottom: 1px solid var(--border); }
  .watch-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--fg-muted); border: 1px solid var(--border); }
  .watch-tabs a:hover { color: var(--fg); border-color: var(--border-strong); opacity: 1; }
  .watch-tabs a.is-current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .watch-tabs a .muted { color: inherit; opacity: 0.65; font-size: 11px; margin-left: 2px; }
  .watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 32px; }
  .watch-card { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--bg); transition: border-color 0.15s; }
  .watch-card:hover { border-color: var(--border-strong); }
  .watch-thumb { position: relative; background: #000; border-bottom: 1px solid var(--border); overflow: hidden; aspect-ratio: 16/9; }
  .watch-platform-linkedin .watch-thumb { aspect-ratio: 504/700; background: #f5f1e8; }
  .watch-thumb iframe { width: 100%; height: 100%; display: block; border: 0; }
  .watch-pill { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; padding: 3px 8px; font-size: 10px; letter-spacing: 0.08em; border-radius: 3px; pointer-events: none; }
  .watch-platform-linkedin .watch-pill { background: #0a66c2; }
  .watch-industry { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
  .watch-industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .watch-industry-card { display: block; padding: 18px 20px; border: 1px solid var(--border); background: var(--bg); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
  .watch-industry-card:hover { border-color: var(--border-strong); transform: translateY(-1px); opacity: 1; }
  .watch-industry-platform { display: inline-block; font-size: 10px; letter-spacing: 0.12em; padding: 2px 8px; background: var(--bg-alt); color: var(--fg-muted); border-radius: 999px; margin-bottom: 10px; }
  .watch-industry-card.platform-linkedin .watch-industry-platform { background: #0a66c2; color: #fff; }
  .watch-industry-card.platform-instagram .watch-industry-platform { background: #e4405f; color: #fff; }
  .watch-industry-card.platform-youtube .watch-industry-platform { background: #ff0000; color: #fff; }
  .watch-industry-name { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25; }
  .watch-industry-blurb { margin: 6px 0 8px; font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
  .watch-industry-cat { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
  .watch-meta { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
  .watch-cat { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass, #b8860b); }
  .watch-title { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25; }
  .watch-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg); }
  .watch-credit { margin: 4px 0 0; font-size: 12px; color: var(--fg-muted); }
  .watch-credit a { color: var(--fg-muted); border-bottom: 1px solid var(--border); }
  .watch-credit a:hover { color: var(--fg); }
  .watch-tag-row { display: inline; }
  .watch-license { margin: 4px 0 0; font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; }
  .watch-foot { margin-top: 48px; font-size: 12px; }
</style>