Web Pages Hard
NFT / Digital Art Marketplace
A dark, high-contrast NFT marketplace landing page with a hero auction card, glowing grid of featured drops, artist profiles, and a live bid counter.
Open in Lab
MCP
gsap scrolltrigger lenis css vanilla-js
Targets: JS HTML
Code
/* โโ Reset & Base โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #080b14;
--bg2: #0d1117;
--accent: #7c3aed;
--accent2: #38bdf8;
--pink: #f472b6;
--text: #e2e8f0;
--muted: #64748b;
--border: rgba(255, 255, 255, 0.07);
--surface: rgba(255, 255, 255, 0.04);
}
html {
scroll-behavior: smooth;
}
body {
background: var(--bg);
color: var(--text);
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
/* โโ Nav โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.nav {
position: sticky;
top: 0;
z-index: 200;
display: flex;
align-items: center;
gap: 20px;
padding: 14px 40px;
background: rgba(8, 11, 20, 0.88);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
display: flex;
align-items: center;
gap: 10px;
font-family: "Space Grotesk", sans-serif;
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.1em;
color: var(--text);
text-decoration: none;
flex-shrink: 0;
}
.logo-prism {
display: flex;
align-items: center;
}
.nav-search {
flex: 1;
max-width: 360px;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
border-radius: 8px;
background: var(--surface);
border: 1px solid var(--border);
color: var(--muted);
}
.search-input {
flex: 1;
background: none;
border: none;
outline: none;
color: var(--text);
font-size: 0.85rem;
font-family: inherit;
}
.search-input::placeholder {
color: var(--muted);
}
.nav-actions {
display: flex;
align-items: center;
gap: 16px;
margin-left: auto;
}
.nav-link {
font-size: 0.85rem;
color: var(--muted);
text-decoration: none;
transition: color 0.2s;
}
.nav-link:hover {
color: var(--text);
}
.btn-wallet {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 8px;
background: var(--accent);
border: none;
color: #fff;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: opacity 0.2s;
}
.btn-wallet:hover {
opacity: 0.85;
}
.btn-wallet.connected {
background: rgba(16, 185, 129, 0.12);
color: #10b981;
border: 1px solid rgba(16, 185, 129, 0.3);
}
.nav-avatar {
width: 34px;
height: 34px;
border-radius: 50%;
flex-shrink: 0;
background: linear-gradient(135deg, var(--accent), var(--pink));
display: flex;
align-items: center;
justify-content: center;
font-size: 0.72rem;
font-weight: 700;
color: #fff;
}
/* โโ Hero โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.hero {
min-height: calc(100vh - 57px);
display: grid;
grid-template-columns: 1fr 276px;
grid-template-rows: 1fr auto;
gap: 20px;
padding: 32px 40px;
align-items: start;
}
.hero-featured {
grid-column: 1;
grid-row: 1 / 3;
display: flex;
}
.featured-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
}
.featured-art {
position: relative;
height: 340px;
overflow: hidden;
background: #070711;
}
.art-gradient {
position: absolute;
inset: 0;
}
.featured-gradient {
background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.45) 0%, transparent 55%),
radial-gradient(ellipse at 72% 28%, rgba(56, 189, 248, 0.3) 0%, transparent 50%),
radial-gradient(ellipse at 50% 78%, rgba(244, 114, 182, 0.2) 0%, transparent 50%);
}
.art-orbs {
position: absolute;
inset: 0;
pointer-events: none;
}
.orb {
position: absolute;
left: var(--x, 50%);
top: var(--y, 50%);
width: var(--s, 100px);
height: var(--s, 100px);
border-radius: 50%;
background: radial-gradient(circle, var(--c, #7c3aed) 0%, transparent 70%);
transform: translate(-50%, -50%);
opacity: 0.7;
filter: blur(22px);
animation: orb-float 6s ease-in-out infinite;
}
.orb:nth-child(2) {
animation-delay: -2s;
animation-duration: 8s;
}
.orb:nth-child(3) {
animation-delay: -4s;
animation-duration: 5s;
}
@keyframes orb-float {
0%,
100% {
transform: translate(-50%, -50%) scale(1);
}
50% {
transform: translate(-50%, calc(-50% - 14px)) scale(1.1);
}
}
.art-grid-overlay {
position: absolute;
inset: 0;
background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
background-size: 40px 40px;
}
.featured-live-badge {
position: absolute;
top: 16px;
left: 16px;
display: flex;
align-items: center;
gap: 7px;
padding: 5px 12px;
border-radius: 50px;
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.35);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.12em;
color: #ef4444;
}
.live-pulse {
width: 6px;
height: 6px;
border-radius: 50%;
background: #ef4444;
animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.35;
transform: scale(0.75);
}
}
.featured-info {
padding: 24px;
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
}
.featured-collection {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.featured-title {
font-family: "Space Grotesk", sans-serif;
font-size: clamp(1.4rem, 2.5vw, 2rem);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.15;
}
.featured-artist {
font-size: 0.88rem;
color: var(--muted);
}
.artist-highlight {
color: var(--accent2);
font-weight: 500;
}
.featured-auction {
display: flex;
gap: 32px;
padding: 14px 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.auction-col {
display: flex;
flex-direction: column;
gap: 4px;
}
.auction-label {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--muted);
}
.auction-price {
display: flex;
align-items: center;
gap: 6px;
font-family: "Space Mono", monospace;
font-size: 1.15rem;
font-weight: 700;
}
.auction-price svg {
color: #627eea;
flex-shrink: 0;
}
.auction-timer {
font-family: "Space Mono", monospace;
font-size: 1.15rem;
font-weight: 700;
color: var(--accent2);
}
.auction-usd {
font-size: 0.7rem;
color: var(--muted);
}
.featured-actions {
display: flex;
gap: 12px;
margin-top: auto;
}
.btn-bid {
flex: 1;
padding: 12px 20px;
background: linear-gradient(135deg, var(--accent), #5b21b6);
border: none;
border-radius: 8px;
color: #fff;
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: opacity 0.2s, transform 0.15s;
}
.btn-bid:hover {
opacity: 0.9;
transform: translateY(-1px);
}
.btn-watch {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--muted);
font-size: 0.88rem;
cursor: pointer;
font-family: inherit;
transition: color 0.2s, border-color 0.2s;
}
.btn-watch:hover {
color: var(--text);
border-color: rgba(255, 255, 255, 0.18);
}
/* โโ Mini cards (right column, top) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.hero-grid-mini {
grid-column: 2;
grid-row: 1;
display: flex;
flex-direction: column;
gap: 10px;
}
.mini-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
transition: border-color 0.2s;
}
.mini-card:hover {
border-color: rgba(255, 255, 255, 0.14);
}
.mini-art {
height: 80px;
background: linear-gradient(135deg, var(--c1, #7c3aed), var(--c2, #06b6d4));
}
.mini-info {
padding: 8px 12px;
display: flex;
justify-content: space-between;
align-items: center;
}
.mini-title {
font-size: 0.77rem;
font-weight: 500;
}
.mini-eth {
font-family: "Space Mono", monospace;
font-size: 0.7rem;
color: var(--accent2);
}
/* โโ Hero stats (right column, bottom) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.hero-stats {
grid-column: 2;
grid-row: 2;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.hero-stat {
display: flex;
flex-direction: column;
gap: 2px;
}
.hstat-val {
font-family: "Space Grotesk", sans-serif;
font-size: 1.1rem;
font-weight: 700;
}
.hstat-label {
font-size: 0.7rem;
color: var(--muted);
}
/* โโ Shared section styles โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.auctions-section,
.artists-section,
.how-section {
padding: 64px 40px;
border-top: 1px solid var(--border);
}
.section-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 32px;
}
.section-eyebrow {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #ef4444;
margin-bottom: 6px;
}
.live-dot-small {
width: 6px;
height: 6px;
border-radius: 50%;
background: #ef4444;
animation: live-blink 1.4s ease-in-out infinite;
}
.section-title {
font-family: "Space Grotesk", sans-serif;
font-size: clamp(1.3rem, 2.5vw, 1.8rem);
font-weight: 700;
letter-spacing: -0.02em;
}
.see-all {
font-size: 0.82rem;
color: var(--muted);
text-decoration: none;
transition: color 0.2s;
white-space: nowrap;
}
.see-all:hover {
color: var(--text);
}
/* โโ Auctions Grid โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.auctions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
}
.nft-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nft-card:hover {
transform: translateY(-4px);
border-color: rgba(255, 255, 255, 0.13);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.nft-art {
height: 200px;
position: relative;
overflow: hidden;
background: linear-gradient(135deg, var(--c1, #4f46e5), var(--c2, #7c3aed));
}
.nft-art-inner {
position: absolute;
inset: 0;
background: radial-gradient(
ellipse at 70% 30%,
var(--c3, rgba(167, 139, 250, 0.5)) 0%,
transparent 55%
), radial-gradient(ellipse at 25% 75%, rgba(0, 0, 0, 0.3) 0%, transparent 55%);
}
.nft-info {
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.nft-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.nft-title {
font-weight: 600;
font-size: 0.92rem;
}
.nft-edition {
font-size: 0.66rem;
font-weight: 500;
letter-spacing: 0.08em;
flex-shrink: 0;
padding: 3px 8px;
border-radius: 50px;
background: rgba(255, 255, 255, 0.07);
color: var(--muted);
}
.nft-artist {
font-size: 0.78rem;
color: var(--muted);
}
.nft-bid-row {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 8px;
border-top: 1px solid var(--border);
}
.bid-label {
display: block;
font-size: 0.66rem;
color: var(--muted);
margin-bottom: 3px;
}
.bid-eth {
display: flex;
align-items: center;
gap: 4px;
font-family: "Space Mono", monospace;
font-size: 0.88rem;
font-weight: 700;
}
.bid-eth svg {
color: #627eea;
flex-shrink: 0;
}
.bid-eth.flash {
color: #10b981;
transition: color 0.2s;
}
.nft-timer {
display: flex;
align-items: center;
gap: 4px;
font-size: 0.72rem;
color: var(--muted);
}
.btn-bid-sm {
width: 100%;
padding: 9px;
background: linear-gradient(135deg, var(--accent), #5b21b6);
border: none;
border-radius: 6px;
color: #fff;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: opacity 0.2s;
}
.btn-bid-sm:hover {
opacity: 0.85;
}
/* โโ Top Artists โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.artists-row {
display: flex;
flex-direction: column;
}
.artist-item {
display: flex;
align-items: center;
gap: 16px;
padding: 14px 0;
border-bottom: 1px solid var(--border);
}
.artist-item:first-child {
border-top: 1px solid var(--border);
}
.artist-avatar {
width: 42px;
height: 42px;
border-radius: 50%;
flex-shrink: 0;
background: var(--bg, #7c3aed);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.78rem;
font-weight: 700;
color: #fff;
}
.artist-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.artist-name {
font-size: 0.9rem;
font-weight: 500;
}
.artist-volume {
font-family: "Space Mono", monospace;
font-size: 0.75rem;
color: var(--accent2);
}
.artist-rank {
font-family: "Space Mono", monospace;
font-size: 0.75rem;
color: var(--muted);
flex-shrink: 0;
}
/* โโ How It Works โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.how-title {
font-family: "Space Grotesk", sans-serif;
font-size: clamp(1.5rem, 3vw, 2.2rem);
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 40px;
text-align: center;
}
.how-steps {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 16px;
}
.how-step {
flex: 1;
max-width: 280px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 28px 22px;
display: flex;
flex-direction: column;
gap: 12px;
}
.step-num {
font-family: "Space Mono", monospace;
font-size: 0.7rem;
color: var(--accent2);
font-weight: 700;
letter-spacing: 0.1em;
}
.step-icon {
color: var(--muted);
}
.step-title {
font-size: 1rem;
font-weight: 600;
}
.step-desc {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.65;
}
.how-step-arrow {
font-size: 1.4rem;
color: var(--muted);
align-self: center;
padding-top: 48px;
flex-shrink: 0;
}
/* โโ Footer โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.footer {
background: var(--bg2);
border-top: 1px solid var(--border);
padding: 56px 40px 24px;
}
.footer-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 48px;
margin-bottom: 48px;
flex-wrap: wrap;
}
.footer-brand {
max-width: 300px;
}
.footer-logo {
font-family: "Space Grotesk", sans-serif;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: 0.1em;
display: block;
margin-bottom: 10px;
background: linear-gradient(90deg, var(--accent), var(--accent2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.footer-tagline {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.6;
}
.newsletter-label {
display: block;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 12px;
}
.newsletter-row {
display: flex;
gap: 8px;
}
.newsletter-input {
flex: 1;
padding: 10px 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 0.85rem;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
}
.newsletter-input::placeholder {
color: var(--muted);
}
.newsletter-input:focus {
border-color: rgba(124, 58, 237, 0.5);
}
.newsletter-btn {
padding: 10px 20px;
background: var(--accent);
border: none;
border-radius: 8px;
color: #fff;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: opacity 0.2s;
white-space: nowrap;
}
.newsletter-btn:hover {
opacity: 0.85;
}
.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 24px;
border-top: 1px solid var(--border);
font-size: 0.78rem;
color: var(--muted);
flex-wrap: wrap;
gap: 12px;
}
.footer-links {
display: flex;
gap: 20px;
}
.footer-links a {
color: var(--muted);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: var(--text);
}
/* โโ Responsive โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
grid-template-rows: auto auto auto;
padding: 20px;
}
.hero-featured {
grid-column: 1;
grid-row: 1;
}
.hero-grid-mini {
grid-column: 1;
grid-row: 2;
flex-direction: row;
overflow-x: auto;
padding-bottom: 4px;
}
.mini-card {
flex: 0 0 160px;
}
.hero-stats {
grid-column: 1;
grid-row: 3;
flex-direction: row;
}
.nav {
padding: 12px 20px;
}
.nav-search {
display: none;
}
.auctions-section,
.artists-section,
.how-section {
padding: 48px 20px;
}
.how-steps {
flex-wrap: wrap;
}
.how-step-arrow {
display: none;
}
.footer {
padding: 40px 20px 20px;
}
.footer-top {
flex-direction: column;
}
}/* โโ lgc-65-nft-marketplace ยท script.js โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
/* โโ Bid Price Ticker โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
(function initBidTicker() {
var prices = document.querySelectorAll(".bid-eth");
if (!prices.length) return;
function randomBetween(min, max) {
return Math.random() * (max - min) + min;
}
// Update only the text node to preserve the inner SVG icon
function getTextNode(el) {
for (var i = el.childNodes.length - 1; i >= 0; i--) {
if (el.childNodes[i].nodeType === 3) return el.childNodes[i];
}
return null;
}
function tick() {
var idx = Math.floor(Math.random() * prices.length);
var el = prices[idx];
var textNode = getTextNode(el);
if (!textNode) return;
var raw = parseFloat(textNode.textContent.replace(/[^\d.]/g, "")) || 0;
var increment = parseFloat(randomBetween(0.01, 0.05).toFixed(2));
var newVal = (raw + increment).toFixed(2);
textNode.textContent = " " + newVal + " ETH";
el.classList.add("flash");
setTimeout(function () {
el.classList.remove("flash");
}, 600);
var delay = Math.floor(randomBetween(3000, 8000));
setTimeout(tick, delay);
}
setTimeout(tick, 2000);
})();
/* โโ Countdown Timers โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
(function initCountdowns() {
var timers = document.querySelectorAll(".auction-timer");
if (!timers.length) return;
function pad(n) {
return n < 10 ? "0" + n : String(n);
}
function update() {
var now = Date.now();
timers.forEach(function (el) {
var end = parseInt(el.dataset.end, 10) * 1000;
var diff = Math.max(0, end - now);
var h = Math.floor(diff / 3600000);
var m = Math.floor((diff % 3600000) / 60000);
var s = Math.floor((diff % 60000) / 1000);
el.textContent = pad(h) + ":" + pad(m) + ":" + pad(s);
if (diff === 0) el.textContent = "Ended";
});
}
// Assign fake future timestamps for demo timers without data-end
timers.forEach(function (el) {
if (!el.dataset.end) {
var offset = Math.floor(Math.random() * 3600 * 24) + 3600;
el.dataset.end = Math.floor(Date.now() / 1000) + offset;
}
});
update();
setInterval(update, 1000);
})();
/* โโ Connect Wallet Button โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
(function initWallet() {
var btn = document.querySelector(".btn-wallet");
if (!btn) return;
var connected = false;
var addresses = ["0x71C7โฆ4E2a", "0xA903โฆB1f0", "0x3F9dโฆC247"];
btn.addEventListener("click", function () {
if (connected) {
connected = false;
btn.textContent = "Connect Wallet";
btn.classList.remove("connected");
} else {
connected = true;
var addr = addresses[Math.floor(Math.random() * addresses.length)];
btn.textContent = addr;
btn.classList.add("connected");
}
});
})();<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PRISM โ Digital Art Marketplace</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<script type="importmap">{"imports":{"gsap":"https://esm.sh/gsap@3.13.0","gsap/ScrollTrigger":"https://esm.sh/gsap@3.13.0/ScrollTrigger","lenis":"https://esm.sh/lenis@1.1.13/dist/lenis.mjs"}}</script>
</head>
<body>
<!-- NAV -->
<nav class="nav">
<a href="#" class="nav-logo">
<span class="logo-prism">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none">
<polygon points="14,2 26,24 2,24" stroke="url(#prism-grad)" stroke-width="1.5" fill="none"/>
<polygon points="14,8 21,22 7,22" fill="url(#prism-grad)" opacity="0.5"/>
<defs>
<linearGradient id="prism-grad" x1="2" y1="2" x2="26" y2="24" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#a78bfa"/>
<stop offset="50%" stop-color="#38bdf8"/>
<stop offset="100%" stop-color="#f472b6"/>
</linearGradient>
</defs>
</svg>
</span>
PRISM
</a>
<div class="nav-search">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
<circle cx="7" cy="7" r="5"/><path d="m11 11 3 3"/>
</svg>
<input type="text" placeholder="Search art, artists, collectionsโฆ" class="search-input" />
</div>
<div class="nav-actions">
<a href="#" class="nav-link">Explore</a>
<a href="#" class="nav-link">Create</a>
<button class="btn-wallet">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12V7H5a2 2 0 0 1 0-4h14v4"/><path d="M3 5v14a2 2 0 0 0 2 2h16v-5"/><path d="M18 12a2 2 0 0 0 0 4h4v-4z"/>
</svg>
Connect Wallet
</button>
<div class="nav-avatar">AM</div>
</div>
</nav>
<!-- HERO -->
<section class="hero">
<div class="hero-featured">
<div class="featured-card">
<div class="featured-art">
<div class="art-gradient featured-gradient"></div>
<div class="art-orbs">
<span class="orb" style="--x:30%;--y:40%;--s:160px;--c:#a78bfa"></span>
<span class="orb" style="--x:65%;--y:55%;--s:120px;--c:#38bdf8"></span>
<span class="orb" style="--x:50%;--y:20%;--s:80px;--c:#f472b6"></span>
</div>
<div class="art-grid-overlay"></div>
<div class="featured-live-badge">
<span class="live-pulse"></span>
LIVE
</div>
</div>
<div class="featured-info">
<div class="featured-collection">Genesis Collection โ #001</div>
<h2 class="featured-title">Chromatic Dissolution</h2>
<p class="featured-artist">by <span class="artist-highlight">@voidwave</span></p>
<div class="featured-auction">
<div class="auction-col">
<span class="auction-label">Current Bid</span>
<span class="auction-price">
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
4.72 ETH
</span>
<span class="auction-usd">โ $17,240</span>
</div>
<div class="auction-col">
<span class="auction-label">Ends In</span>
<span class="auction-timer" id="hero-timer">08:42:17</span>
<span class="auction-usd">hours remaining</span>
</div>
</div>
<div class="featured-actions">
<button class="btn-bid">Place Bid</button>
<button class="btn-watch">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>
</svg>
Watchlist
</button>
</div>
</div>
</div>
</div>
<div class="hero-grid-mini">
<div class="mini-card">
<div class="mini-art" style="--c1:#7c3aed;--c2:#2563eb"></div>
<div class="mini-info"><span class="mini-title">Void Protocol</span><span class="mini-eth">2.1 ETH</span></div>
</div>
<div class="mini-card">
<div class="mini-art" style="--c1:#0ea5e9;--c2:#06b6d4"></div>
<div class="mini-info"><span class="mini-title">Neural Bloom</span><span class="mini-eth">1.4 ETH</span></div>
</div>
<div class="mini-card">
<div class="mini-art" style="--c1:#ec4899;--c2:#f59e0b"></div>
<div class="mini-info"><span class="mini-title">Fractal Memoria</span><span class="mini-eth">3.8 ETH</span></div>
</div>
<div class="mini-card">
<div class="mini-art" style="--c1:#10b981;--c2:#6366f1"></div>
<div class="mini-info"><span class="mini-title">Signal Drift</span><span class="mini-eth">0.9 ETH</span></div>
</div>
</div>
<div class="hero-stats">
<div class="hero-stat"><span class="hstat-val">38.4K</span><span class="hstat-label">Artworks</span></div>
<div class="hero-stat"><span class="hstat-val">12.1K</span><span class="hstat-label">Artists</span></div>
<div class="hero-stat"><span class="hstat-val">$284M</span><span class="hstat-label">Total Volume</span></div>
</div>
</section>
<!-- LIVE AUCTIONS -->
<section class="auctions-section">
<div class="section-header">
<div>
<span class="section-eyebrow">
<span class="live-dot-small"></span>
Live Now
</span>
<h2 class="section-title">Active Auctions</h2>
</div>
<a href="#" class="see-all">View all auctions โ</a>
</div>
<div class="auctions-grid">
<article class="nft-card">
<div class="nft-art" style="--c1:#4f46e5;--c2:#7c3aed;--c3:#a78bfa">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Temporal Loop #7</h3>
<span class="nft-edition">1 of 1</span>
</div>
<p class="nft-artist">@chronovisuals</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
2.85 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
4h 21m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
<article class="nft-card">
<div class="nft-art" style="--c1:#0f766e;--c2:#0ea5e9;--c3:#67e8f9">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Deep Ocean AI</h3>
<span class="nft-edition">3 of 10</span>
</div>
<p class="nft-artist">@deepspaceart</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
1.20 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
11h 55m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
<article class="nft-card">
<div class="nft-art" style="--c1:#be185d;--c2:#db2777;--c3:#f9a8d4">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Neon Genesis v2</h3>
<span class="nft-edition">1 of 1</span>
</div>
<p class="nft-artist">@pixelphantom</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
5.40 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
1h 07m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
<article class="nft-card">
<div class="nft-art" style="--c1:#92400e;--c2:#d97706;--c3:#fbbf24">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Solar Flare #12</h3>
<span class="nft-edition">2 of 5</span>
</div>
<p class="nft-artist">@solarist</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
0.75 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
23h 42m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
<article class="nft-card">
<div class="nft-art" style="--c1:#065f46;--c2:#059669;--c3:#6ee7b7">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Emerald Protocol</h3>
<span class="nft-edition">1 of 3</span>
</div>
<p class="nft-artist">@emeraldweb</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
3.15 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
7h 30m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
<article class="nft-card">
<div class="nft-art" style="--c1:#1e1b4b;--c2:#3730a3;--c3:#818cf8">
<div class="nft-art-inner"></div>
</div>
<div class="nft-info">
<div class="nft-header">
<h3 class="nft-title">Indigo Dreams</h3>
<span class="nft-edition">1 of 1</span>
</div>
<p class="nft-artist">@indigobase</p>
<div class="nft-bid-row">
<div>
<span class="bid-label">Current bid</span>
<span class="bid-eth">
<svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>
8.00 ETH
</span>
</div>
<div class="nft-timer">
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
2h 58m
</div>
</div>
<button class="btn-bid-sm">Bid Now</button>
</div>
</article>
</div>
</section>
<!-- TOP ARTISTS -->
<section class="artists-section">
<div class="section-header">
<h2 class="section-title">Top Artists</h2>
<a href="#" class="see-all">See all โ</a>
</div>
<div class="artists-row">
<div class="artist-item">
<div class="artist-avatar" style="--bg:#7c3aed">VW</div>
<div class="artist-info">
<span class="artist-name">@voidwave</span>
<span class="artist-volume">142.3 ETH</span>
</div>
<span class="artist-rank">#1</span>
</div>
<div class="artist-item">
<div class="artist-avatar" style="--bg:#0891b2">DS</div>
<div class="artist-info">
<span class="artist-name">@deepspaceart</span>
<span class="artist-volume">98.7 ETH</span>
</div>
<span class="artist-rank">#2</span>
</div>
<div class="artist-item">
<div class="artist-avatar" style="--bg:#be185d">PP</div>
<div class="artist-info">
<span class="artist-name">@pixelphantom</span>
<span class="artist-volume">87.2 ETH</span>
</div>
<span class="artist-rank">#3</span>
</div>
<div class="artist-item">
<div class="artist-avatar" style="--bg:#d97706">SO</div>
<div class="artist-info">
<span class="artist-name">@solarist</span>
<span class="artist-volume">64.9 ETH</span>
</div>
<span class="artist-rank">#4</span>
</div>
<div class="artist-item">
<div class="artist-avatar" style="--bg:#059669">EM</div>
<div class="artist-info">
<span class="artist-name">@emeraldweb</span>
<span class="artist-volume">51.4 ETH</span>
</div>
<span class="artist-rank">#5</span>
</div>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="how-section">
<h2 class="how-title">How It Works</h2>
<div class="how-steps">
<div class="how-step">
<div class="step-num">01</div>
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/>
</svg>
</div>
<h3 class="step-title">Create</h3>
<p class="step-desc">Upload your artwork, set your price, royalties, and mint your NFT in under 60 seconds.</p>
</div>
<div class="how-step-arrow">โ</div>
<div class="how-step">
<div class="step-num">02</div>
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>
</svg>
</div>
<h3 class="step-title">List</h3>
<p class="step-desc">Choose fixed price or auction. Set a reserve, duration, and your preferred currency.</p>
</div>
<div class="how-step-arrow">โ</div>
<div class="how-step">
<div class="step-num">03</div>
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/>
</svg>
</div>
<h3 class="step-title">Earn</h3>
<p class="step-desc">Receive funds instantly on sale. Earn royalties on every secondary market resale, forever.</p>
</div>
</div>
</section>
<!-- FOOTER -->
<footer class="footer">
<div class="footer-top">
<div class="footer-brand">
<span class="footer-logo">PRISM</span>
<p class="footer-tagline">The marketplace for serious digital art collectors and creators.</p>
</div>
<div class="footer-newsletter">
<p class="newsletter-label">Get drop alerts</p>
<div class="newsletter-row">
<input type="email" placeholder="your@email.com" class="newsletter-input" />
<button class="newsletter-btn">Subscribe</button>
</div>
</div>
</div>
<div class="footer-bottom">
<span class="footer-copy">ยฉ 2026 PRISM Marketplace. All rights reserved.</span>
<div class="footer-links">
<a href="#">Privacy</a>
<a href="#">Terms</a>
<a href="#">Discord</a>
<a href="#">Twitter</a>
</div>
</div>
</footer>
<script type="module" src="script.js"></script>
</body>
</html>NFT / Digital Art Marketplace
A dark, premium digital art marketplace with all the visual energy of a Web3 drop โ gradient glows, live auction countdown, bid price tickers, and an immersive hero.
Sections
- Nav โ Logo, search bar, wallet connect button
- Hero โ Featured drop card with animated live bid, countdown, โPlace Bidโ CTA
- Live Auctions โ Grid of NFT cards with price, time left, glow-on-hover
- Top Artists โ Avatar + name row, volume stats
- How it works โ 3-step process with numbered icons
- Trending โ Price chart sparklines (CSS-drawn), collection stats
- Footer โ Newsletter + social links
Key interactions
- Bid ticker โ setInterval increments bid price randomly for live feel
- Card glow โ
box-shadow+ gradient border animates on hover - Auction countdown โ live DD:HH:MM:SS timer per card
- GSAP stagger grid reveal on scroll