Skip to content

Commit b115904

Browse files
committed
add example
1 parent a2f09f1 commit b115904

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/assets/circular.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<div class="grid-container">
22
<div class="row row-1">
3-
</div>
4-
<div class="row row-2">
53
<div class="bigbang" >
64
<div class="gravity-spot">
75
<div class="gravity-spot">
@@ -62,5 +60,10 @@
6260
</div>
6361

6462
</div>
63+
<div class="row row-2">
64+
Spin the wheel to set timer. Long-press to reset.
65+
</div>
66+
6567
</div>
68+
6669

src/content/docs/examples/circular_time.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ import vue from '/src/assets/circular.js?raw';
1111
export const CSS = `
1212
.grid-container {
1313
display: grid;
14-
grid-template-rows: 5% 95%;
14+
grid-template-rows: 95% 5%;
1515
height: 100vh;
1616
}
17+
.row-2{
18+
text-align: center;
19+
color: gray
20+
}
1721
* {
1822
user-select: none
1923
}
@@ -44,7 +48,10 @@ background: white; font-size: 13px;
4448

4549
<ZumerPlay name={'scifi1'} framework="vue" htmlCode={htmlCal} cssCode={CSS} jsCode={vue} height={'500px'} />
4650

47-
**Credits:** reference author repo TODO
51+
**Credits:**
52+
53+
- Original work: https://github.com/harfyzz/CircularTimer by [harfyzz](https://github.com/harfyzz)
54+
- Thanks to [Andriy Tyurnikov](https://github.com/andriytyurnikov) who proposed the challenge 🙌
4855

4956

5057
## Show & Tell

0 commit comments

Comments
 (0)