← back to Model Arena
data/artifacts/18bd2744dce2/qwen3-14b.html
293 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>DESIGNER WALLCOVERINGS</title>
<style>
:root {
--bg: #f7efe6;
--surface: #fff9f1;
--ink: #3a2c22;
--muted: #a08c7a;
--accent: #c65f38;
--line: #e0a458;
--shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
--glow: 0 0 24px rgba(204, 95, 56, 0.35);
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--font-display: 'Playfair Display', Georgia, serif;
--font-body: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
--spacing: 16px;
--radius: 14px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg);
color: var(--ink);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.6;
overflow-x: hidden;
}
header {
position: fixed;
top: 0;
left: 0;
width: 220px;
height: 64px;
background-color: var(--surface);
color: var(--ink);
font-family: var(--font-display);
font-size: 24px;
letter-spacing: 0.18em;
text-transform: uppercase;
padding: 12px 16px;
display: flex;
align-items: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.carousel-container {
margin-top: 80px;
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.carousel {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.7s var(--ease);
}
.slide {
flex-shrink: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: var(--surface);
box-shadow: var(--shadow);
overflow: hidden;
}
.slide:nth-child(1) {
background-color: var(--accent);
color: var(--ink);
}
.slide:nth-child(1) .title {
font-family: var(--font-display);
font-size: 48px;
letter-spacing: 0.2em;
text-transform: uppercase;
text-align: center;
}
.slide:nth-child(n+2):not(:nth-child(5)) {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.swatch {
width: 300px;
height: 300px;
background-color: var(--accent);
margin: 0 auto 24px;
border: 1px solid var(--line);
box-shadow: var(--glow);
border-radius: var(--radius);
}
.slide:nth-child(2) .swatch {
background-color: #fdf7f1;
}
.slide:nth-child(3) .swatch {
background-color: #e7d2c3;
}
.slide:nth-child(4) .swatch {
background-color: #c65f38;
}
.slide:nth-child(2) .label {
color: #9b948a;
}
.slide:nth-child(3) .label {
color: #a08c7a;
}
.slide:nth-child(4) .label {
color: #fff;
}
.tip {
font-size: 18px;
margin-top: 16px;
color: var(--muted);
}
.cta {
padding: 48px;
text-align: center;
font-family: var(--font-display);
font-size: 32px;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--accent);
}
.dots {
position: absolute;
bottom: 32px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 16px;
}
.dot {
width: 12px;
height: 12px;
background-color: var(--muted);
border-radius: 50%;
transition: background-color 0.3s var(--ease);
}
.dot.active {
background-color: var(--accent);
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(28px);
}
to {
opacity: 1;
transform: none;
}
}
.fade-up {
animation: fadeUp 0.7s var(--ease) both;
}
@keyframes gradientDrift {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
body {
background-image: linear-gradient(120deg, #f7efe6 0%, #fff9f1 100%);
background-size: 400% 400%;
animation: gradientDrift 18s ease-in-out infinite;
}
</style>
</head>
<body>
<header>
DESIGNER WALLCOVERINGS
</header>
<div class="carousel-container">
<div class="carousel" id="carousel">
<div class="slide fade-up">
<div class="title">TERRACOTTA & SAGE</div>
</div>
<div class="slide fade-up">
<div class="swatch"></div>
<div class="label">OATMEAL</div>
<div class="tip">Ideal for creating a warm, inviting living room with layered textures.</div>
</div>
<div class="slide fade-up">
<div class="swatch"></div>
<div class="label">CELADON</div>
<div class="tip">Perfect for a sunlit kitchen or bathroom with natural light and clean lines.</div>
</div>
<div class="slide fade-up">
<div class="swatch"></div>
<div class="label">TERRACOTTA</div>
<div class="tip">Adds depth and richness to a dining room or library with a modern interior.</div>
</div>
<div class="slide fade-up cta">
DISCOVER MORE
</div>
</div>
<div class="dots" id="dots">
<div class="dot active"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
<script>
const carousel = document.getElementById('carousel');
const dots = document.getElementById('dots');
const slides = document.querySelectorAll('.slide');
const totalSlides = slides.length;
let currentSlide = 0;
function updateCarousel() {
const offset = -currentSlide * 100;
carousel.style.transform = `translateX(${offset}%)`;
updateDots();
}
function updateDots() {
dots.querySelectorAll('.dot').forEach((dot, index) => {
dot.classList.toggle('active', index === currentSlide);
});
}
function nextSlide() {
currentSlide = (currentSlide + 1) % totalSlides;
updateCarousel();
}
function prevSlide() {
currentSlide = (currentSlide - 1 + totalSlides) % totalSlides;
updateCarousel();
}
// Swipe gestures
let touchStartX = 0;
let touchEndX = 0;
carousel.addEventListener('touchstart', e => {
touchStartX = e.touches[0].clientX;
});
carousel.addEventListener('touchend', e => {
touchEndX = e.changedTouches[0].clientX;
if (touchEndX < touchStartX) nextSlide();
else if (touchEndX > touchStartX) prevSlide();
});
// Keyboard navigation
document.addEventListener('keydown', e => {
if (e.key === 'ArrowRight') nextSlide();
else if (e.key === 'ArrowLeft') prevSlide();
});
// Auto-advance
setInterval(nextSlide, 5000);
</script>
</body>
</html>