-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotspot.stories.js
85 lines (81 loc) · 2.48 KB
/
Hotspot.stories.js
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
75
76
77
78
79
80
81
82
83
84
85
// Hotspot.stories.js
import { html } from 'lit-html'
import(
'../../web-components-toolbox/src/es/components/atoms/hotspot/Hotspot'
).then((module) => self.customElements.define('a-hotspot', module.default))
export default {
title: 'Atoms/Hotspot',
component: 'a-hotspot'
}
export const Default = () => html`
<div style="background-color: gray; height: 80vh; position: relative;">
<a-hotspot top="35" left="20" place="right">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot top="70" left="35" place="top">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot top="35" left="80" place="left">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot top="20" left="40" place="bottom">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
</div>
`
export const Helper = () => html`<div
style="background-color: gray; height: 80vh; position: relative;"
>
<a-hotspot namespace="hotspot-helper-" top="35" left="20" place="right">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot namespace="hotspot-helper-" top="70" left="35" place="top">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot namespace="hotspot-helper-" top="35" left="80" place="left">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
<a-hotspot namespace="hotspot-helper-" top="20" left="40" place="bottom">
<div class="content">
<h3>Walk of Fame</h3>
<article>
<p>Gut. Besser. Am besten. Die Eigenproduktion der Migros.</p>
</article>
</div>
</a-hotspot>
</div> `