chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
@hud/shell 0.5.0 Latest 5 packages
0
0
<script lang="ts">
import type { Hearts } from './double-tap.svelte';
// The hearts of double-taps (./double-tap.svelte.ts), each where it was
// in what draws them (positioned): it pops up, holds, and fades, as
// Grain's does; without motion it shows still, then goes.
let { hearts }: { hearts: Hearts } = $props();
</script>
{#each hearts.shown as burst (burst.id)}
<svg class="burst" viewBox="0 0 24 24" aria-hidden="true" style:left="{burst.x}px" style:top="{burst.y}px"
><path d="M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.5.7-1.3 2.2-2.5 4.3-2.5 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z" /></svg
>
{/each}
<style>
.burst {
position: absolute;
width: 6rem;
height: 6rem;
translate: -50% -50%;
fill: #ff4066;
filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.35));
pointer-events: none;
animation: burst 800ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}
@keyframes burst {
0% {
scale: 0.3;
opacity: 0;
}
25% {
scale: 1.15;
opacity: 1;
}
45% {
scale: 1;
}
75% {
opacity: 1;
}
100% {
scale: 1.1;
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.burst {
animation-duration: 1ms;
animation-delay: 600ms;
}
}
</style>