feat: blink

This commit is contained in:
dusk 2024-11-27 16:54:01 +03:00
parent e54b4912cf
commit 41e0234497
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
3 changed files with 22 additions and 6 deletions

View File

@ -62,9 +62,8 @@ import Window from '../../components/window.svelte';
<p class="text-error">you are ratelimited, try again in 30 seconds</p> <p class="text-error">you are ratelimited, try again in 30 seconds</p>
{/if} {/if}
{#if data.sendError} {#if data.sendError}
<p class="text-error">got error trying to send post</p> <details class="w-[50ch]">
<details> <summary class="text-error">got error trying to send post</summary>
<summary>error</summary>
<p>{data.sendError}</p> <p>{data.sendError}</p>
</details> </details>
{/if} {/if}
@ -79,9 +78,8 @@ import Window from '../../components/window.svelte';
woops, looks like you are being ratelimited, try again in like half a minute :3 woops, looks like you are being ratelimited, try again in like half a minute :3
</p> </p>
{:else if data.getError} {:else if data.getError}
<p class="text-error">got error trying to fetch entries, pls tell me about this</p> <details class="w-[50ch]">
<details> <summary class="text-error">got error trying to fetch entries</summary>
<summary>error</summary>
<p>{data.getError}</p> <p>{data.getError}</p>
</details> </details>
{:else} {:else}

View File

@ -28,6 +28,11 @@
content: '>>>> '; content: '>>>> ';
} }
.prose h1::after,.prose h2::after,.prose h3::after,.prose h4::after {
@apply animate-blink;
content: '_';
}
.prose a { .prose a {
text-decoration: none; text-decoration: none;
} }
@ -139,6 +144,18 @@
.dither-bg { .dither-bg {
backdrop-filter: url("#dither"); backdrop-filter: url("#dither");
} }
@keyframes blink {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
}
} }
@layer utilities { @layer utilities {

View File

@ -31,6 +31,7 @@ export default {
animation: { animation: {
'bounce-slow': 'bounce 3s infinite', 'bounce-slow': 'bounce 3s infinite',
'pulse-fast': 'pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite', 'pulse-fast': 'pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'blink': 'blink 1s step-start infinite',
}, },
colors: { colors: {
ralsei: { ralsei: {