-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (70 loc) 路 2.11 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
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en" class="dark" hidden>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Windify 馃尙</title>
<style lang="windify">
.box {
@apply
py-8 px-8 inline-flex mx-auto
bg-white dark:bg-gray-400 dark:bg-opacity-10
rounded-xl shadow-md space-y-2;
}
.btn {
@apply
px-4 py-1 text-sm text-purple-600 font-semibold
rounded-full border border-purple-200 dark:border-purple-800
hover:text-white hover:bg-purple-600 hover:border-transparent
focus:outline-none focus:ring-2 ring-purple-600 ring-opacity-40;
}
.bello {
@apply bg-orange-300;
}
</style>
</head>
<body class="bg-gray-100 dark:bg-gray-900">
<h1 onclick='document.body.innerHTML = `
<div class="flex">
<div class="box">
<div class="text-center space-y-2">
<div class="space-y-0.5">
<p class="text-lg text-black dark:text-white font-semibold mb-2">
Daniel Dietrich
</p>
<p class="text-gray-500 dark:text-gray-300 font-medium pb-3">
Software Engineer
</p>
</div>
<button class="btn">
Say hello!
</button>
</div>
</div>
</div>
`
'>
<p>Windify 馃尙</p>
<hello-world style="background-color: red">
<span slot="ddd">Daniel!</span>
</hello-world>
</h1>
<web-component name="hello-world" mode="open">
<template>
<h1>Hello <slot name="ddd"></slot></h1>
</template>
</web-component>
<script type="module">
import candid from "https://esm.run/candid";
import windify from "./src/index.js";
window.addEventListener('load', () => {
windify({
config: {
darkMode: 'class'
}
}).then(api => candid(api));
});
</script>
</body>
</html>