Rewrite website as a Hyprland desktop

This commit is contained in:
SirBlob committed 2026-10-26 14:33:05 -04:00
1 parent 7c52779cf6
commit 3065ad6092
197 files changed
+5609 -17779

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import Icon from '@iconify/svelte';
let { title, icon, href, children }: { title?: string; icon?: string; href?: string; children?: Snippet } = $props();
</script>
<svelte:element
this={href ? 'a' : 'article'}
class="panel"
class:linked={!!href}
{href}
target={href?.startsWith('http') ? '_blank' : undefined}
rel={href?.startsWith('http') ? 'noopener noreferrer' : undefined}
>
{#if title}
<header class="panel-title">
{#if icon}
<Icon {icon} width="16" />
{/if}
<span>{title}</span>
</header>
{/if}
{@render children?.()}
</svelte:element>
<style>
.panel {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 0.8rem 0.9rem;
border: 1px solid color-mix(in srgb, var(--foreground) 22%, transparent);
background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.linked:hover {
border-color: var(--accent);
background: color-mix(in srgb, var(--foreground) 7%, transparent);
}
.panel-title {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--accent);
font-weight: 700;
}
</style>