-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (53 loc) · 2.87 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@bedard/tailwindcss-dialogs</title>
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=quicksand:500&display=swap" rel="stylesheet" />
</head>
<body class="overflow-hidden">
<div class="bg-gray-50 h-screen overflow-hidden">
<img class="absolute top-1/2 left-1/2 max-w-none -translate-x-1/2 -translate-y-1/2" src="/beams.jpg" width="1308" />
<div class="absolute inset-0 bg-[url(/grid.svg)] bg-center [mask-image:linear-gradient(180deg,white,rgba(255,255,255,0))]"></div>
<div class="absolute inset-0 px-6 py-12 xl:py-20">
<div class="flex flex-col gap-y-6 h-screen items-center max-w-screen-xl mx-auto text-center xl:gap-y-12">
<a
class="font-medium text-lg
hover:text-rose-500"
href="https://github.com/scottbedard/tailwindcss-dialogs"
target="_blank">
@bedard/tailwindcss-dialogs
</a>
<button
class="text-3xl tracking-wider hover:text-rose-500"
onclick="document.querySelector('dialog').showModal()">
Click here to trigger a dialog
</button>
</div>
</div>
</div>
<dialog
class="bg-transparent allow-discrete duration-500 ease-out max-w-screen-sm transition-all opacity-0 -translate-y-6 backdrop:bg-rose-300/0 backdrop:transition-all backdrop:duration-500 backdrop:ease-out open:backdrop:bg-rose-300/20 open:opacity-100 open:translate-y-0 open:from:-translate-y-6 open:from:backdrop:bg-rose-300/0"
onclick="this.close()">
<div
class="bg-gray-100 drop-shadow-xl m-6 gap-6 grid p-6 rounded-lg"
onclick="event.stopPropagation()">
<div class="leading-loose">
Let's build some happy little clouds up here. Give him a friend, we forget the trees get lonely too. I'm sort of a softy, I couldn't shoot Bambi except with a camera. All of these beautiful, beautiful things will happen. Anything. As long as you believe.
</div>
<div class="flex justify-end">
<a
class="flex gap-x-1 items-center tracking-wide hover:text-rose-500"
href="https://github.com/scottbedard/tailwindcss-dialogs"
target="_blank">
Visit repository <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
</a>
</div>
</div>
</dialog>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>