Shitty temporary settings page lol

This commit is contained in:
Michał 2023-04-20 21:21:05 +00:00
parent a1d0ac9f90
commit 54eecf0784
3 changed files with 51 additions and 11 deletions

View file

@ -0,0 +1,29 @@
.settings-content
margin: 0.5rem
padding: 1rem
position: relative
display: flex
flex-direction: column
justify-content: center
gap: 1rem
background-color: RGB($bg-400)
color: RGB($fg-white)
border: 2px solid RGB($bg-200)
border-radius: $rad-inner
h2
margin: 0
padding: 0
font-size: 1.5rem
font-weight: 700
h3
margin: 0
padding: 0
font-size: 1.25rem
font-weight: 700

View file

@ -19,6 +19,7 @@
@import "components/buttons/block"
@import "components/image-view/view"
@import "components/settings"
// Reset
*

View file

@ -14,17 +14,27 @@
</div>
</div>
<div class="settings-content">
<h1>Gwa Gwa</h1>
<div class="settings-content" id="profileSettings">
<h2>Profile Settings</h2>
<form method="POST" action="{{ url_for('api.user_picture', user_id=current_user.id) }}" enctype="multipart/form-data">
<h3>Profile Picture</h3>
<input type="file" name="file" tab-index="-1"/>
<input type="submit" value="Upload" class="btn-block">
</form>
<form method="POST" action="{{ url_for('api.user_username', user_id=current_user.id) }}" enctype="multipart/form-data">
<h3>Username</h3>
<input type="text" name="name" class="input-block" value="{{ current_user.username }}" />
<input type="submit" value="Upload" class="btn-block"/>
</form>
</div>
<form method="POST" action="{{ url_for('api.user_picture', user_id=current_user.id) }}" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
<form method="POST" action="{{ url_for('api.user_username', user_id=current_user.id) }}" enctype="multipart/form-data">
<input type="text" name="name">
<input type="submit" value="Upload">
</form>
<div class="settings-content" id="profileSettings">
<h2>Account Settings</h2>
<form method="POST" action="" enctype="multipart/form-data">
<h3>Email</h3>
<input type="text" name="email" class="input-block" value="{{ current_user.email }}" />
<input type="submit" value="Upload" class="btn-block"/>
</form>
</div>
{% endblock %}