Skip to content

Commit

Permalink
fix: a11y
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Song <theevansong@gmail.com>
  • Loading branch information
ferothefox committed Oct 16, 2024
1 parent 4681080 commit f5b3d02
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions apps/frontend/src/pages/servers/manage/[id]/options/network.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
<Modal ref="newAllocationModal" header="">
<UiServersPyroModal header="New allocation" :data="data" @modal="newAllocationModal?.hide()">
<div class="flex flex-col gap-2">
<div class="font-semibold text-contrast">Name<span class="text-red-500">*</span></div>
<label for="new-allocation-name" class="font-semibold text-contrast">
Name<span class="text-red-500">*</span>
</label>
<input
id="new-allocation-name"
v-model="newAllocationName"
type="text"
class="bg-bg-input w-full rounded-lg p-4"
Expand All @@ -23,8 +26,11 @@
<Modal ref="editAllocationModal" header="">
<UiServersPyroModal header="Edit allocation" :data="data" @modal="editAllocationModal?.hide()">
<div class="flex flex-col gap-2">
<div class="font-semibold text-contrast">Name<span class="text-red-500">*</span></div>
<label for="edit-allocation-name" class="font-semibold text-contrast">
Name<span class="text-red-500">*</span>
</label>
<input
id="edit-allocation-name"
v-model="newAllocationName"
type="text"
class="bg-bg-input w-full rounded-lg p-4"
Expand All @@ -43,12 +49,13 @@
<div class="flex h-full flex-col">
<!-- Subdomain section -->
<div class="card flex flex-col gap-4">
<label for="username-field" class="flex flex-col gap-2">
<label for="server-subdomain" class="flex flex-col gap-2">
<span class="text-lg font-bold text-contrast">Custom Subdomain</span>
<span> Your friends can connect to your server using this URL. </span>
</label>
<div class="flex w-full items-center gap-2 md:w-[60%]">
<input
id="server-subdomain"
v-model="serverSubdomain"
class="h-[50%] w-[63%]"
maxlength="32"
Expand All @@ -64,7 +71,7 @@

<div class="card flex flex-col gap-4">
<div class="flex w-full flex-row items-center justify-between">
<label for="username-field" class="flex flex-col gap-2">
<label for="user-domain" class="flex flex-col gap-2">
<span class="text-lg font-bold text-contrast">Generated DNS records</span>
<span>
Setup your personal domain to connect to your server via custom DNS records.
Expand All @@ -75,6 +82,7 @@
</div>

<input
id="user-domain"
v-model="userDomain"
class="w-full md:w-[50%]"
maxlength="64"
Expand Down Expand Up @@ -134,13 +142,13 @@
<!-- Allocations section -->
<div class="card flex flex-col gap-4">
<div class="flex w-full flex-row items-center justify-between">
<label for="username-field" class="flex flex-col gap-2">
<div class="flex flex-col gap-2">
<span class="text-lg font-bold text-contrast">Allocations</span>
<span>
Configure additional ports for internet-facing features like map viewers or voice
chat mods.
</span>
</label>
</div>

<ButtonStyled type="standard" color="brand" @click="newAllocationModal.show()">
<button>
Expand Down

0 comments on commit f5b3d02

Please sign in to comment.