-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (67 loc) · 2.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width user-scalable=no initial-scale=1.0 minimum-scale=1.0 maximum-scale=1.0">
<title>bs-hovercard-element demo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
</head>
<body>
<main class="container py-4 vstack gap-4">
<h1><bs-hovercard> element</h1>
<div>
<bs-hovercard>
<a href="#">SonicGarden</a>
<template slot="content">
<div class="hstack align-items-start gap-2">
<img src="https://avatars.githubusercontent.com/u/762682?s=200&v=4" class="img-thumbnail" style="width: 32px; height: 32px;">
<div class="vstack gap-2">
<div class="hstack gap-2">
<span class="font-weight-bold">SonicGarden.inc</span>
<a href="https://github.com/SonicGarden" class="text-muted text-decoration-none">@SonicGarden</a>
</div>
<div class="text-muted">
<span>1,960</span>
<span>Followers</span>
</div>
</div>
</div>
</template>
</bs-hovercard>
</div>
<div>
<bs-hovercard>
<a href="#">SonicGarden</a>
<template slot="content">
<div class="hstack align-items-start gap-2">
<img src="https://avatars.githubusercontent.com/u/762682?s=200&v=4" class="img-thumbnail" style="width: 32px; height: 32px;">
<div class="vstack gap-2">
<div class="hstack gap-2">
<span class="font-weight-bold">SonicGarden.inc</span>
<a href="https://github.com/SonicGarden" class="text-muted text-decoration-none">@SonicGarden</a>
</div>
<div class="text-muted">
<span>1,960</span>
<span>Followers</span>
</div>
</div>
</div>
</template>
</bs-hovercard>
</div>
<div>
<bs-hovercard placement="bottom">
<a href="#">SonicGarden</a>
<div slot="content" hidden>
<include-fragment src="../examples/pull.html" loading="lazy">Loading...</include-fragment>
</div>
</bs-hovercard>
</div>
</main>
<script type="module" src="https://unpkg.com/@github/include-fragment-element@latest?module"></script>
<script type="module">
// import 'https://cdn.skypack.dev/@sonicgarden/bs-hovercard-element'
import './src/bs-hovercard-element.ts'
</script>
</body>
</html>