Move various tabs into buttons, more work on a11y

This commit is contained in:
Pieter Vander Vennet 2023-12-20 02:49:34 +01:00
parent 58fa9a4cd4
commit cce9b879f2
5 changed files with 105 additions and 25 deletions

View file

@ -0,0 +1,34 @@
<script lang="ts">
import Tr from "../Base/Tr.svelte"
import Translations from "../i18n/Translations"
const t = Translations.t.privacy
</script>
<div class="link-underline flex flex-col">
<Tr t={t.intro} />
<h3>
<Tr t={t.trackingTitle} />
</h3>
<Tr t={t.tracking} />
<h3>
<Tr t={t.geodataTitle} />
</h3>
<Tr t={t.geodataTitle} />
<h3>
<Tr t={t.editingTitle} />
</h3>
<Tr t={t.editing} />
<h3>
<Tr t={t.miscCookiesTitle} />
</h3>
<Tr t={t.miscCookies} />
<h3>
<Tr t={t.whileYoureHere} />
</h3>
<Tr t={t.surveillance} />
</div>

View file

@ -1,25 +0,0 @@
import Combine from "../Base/Combine"
import Translations from "../i18n/Translations"
import Title from "../Base/Title"
export default class PrivacyPolicy extends Combine {
constructor() {
const t = Translations.t.privacy
super([
new Title(t.title, 2),
t.intro,
new Title(t.trackingTitle),
t.tracking,
new Title(t.geodataTitle),
t.geodata,
new Title(t.editingTitle),
t.editing,
new Title(t.miscCookiesTitle),
t.miscCookies,
new Title(t.whileYoureHere),
t.surveillance,
])
this.SetClass("link-underline")
}
}