summaryrefslogtreecommitdiff
path: root/public/index.html
blob: d9033a575c76551a84d3d2da57bd0034dc2a08b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="color-scheme" content="light dark">
    <title>SparkleLab</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="/application.js"></script>
  </head>
  <body>
    <main id="app" class="container">
      <nav>
        <ul>
          <li><strong>SparkleLab✨</strong></li>
        </ul>
        <ul>
          <li><a href="/session/new">Login</a></li>
        </ul>
      </nav>

      <form v-on:submit.prevent="submitSparkle">
        <label>/sparkle <input type="text" placeholder="@tanuki for helping me with my homework!" v-model="sparkle" /> </label>
        <button type="submit" v-bind:disabled="isDisabled">✨ Sparkle</button>
      </form>
      <span class="error">{{ errorMessage }}</span>

      <h1>{{ heading }}</h1>
      <div v-for="sparkle in recentSparkles">
        <p> <strong>{{ sparkle.sparklee }}</strong> {{ sparkle.reason }} </p>
      </div>
    </main>
  </body>
</html>