← back to Model Arena
data/artifacts/0b9bb5066c06/hf-qwen-coder-32b.html
136 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Which Design Era?</title>
<style>
:root {
--bg-color: #faf8f4;
--surface-color: #ffffff;
--text-color: #1c1a17;
--muted-color: #9b948a;
--accent-color: #b0472e;
--secondary-accent-color: #2f4c39;
--font-display: 'Playfair Display', Georgia, serif;
--font-body: -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
}
body {
margin: 0;
font-family: var(--font-body);
color: var(--text-color);
background-color: var(--bg-color);
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
position: relative;
}
header {
width: 100%;
background-color: var(--surface-color);
padding: 24px 32px;
box-shadow: 0 8px 24px rgba(0,0,0,.12);
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
z-index: 1000;
}
header h1 {
font-family: var(--font-display);
font-size: 38px;
letter-spacing: .18em;
text-transform: uppercase;
margin: 0;
}
main {
padding-top: 96px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
}
.card {
background-color: var(--surface-color);
border-radius: 14px;
box-shadow: 0 8px 24px rgba(0,0,0,.12);
padding: 32px;
width: 90%;
max-width: 600px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.card img {
width: 100%;
border-radius: 14px;
margin-bottom: 24px;
}
.card button {
background-color: var(--accent-color);
color: var(--surface-color);
font-size: 28px;
padding: 16px 32px;
border: none;
border-radius: 14px;
cursor: pointer;
transition: box-shadow .15s ease-in-out, transform .15s ease-in-out;
margin-bottom: 16px;
}
.card button:hover {
box-shadow: 0 16px 48px rgba(0,0,0,.18);
transform: translateY(-2px);
}
.card p {
font-size: 21px;
margin-bottom: 32px;
}
.card footer {
display: flex;
justify-content: space-between;
width: 100%;
font-size: 16px;
color: var(--muted-color);
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(28px); }
to { opacity: 1; transform: none; }
}
.fade-up-enter-active {
animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both;
}
</style>
</head>
<body>
<header>
<h1>DESIGNER WALLCOVERINGS</h1>
</header>
<main>
<div class="card fade-up-enter-active">
<img id="era-image" src="" alt="Design Era Interior Vignette">
<button onclick="guess('Victorian')">VICTORIAN</button>
<button onclick="guess('Art Deco')">ART DECO</button>
<button onclick="guess('Mid-Century Modern')">MID-CENTURY MODERN</button>
<button onclick="guess('Grandmillennial')">GRANDMILLENNIAL</button>
<p id="result-message"></p>
<footer>
<span>Score: <span id="score">0</span></span>
<span>Best Score: <span id="best-score">0</span></span>
</footer>
</div>
</main>
<script>
const eras = ['Victorian', 'Art Deco', 'Mid-Century Modern', 'Grandmillennial'];
const facts = {
'Victorian': "Victorian era design is characterized by elaborate ornamentation, rich textures, and vibrant colors.",
'Art Deco': "Art Deco features sleek, geometric shapes, metallic finishes, and bold, modernist aesthetics.",
'Mid-Century Modern': "This period emphasizes clean lines, natural materials, and a mix of traditional and modern styles.",
'Grandmillennial': "Combining retro-futuristic elements with luxury and glamour, Grandmillennial design exudes opulence."
};
const images = {
'Victorian': "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAAAW2QGkAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAASzSURBVHhe7d3NixrXHYeDZ2dndndndndndndndndndndndndndndndndndndndndndndndndndndndndndndnd