← back to Model Arena

data/artifacts/104018fe5adc/hermes3-8b.html

122 lines

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wallcovering Brand Poll</title>
<style>
  :root {
    --bg: #f7efe6;
    --surface: #fff9f1;
    --text: #3a2c22;
    --muted: #a08c7a;
    --accent: #e0a458;
    --line: 1px solid #c65f38;  
    --shadow: 0 8px 24px rgba(0,0,0,.12);
    --ease: cubic-bezier(.22,1,.36,1);
  }
  body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 48px;
  }
  header {
    display: flex;
    align-items: center;
    letter-spacing: .18em;
    color: var(--text);
    font-family: 'Didot', 'Bodoni MT', 'Playfair Display', Georgia, serif;
    font-size: 50px;
    padding-left: 24px;
  }
  h1 {
    margin: 0;
  }
  .container {
    max-width: 640px;
    margin: 0 auto;
  } 
  .story {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-top: 96px;
  }
  .swatch {
    width: 260px;
    height: 460px;
    background-size: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.7s var(--ease), box-shadow 0.3s var(--ease);
  }
  .swatch-1 { background-image: linear-gradient(45deg, #f5d77e 0%, #c65f38 100%); }
  .swatch-2 { background-image: linear-gradient(45deg, #fff9f1 0%, #e0a458 100%); }
  .vote-bar {
    height: 24px;
    background-color: var(--accent);
    width: 0;
    transition: width 0.5s ease-in-out;
  }
  .result {
    font-size: 96px;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 1s forwards;
  }
  @keyframes fadeUp {
    from { 
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1; 
      transform: translateY(0);
    }
  }
</style>
</head>
<body>
<header class="header">
  <div class="container">
    <h1>DESIGNER WALLCOVERINGS</h1>
  </div>
</header>
<div class="container">
  <div class="story">
    <div 
      class="swatch swatch-1" 
      onclick="vote(0)"
    ></div>
    <div class="vote-bar vote-bar-1"></div>
    <p class="result result-1">DAMASK</p>
    <div 
      class="swatch swatch-2" 
      onclick="vote(1)"
    ></div>
    <div class="vote-bar vote-bar-2"></div>  
    <p class="result result-2">GEOmetric</p>
  </div>
</div>
<script>
  let voteCount = [0, 0];
  const swatchHeight = 460;
  const totalHeight = 1280;

  function vote(choice) {
    voteCount[choice]++;
    
    const barHeight = (voteCount[choice] / totalHeight) * swatchHeight;
    document.querySelector(`.vote-bar-${choice + 1}`).style.height = `${barHeight}px`;

    if (voteCount[0] > voteCount[1]) {
      document.querySelectorAll('.result').forEach((el, i) => 
        el.style.opacity = i == choice ? 1 : 0
      );
    }
  }
</script>
</body>
</html>