Skip to content

Commit 89d02b2

Browse files
committed
feat: added button and heading
1 parent 3ae4f01 commit 89d02b2

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

infrastructure/control-panel/src/lib/fragments/LiveDataFlow/LiveDataFlow.svelte

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Database01FreeIcons } from "@hugeicons/core-free-icons";
2+
import { Database01FreeIcons, PauseFreeIcons } from "@hugeicons/core-free-icons";
33
import { HugeiconsIcon } from "@hugeicons/svelte";
44
55
let isPaused = $state(false);
@@ -19,30 +19,40 @@
1919
}
2020
2121
@keyframes move {
22-
0% {
23-
offset-distance: 100%;
24-
opacity: 1;
25-
}
26-
25%{
27-
opacity: 1;
28-
}
29-
50%{
30-
opacity: 1;
31-
}
32-
75%{
33-
opacity: 1;
34-
}
35-
100% {
36-
offset-distance: 0%;
37-
opacity: 0;
38-
}
39-
}
22+
0% {
23+
offset-distance: 100%;
24+
opacity: 1;
25+
}
26+
60% {
27+
opacity: 1; /* dot visible along right and bottom */
28+
}
29+
70% {
30+
opacity: 0; /* start fading out on left curve */
31+
}
32+
80% {
33+
opacity: 0; /* fully invisible near top edge */
34+
}
35+
95% {
36+
opacity: 0;
37+
}
38+
100% {
39+
offset-distance: 0%;
40+
opacity: 0; /* remains invisible until teleport */
41+
}
42+
}
4043
</style>
4144

42-
<article class="w-full h-[80vh] px-16 flex items-center bg-gray rounded-md">
45+
<article class="w-full h-[80vh] px-16 py-6 flex flex-col items-center bg-gray rounded-md">
46+
<div class="w-full flex justify-between items-center mb-20.5">
47+
<h4 class="text-xl">Live Monitering</h4>
48+
<button class="px-4 py-3 flex items-center gap-2 text-base font-geist font-medium text-black-700 bg-white border border-[#e5e5e5] rounded-4xl">
49+
<HugeiconsIcon icon={PauseFreeIcons} size="24px"/>
50+
Pause Live Feed
51+
</button>
52+
</div>
4353
<div class="relative w-full flex justify-between items-center z-10">
4454
<!-- svelte-ignore element_invalid_self_closing_tag -->
45-
<div class="w-[92%] h-[175px] absolute top-[55%] start-[50%] z-[-1] translate-x-[-50%] bg-transparent border border-t-transparent border-s-green border-b-green border-e-green rounded-md">
55+
<div class="w-[88%] h-[175px] absolute top-[55%] start-[50%] z-[-1] translate-x-[-50%] bg-transparent border border-t-transparent border-s-green border-b-green border-e-green rounded-md">
4656
<div class="dot absolute h-2.5 w-2.5 top-0 start-[-1px] bg-green rounded-full"/>
4757
</div>
4858

0 commit comments

Comments
 (0)