-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
74 lines (68 loc) · 2.7 KB
/
demo.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alpine Confetti Demo</title>
<script src="https://cdn.tailwindcss.com"></script>
<script defer src="dist/browser.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
</head>
<body x-init="{}" class="h-screen flex flex-col justify-center">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="mx-auto max-w-3xl space-y-5">
<div class="bg-gray-50 sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg font-semibold leading-6 text-gray-900">
Confetti
</h3>
<div class="mt-2 max-w-xl text-base text-gray-500">
<p>Use <span class="font-mono">$confetti</span> to celebrate an interaction with your Alpine component.</p>
</div>
<div class="mt-5">
<button type="button"
x-on:click="$confetti()"
class="inline-flex items-center rounded-md bg-white px-3 py-2 text-base font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50">
🎉 Click Me!
</button>
</div>
</div>
</div>
<div class="bg-gray-50 sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg font-semibold leading-6 text-gray-900">
Starbust
</h3>
<div class="mt-2 max-w-xl text-base text-gray-500">
<p>Use <span class="font-mono">$starburst</span> to add a little magic to your UI.</p>
</div>
<div class="mt-5">
<button type="button"
x-on:mousemove.throttle="$starburst()"
class="inline-flex items-center rounded-md bg-white px-3 py-2 text-base font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50">
✨ Hover Me...
</button>
</div>
</div>
</div>
<div class="bg-gray-50 sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg font-semibold leading-6 text-gray-900">
Emojify
</h3>
<div class="mt-2 max-w-xl text-base text-gray-500">
<p>Use <span class="font-mono">$emojify</span> to surprise and/or annoy your users.</p>
</div>
<div class="mt-5">
<button type="button"
x-on:click="$emojify()"
class="inline-flex items-center rounded-md bg-white px-3 py-2 text-base font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50">
🤨 Really?
</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>