Hero.svelte 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <script>
  2. import image01 from '$lib/assets/image01.gif';
  3. let { scrollTo } = $props();
  4. </script>
  5. <header class="hero">
  6. <div class="hero-content">
  7. <div class="badge">IN DEVELOPMENT • LAUNCHING SOON</div>
  8. <h1>
  9. Your story.<br />
  10. <span class="accent">Infinite possibilities.</span>
  11. </h1>
  12. <p class="hero-subtitle">
  13. An LLM-powered text RPG where you describe anything in natural language.
  14. No commands. No limits. Just pure collaborative storytelling.
  15. </p>
  16. <div class="hero-ctas">
  17. <button class="btn btn-primary large" onclick={() => scrollTo('pricing')}>
  18. See Pricing
  19. </button>
  20. <button class="btn btn-secondary large" onclick={() => scrollTo('how')}>
  21. See How It Works
  22. </button>
  23. </div>
  24. <div class="hero-stats">
  25. <div><strong>100% freeform</strong> input</div>
  26. <div><strong>$1</strong> per million tokens</div>
  27. <div><strong>Unlimited</strong> adventure length</div>
  28. </div>
  29. </div>
  30. <!-- Visual preview -->
  31. <div class="hero-visual">
  32. <img src={image01} alt="Sample animated scene from a ChatRPG adventure" />
  33. </div>
  34. </header>
  35. <style>
  36. /* Hero specific styles */
  37. .hero {
  38. min-height: 100dvh;
  39. display: grid;
  40. grid-template-columns: 1fr 1fr;
  41. align-items: center;
  42. gap: 60px;
  43. padding: 120px 24px 60px;
  44. max-width: 1080px;
  45. margin: 0 auto;
  46. }
  47. .hero-content {
  48. max-width: 560px;
  49. }
  50. .hero .badge {
  51. display: inline-block;
  52. background: #1f1f27;
  53. color: #c084fc;
  54. font-size: 12px;
  55. font-weight: 600;
  56. padding: 4px 14px;
  57. border-radius: 999px;
  58. margin-bottom: 24px;
  59. letter-spacing: 1px;
  60. }
  61. .hero h1 {
  62. font-size: clamp(2.8rem, 7vw, 4.2rem);
  63. margin-bottom: 24px;
  64. letter-spacing: -2.5px;
  65. }
  66. .hero-subtitle {
  67. font-size: 1.25rem;
  68. color: #a1a1aa;
  69. margin-bottom: 32px;
  70. max-width: 460px;
  71. }
  72. .hero-ctas {
  73. display: flex;
  74. gap: 14px;
  75. flex-wrap: wrap;
  76. margin-bottom: 48px;
  77. }
  78. .hero-stats {
  79. display: flex;
  80. gap: 28px;
  81. font-size: 14px;
  82. color: #a1a1aa;
  83. }
  84. .hero-stats strong {
  85. color: #e5e5ea;
  86. }
  87. /* Hero visual */
  88. .hero-visual {
  89. position: relative;
  90. }
  91. .hero-visual img {
  92. background: #121218;
  93. border: 1px solid #2a2a35;
  94. border-radius: 16px;
  95. box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6);
  96. max-width: 380px;
  97. margin-left: auto;
  98. display: block;
  99. width: 100%;
  100. height: auto;
  101. }
  102. @media (max-width: 900px) {
  103. .hero {
  104. grid-template-columns: 1fr;
  105. padding-top: 100px;
  106. text-align: center;
  107. }
  108. .hero-content {
  109. max-width: none;
  110. }
  111. .hero-subtitle {
  112. margin-left: auto;
  113. margin-right: auto;
  114. }
  115. .hero-ctas {
  116. justify-content: center;
  117. }
  118. .hero-stats {
  119. justify-content: center;
  120. }
  121. .hero-visual {
  122. display: none;
  123. }
  124. }
  125. </style>