Compare commits
1 commit
451bc19283
...
da6ec9b6e8
| Author | SHA1 | Date | |
|---|---|---|---|
| da6ec9b6e8 |
2 changed files with 6 additions and 22 deletions
|
|
@ -3,7 +3,7 @@ name: Build and Deploy
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
|
|
|||
|
|
@ -21,14 +21,6 @@
|
|||
|
||||
let audio: HTMLAudioElement;
|
||||
let showNotification = $state(false);
|
||||
let showCopyNotification = $state(false);
|
||||
|
||||
function copyCurlCommand() {
|
||||
navigator.clipboard.writeText("curl https://satr14.my.id").then(() => {
|
||||
showCopyNotification = true;
|
||||
setTimeout(() => showCopyNotification = false, 3000);
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
function playAudio() {
|
||||
if (audio.paused) {
|
||||
|
|
@ -69,14 +61,6 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
{#if showCopyNotification}
|
||||
<div class="z-50 fixed top-6 right-6 left-6 flex justify-center items-center">
|
||||
<div class="flex items-center gap-3 bg-ctp-surface0 text-ctp-text px-4 py-3 rounded-xl shadow-lg border border-ctp-sky" transition:fly={{ y: 20, duration: 300, easing: cubicOut }}>
|
||||
<p class="m-0 font-medium">Copied to clipboard</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="fixed top-0 left-0 w-full h-full animate-[rainbow_20s_linear_infinite,breathing_8s_ease-in-out_infinite]" style="background: linear-gradient(-6deg, hsl(var(--rainbow-hue-bottom), 70%, 60%), transparent, hsl(var(--rainbow-hue-top), 70%, 60%));" transition:fade={{
|
||||
duration: 1500, easing: cubicOut
|
||||
}}></div>
|
||||
|
|
@ -133,7 +117,7 @@
|
|||
{/each}
|
||||
</div>
|
||||
<a href="/#abt" id="abt" class="text-center no-underline text-xl font-extrabold" onclick={playAudio}>↑</a>
|
||||
<p onclick={copyCurlCommand} class="text-center m-0 font-mono italic hidden md:block cursor-pointer hover:text-ctp-sky">curl https://satr14.my.id</p>
|
||||
<p class="text-center m-0 font-mono italic hidden md:block">curl https://satr14.my.id</p>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
|
@ -175,11 +159,11 @@
|
|||
</div>
|
||||
</article>
|
||||
|
||||
<div class="opacity-75 hover:opacity-100 flex justify-center gap-6 pb-6 no-underline text-ctp-text">
|
||||
<a href="https://nixwebr.ing/prev/satr14"><prev</a>
|
||||
<a href="https://nixwebr.ing">nix-webring</a>
|
||||
<div class="opacity-75 hover:opacity-100 flex justify-center gap-6 font-extrabold pb-6 no-underline text-ctp-text">
|
||||
<a href="https://nixwebr.ing/prev/satr14"><</a>
|
||||
<a href="https://nixwebr.ing" class="italic font-">nix-webring</a>
|
||||
<a href="https://nixwebr.ing/rand">⚂</a>
|
||||
<a href="https://nixwebr.ing/next/satr14">next></a>
|
||||
<a href="https://nixwebr.ing/next/satr14">></a>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue