kopia lustrzana https://github.com/cloudflare/wildebeest
improve a11y of first-login and start-instance pages
rodzic
80f587d260
commit
273f97de68
|
@ -1,4 +1,5 @@
|
|||
import { component$ } from '@builder.io/qwik'
|
||||
import { DocumentHead } from '@builder.io/qwik-city'
|
||||
import { WildebeestLogo } from '~/components/MastodonLogo'
|
||||
import { useDomain } from '~/utils/useDomain'
|
||||
|
||||
|
@ -45,3 +46,15 @@ export default component$(() => {
|
|||
</div>
|
||||
)
|
||||
})
|
||||
|
||||
export const head: DocumentHead = () => {
|
||||
return {
|
||||
title: 'Wildebeest Login',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: 'Wildebeest Login page',
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { $, component$, useStore, useClientEffect$, useSignal } from '@builder.io/qwik'
|
||||
import { DocumentHead } from '@builder.io/qwik-city'
|
||||
import { WildebeestLogo } from '~/components/MastodonLogo'
|
||||
import { useDomain } from '~/utils/useDomain'
|
||||
import Step1 from './step-1'
|
||||
|
@ -58,3 +59,15 @@ export default component$(() => {
|
|||
</div>
|
||||
)
|
||||
})
|
||||
|
||||
export const head: DocumentHead = () => {
|
||||
return {
|
||||
title: 'Wildebeest Start Instance',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: 'Wildebeest Instance Setup page',
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ export default component$<Props>(({ instanceConfig, setLoading, setInstanceConfi
|
|||
<input
|
||||
id="start-instance-title"
|
||||
name="title"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-400 focus:border-wildebeest-vibrant-400 invalid:border-red-400 flex-1 w-full"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500 invalid:border-red-400 flex-1 w-full"
|
||||
value={instanceConfig.title}
|
||||
onInput$={(ev) => (instanceConfig.title = (ev.target as HTMLInputElement).value)}
|
||||
/>
|
||||
|
@ -36,7 +36,7 @@ export default component$<Props>(({ instanceConfig, setLoading, setInstanceConfi
|
|||
id="start-instance-email"
|
||||
name="email"
|
||||
type="email"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-400 focus:border-wildebeest-vibrant-400 invalid:border-red-400 flex-1 w-full"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500 invalid:border-red-400 flex-1 w-full"
|
||||
value={instanceConfig.email}
|
||||
onInput$={(ev) => (instanceConfig.email = (ev.target as HTMLInputElement).value)}
|
||||
/>
|
||||
|
@ -51,7 +51,7 @@ export default component$<Props>(({ instanceConfig, setLoading, setInstanceConfi
|
|||
<input
|
||||
id="start-instance-description"
|
||||
name="description"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-400 focus:border-wildebeest-vibrant-400 invalid:border-red-400 flex-1 w-full"
|
||||
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500 invalid:border-red-400 flex-1 w-full"
|
||||
value={instanceConfig.description}
|
||||
onInput$={(ev) => (instanceConfig.description = (ev.target as HTMLInputElement).value)}
|
||||
/>
|
||||
|
@ -60,7 +60,7 @@ export default component$<Props>(({ instanceConfig, setLoading, setInstanceConfi
|
|||
|
||||
<button
|
||||
type="submit"
|
||||
class="mb-9 bg-wildebeest-vibrant-400 hover:bg-wildebeest-vibrant-500 p-3 text-white text-uppercase border-wildebeest-vibrant-400 text-lg text-semi outline-none border rounded hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500"
|
||||
class="mb-9 bg-wildebeest-vibrant-500 hover:bg-wildebeest-vibrant-600 p-3 text-white text-uppercase border-wildebeest-vibrant-500 text-lg text-semi outline-none border rounded hover:border-wildebeest-vibrant-600 focus:border-wildebeest-vibrant-600"
|
||||
preventdefault:click
|
||||
onClick$={async () => {
|
||||
setLoading(true)
|
||||
|
|
Ładowanie…
Reference in New Issue