← back to Goodquestion Ai

video-html/templates/hook.html

115 lines

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{headline}}</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    width: {{width}}px;
    height: {{height}}px;
    overflow: hidden;
    background: #0B0B0F;
    color: #E8E8ED;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .slide {
    width: {{width}}px;
    height: {{height}}px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0B0B0F 0%, #0D1B2A 25%, #1B2838 50%, #0D1B2A 75%, #0B0B0F 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
  }

  @keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes growWidth {
    from { width: 0; }
  }

  .headline {
    font-size: 80px;
    font-weight: 800;
    text-align: center;
    max-width: 85%;
    line-height: 1.15;
    background: linear-gradient(135deg, #00D4FF, #E8E8ED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.3s both;
  }

  .subtext {
    font-size: 32px;
    color: #6B7280;
    margin-top: 24px;
    animation: fadeInUp 1s ease-out 0.7s both;
  }

  .accent-line {
    width: 120px;
    height: 4px;
    background: #00D4FF;
    border-radius: 2px;
    margin-top: 32px;
    animation: growWidth 0.8s ease-out 1s both;
  }

  /* Avatar */
  @keyframes avatarFadeIn {
    0%   { opacity: 0; transform: scale(0.8); }
    15%  { opacity: 1; transform: scale(1); }
    85%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
  }
  .avatar-container {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00D4FF;
    box-shadow: 0 0 30px rgba(0,212,255,0.3);
    animation: avatarFadeIn 3s ease-in-out forwards;
    z-index: 100;
    display: {{avatarDisplay}};
  }
  .avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
</style>
</head>
<body>
  <div class="slide">
    <h1 class="headline">{{headline}}</h1>
    <p class="subtext" style="display:{{subtextDisplay}}">{{subtext}}</p>
    <div class="accent-line"></div>
    <div class="avatar-container">
      <img src="{{avatarImage}}" alt="Avatar">
    </div>
  </div>
</body>
</html>