Improve a11y

This commit is contained in:
Schluffe committed 2026-10-09 14:55:05 +02:00
1 parent e9818aaeda
commit 00b2ec7d5c
8 files changed
+105 -35

No files matched your search

+14 -11
View File
@@ -7,19 +7,22 @@ const mode = ref<'send' | 'receive'>('send');
</script>
<template>
<h1>HellCon</h1>
<p class="subtitle">
Browser-to-browser file sharing. No account or file-hosting backend.
Direct WebRTC connections, with an optional relay you explicitly enable.
</p>
<a class="skip-link" href="#main-content">Skip to main content</a>
<main id="main-content" tabindex="-1">
<h1>HellCon</h1>
<p class="subtitle">
Browser-to-browser file sharing. No account or file-hosting backend.
Direct WebRTC connections, with an optional relay you explicitly enable.
</p>
<div class="tabs" style="width: 100%; max-width: 680px">
<button :class="{ active: mode === 'send' }" @click="mode = 'send'">Send</button>
<button :class="{ active: mode === 'receive' }" @click="mode = 'receive'">Receive</button>
</div>
<div class="tabs" role="group" aria-label="Transfer mode">
<button :class="{ active: mode === 'send' }" :aria-pressed="mode === 'send'" @click="mode = 'send'">Send</button>
<button :class="{ active: mode === 'receive' }" :aria-pressed="mode === 'receive'" @click="mode = 'receive'">Receive</button>
</div>
<SendPanel v-if="mode === 'send'" />
<ReceivePanel v-else />
<SendPanel v-if="mode === 'send'" />
<ReceivePanel v-else />
</main>
<footer>
<p>