feat(frontend): add initial /settings page

This commit is contained in:
Sam 2023-03-13 17:11:05 +01:00
parent 8d208ff7cd
commit 72b54512aa
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 222 additions and 13 deletions

View file

@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from "$app/navigation";
import {
MAX_DESCRIPTION_LENGTH,
userAvatars,
WordStatus,
type APIError,
@ -265,7 +266,7 @@
<Input bind:value={display_name} />
</FormGroup>
<div>
<FormGroup floating label="Bio ({bio.length}/1000)">
<FormGroup floating label="Bio ({bio.length}/{MAX_DESCRIPTION_LENGTH})">
<textarea style="min-height: 100px;" class="form-control" bind:value={bio} />
</FormGroup>
</div>