aboutsummaryrefslogtreecommitdiff
path: root/lib/test/examples/input.html
blob: 3bd64631c40d51953cd99470e4f55b1ec5d3b22f (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>lustre | forms</title>

    <script src="https://cdn.tailwindcss.com"></script>
    <style type="text/tailwindcss">
      @layer components {
        .container {
          @apply flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8;
        }

        .card {
          @apply mt-10 sm:mx-auto sm:w-full sm:max-w-[480px];
        }

        .card > div {
          @apply bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12 space-y-6;
        }

        .debug {
          @apply text-sm text-gray-400;
        }

        .input label {
          @apply block text-sm font-medium leading-6 text-gray-900;
        }

        .input input {
          @apply block w-full rounded-md border-0 p-1.5 mt-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-pink-600 sm:text-sm sm:leading-6;
        }

        .checkbox {
          @apply h-4 w-4 rounded border-gray-300 text-pink-600 focus:ring-pink-600;
        }

        .checkbox + label {
          @apply ml-3 block text-sm leading-6 text-gray-900;
        }
      }
    </style>

    <script type="module">
      import { main } from "../../build/dev/javascript/lustre/examples/input.mjs";

      document.addEventListener("DOMContentLoaded", main);
    </script>
  </head>
  <body class="h-full">
    <div data-lustre-app></div>
  </body>
</html>