Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
23 lines
576 B
Svelte
23 lines
576 B
Svelte
<script lang="ts">
|
|
import { cn } from "$lib/utils";
|
|
import { i18n } from "$lib/i18n";
|
|
|
|
let {
|
|
href = "#main-content",
|
|
class: className = ""
|
|
}: {
|
|
href?: string;
|
|
class?: string;
|
|
} = $props();
|
|
</script>
|
|
|
|
<a
|
|
{href}
|
|
class={cn(
|
|
"sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-[60] focus:rounded-md focus:bg-background focus:px-3 focus:py-2 focus:text-sm focus:font-medium focus:text-foreground focus:shadow-md focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-ring",
|
|
className
|
|
)}
|
|
>
|
|
{i18n.t("a11y.skipToContent")}
|
|
</a>
|