jb-nft-gallery-ui

0
1
Source

Interactive gallery for browsing and managing NFTs from Juicebox 721 hooks. Displays tier information, owned NFTs, and minting interfaces.

Install

mkdir -p .claude/skills/jb-nft-gallery-ui && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6752" && unzip -o skill.zip -d .claude/skills/jb-nft-gallery-ui && rm skill.zip

Installs to .claude/skills/jb-nft-gallery-ui

About this skill

Juicebox V5 NFT Gallery UI

Interactive gallery for browsing and managing NFTs from Juicebox 721 hooks. Displays tier information, owned NFTs, and minting interfaces.

Overview

This skill generates vanilla JS/HTML interfaces for:

  • Browsing all NFT tiers for a project
  • Viewing owned NFTs by wallet
  • Minting NFTs from available tiers
  • Tier metadata and supply tracking
  • NFT transfer functionality

NFT Gallery UI Template

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Juicebox NFT Gallery</title>
  <link rel="stylesheet" href="/shared/styles.css">
  <style>
    /* NFT-specific styles */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }
    .nft-card {
      background: var(--bg-secondary);
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .nft-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .nft-image {
      width: 100%;
      aspect-ratio: 1;
      background: var(--bg-tertiary);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .nft-image img { width: 100%; height: 100%; object-fit: cover; }
    .nft-image .placeholder { font-size: 48px; color: #444; }
    .tier-badge, .supply-badge, .owned-badge {
      position: absolute;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }
    .tier-badge { top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: var(--jb-yellow); }
    .supply-badge { top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: var(--success); }
    .supply-badge.sold-out { color: var(--error); }
    .owned-badge { bottom: 10px; left: 10px; background: var(--success); color: #000; }
    .nft-info { padding: 15px; }
    .nft-name { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
    .nft-description {
      font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
      line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    .nft-meta {
      display: flex; justify-content: space-between; align-items: center;
      padding-top: 10px; border-top: 1px solid var(--border-color);
    }
    .nft-price { font-size: 1.1rem; font-weight: 700; color: var(--jb-yellow); }
    .nft-votes { font-size: 12px; color: var(--text-muted); }
    .mint-btn {
      width: 100%; padding: 12px; background: var(--jb-yellow); color: #000;
      border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 10px;
    }
    .mint-btn:hover { background: var(--jb-yellow-hover); }
    .mint-btn:disabled { background: var(--bg-tertiary); color: var(--text-muted); cursor: not-allowed; }
    .category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
    .category-chip {
      padding: 6px 14px; background: var(--bg-tertiary); border-radius: 20px;
      font-size: 13px; cursor: pointer; color: var(--text-muted);
    }
    .category-chip.active { background: var(--jb-yellow); color: #000; }
    .modal {
      display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.9); z-index: 1000; padding: 20px; overflow-y: auto;
    }
    .modal.visible { display: flex; justify-content: center; align-items: flex-start; }
    .modal-content { background: var(--bg-secondary); border-radius: 12px; max-width: 600px; width: 100%; margin-top: 40px; }
    .modal-image { width: 100%; aspect-ratio: 1; background: var(--bg-tertiary); }
    .modal-image img { width: 100%; height: 100%; object-fit: contain; }
    .modal-info { padding: 20px; }
    .modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
    .modal-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
    .close-btn { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; }
    .modal-description { color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
    .modal-attributes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .attribute { background: var(--bg-tertiary); padding: 12px; border-radius: 8px; }
    .attribute-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
    .attribute-value { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }
    .action-buttons { display: flex; gap: 10px; }
    .action-btn { flex: 1; padding: 14px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; }
    .action-btn.primary { background: var(--jb-yellow); color: #000; }
    .action-btn.secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
  </style>
</head>
<body>
  <div class="container">
    <h1>NFT Gallery</h1>

    <div class="card" style="margin-bottom: 20px;">
      <div class="input-row">
        <input type="text" id="hookAddress" placeholder="721 Hook Address (0x...)">
        <select id="chainSelect">
          <option value="1">Ethereum</option>
          <option value="10">Optimism</option>
          <option value="8453">Base</option>
          <option value="42161">Arbitrum</option>
          <option value="11155111">Sepolia</option>
        </select>
        <button class="btn" onclick="loadGallery()">Load Gallery</button>
      </div>
    </div>

    <div class="card" id="walletSection" style="display: none; margin-bottom: 20px;">
      <div style="display: flex; justify-content: space-between; align-items: center;">
        <div>
          <span id="walletStatus">Not connected</span>
          <span class="code" id="walletAddress" style="margin-left: 10px;"></span>
        </div>
        <button class="btn-secondary" id="connectBtn" onclick="connectWallet()">Connect Wallet</button>
      </div>
    </div>

    <div class="stats" id="statsBar" style="display: none; margin-bottom: 20px;">
      <div class="stat-card">
        <div class="stat-value" id="totalTiers">-</div>
        <div class="stat-label">Total Tiers</div>
      </div>
      <div class="stat-card">
        <div class="stat-value" id="totalMinted">-</div>
        <div class="stat-label">Total Minted</div>
      </div>
      <div class="stat-card">
        <div class="stat-value" id="totalSupply">-</div>
        <div class="stat-label">Max Supply</div>
      </div>
      <div class="stat-card">
        <div class="stat-value" id="floorPrice">-</div>
        <div class="stat-label">Floor Price</div>
      </div>
    </div>

    <div class="tabs" id="tabsContainer" style="display: none;">
      <div class="tab active" data-tab="tiers" onclick="switchTab('tiers')">All Tiers</div>
      <div class="tab" data-tab="owned" onclick="switchTab('owned')">My NFTs</div>
    </div>

    <div class="category-filter" id="categoryFilter"></div>

    <div class="filter-bar" id="filterBar" style="display: none; margin-bottom: 20px;">
      <button class="tab active" data-filter="all" onclick="filterTiers('all')">All</button>
      <button class="tab" data-filter="available" onclick="filterTiers('available')">Available</button>
      <button class="tab" data-filter="sold-out" onclick="filterTiers('sold-out')">Sold Out</button>
    </div>

    <div id="galleryContainer"></div>
  </div>

  <div class="modal" id="nftModal">
    <div class="modal-content">
      <div class="modal-image" id="modalImage"></div>
      <div class="modal-info">
        <div class="modal-header">
          <div>
            <div class="modal-title" id="modalTitle">-</div>
            <span class="code" id="modalTokenId"></span>
          </div>
          <button class="close-btn" onclick="closeModal()">&times;</button>
        </div>
        <div class="modal-description" id="modalDescription"></div>
        <div class="modal-attributes" id="modalAttributes"></div>
        <div class="action-buttons" id="modalActions"></div>
      </div>
    </div>
  </div>

  <script type="module">
    import { createPublicClient, http, getContract, formatEther, isAddress, createWalletClient, custom } from 'https://esm.sh/viem';
    import { mainnet, optimism, base, arbitrum, sepolia } from 'https://esm.sh/viem/chains';
    import { CHAIN_CONFIGS, truncateAddress } from '/shared/wallet-utils.js';

    const CHAINS = { 1: mainnet, 10: optimism, 8453: base, 42161: arbitrum, 11155111: sepolia };

    const HOOK_ABI = [
      { name: 'STORE', type: 'function', stateMutability: 'view', inputs: [], outputs: [{ type: 'address' }] },
      { name: 'PROJECT_ID', type: 'function', stateMutability: 'view', inputs: [], outputs: [{ type: 'uint256' }] },
      { name: 'name', type: 'function', stateMutability: 'view', inputs: [], outputs: [{ type: 'string' }] },
      { name: 'symbol', type: 'function', stateMutability: 'view', inputs: [], outputs: [{ type: 'string' }] },
      { name: 'tokenURI', type: 'function', stateMutability: 'view', inputs: [{ name: 'tokenId', type: 'uint256' }], outputs: [{ type: 'string' }] },
      { name: 'balanceOf', type: 'function', stateMutability: 'view', inputs: [{ name: 'owner', type: 'address' }], outputs: [{ type: 'uint256' }] },
      { name: 'tokenOfOwnerByIndex', type: 'function', stateMutability: 'view', inputs: [{ name: 'owner', type: 'address' }, { name: 'index', type: 'uint256' }], outputs: [{ type: 'uint256' }] },
      { name: 'ownerOf', type: 'function', stateMutability: 'view', inputs: [{ name: 'tokenId', type: 'uint256' }], outputs: [{ type: 'address' }] },
      { name: 'totalSupply', type: 'function', stateMutability: 'view', inputs: [], outputs: [{ type: 'uint256' }] },
      { name: 'transferF

---

*Content truncated.*

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,6871,430

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,2711,336

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,5441,153

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,359809

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,266730

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,495685