~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
44 lines · 995 B Raw History
<script lang="ts">
	// What shows while something is on its way: a spinner and what is coming,
	// so the frame is never blank.
	let { label = 'Loading…' }: { label?: string } = $props();
</script>

<div class="loading" role="status" aria-live="polite">
	<span class="spinner" aria-hidden="true"></span>
	<span>{label}</span>
</div>

<style>
	.loading {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: var(--hud-space-2);
		min-height: 8rem;
		padding: var(--hud-space-5) var(--hud-space-4);
		color: var(--color-text-secondary);
		font-size: var(--font-text-sm-size);
	}

	.spinner {
		width: 1rem;
		height: 1rem;
		border: 2px solid var(--color-border-primary);
		border-top-color: var(--color-text-secondary);
		border-radius: var(--border-radius-full);
		animation: spin 0.8s linear infinite;
	}

	@media (prefers-reduced-motion: reduce) {
		.spinner {
			animation-duration: 2.4s;
		}
	}

	@keyframes spin {
		to {
			transform: rotate(360deg);
		}
	}
</style>