feat: Refine layout of account settings for improved clarity
This commit is contained in:
1 parent
3120c54b6c
commit
b02d8c6c2d
1 file changed
+15
-4
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
|
||||
<!-- About -->
|
||||
<div>
|
||||
<div class="p-4 border border-gray-200 rounded-md bg-white/50">
|
||||
<label for="about" class="block text-sm font-medium text-primary mb-1">About</label>
|
||||
<div class="flex items-start">
|
||||
<textarea id="about" name="about" rows="5" class="flex-grow text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">{{ page.about }}</textarea>
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div>
|
||||
<div class="p-4 border border-gray-200 rounded-md bg-white/50">
|
||||
<label for="email" class="block text-sm font-medium text-primary mb-1">Email</label>
|
||||
<input type="email" id="email" name="email" value="{{ page.email }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
|
||||
<p class="mt-1 text-xs text-text-muted">Only admins see your email. To share publicly, add to the 'about' box.</p>
|
||||
@@ -77,6 +77,7 @@
|
||||
<option value="yes" {% if page.showdead == "yes" %}selected{% endif %}>Yes</option>
|
||||
<option value="no" {% if page.showdead == "no" %}selected{% endif %}>No</option>
|
||||
</select>
|
||||
<p class="mt-1 text-xs text-text-muted">Show comments flagged as dead?</p>
|
||||
</div>
|
||||
<!-- noprocrast -->
|
||||
<div>
|
||||
@@ -85,28 +86,38 @@
|
||||
<option value="yes" {% if page.noprocrast == "yes" %}selected{% endif %}>Yes</option>
|
||||
<option value="no" {% if page.noprocrast == "no" %}selected{% endif %}>No</option>
|
||||
</select>
|
||||
<p class="mt-1 text-xs text-text-muted">Prevent doomscrolling with time limits?</p>
|
||||
</div>
|
||||
|
||||
<!-- Spacer or Subheading for Time Limits -->
|
||||
<div class="md:col-span-3 mt-4 pt-4 border-t border-gray-200">
|
||||
<h3 class="text-sm font-medium text-primary mb-2">Procrastination Settings</h3>
|
||||
</div>
|
||||
|
||||
<!-- maxvisit -->
|
||||
<div>
|
||||
<label for="maxvisit" class="block text-sm font-medium text-primary mb-1">Max Visit (mins)</label>
|
||||
<input type="number" id="maxvisit" name="maxv" value="{{ page.maxvisit }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
|
||||
<p class="mt-1 text-xs text-text-muted">Max time per visit.</p>
|
||||
</div>
|
||||
<!-- minaway -->
|
||||
<div>
|
||||
<label for="minaway" class="block text-sm font-medium text-primary mb-1">Min Away (mins)</label>
|
||||
<input type="number" id="minaway" name="mina" value="{{ page.minaway }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
|
||||
<p class="mt-1 text-xs text-text-muted">Required break time.</p>
|
||||
</div>
|
||||
<!-- delay -->
|
||||
<div>
|
||||
<label for="delay" class="block text-sm font-medium text-primary mb-1">Submit Delay (mins)</label>
|
||||
<input type="number" id="delay" name="delay" value="{{ page.delay }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
|
||||
<p class="mt-1 text-xs text-text-muted">Delay before submitting.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End of tab-preferences -->
|
||||
|
||||
<div id="tab-links" class="hidden [&:target]:block space-y-2">
|
||||
<div id="tab-links" class="hidden [&:target]:block space-y-4"> <!-- Increased space-y -->
|
||||
<!-- Links Section -->
|
||||
<div> <!-- Removed top border and padding from original div -->
|
||||
<div>
|
||||
<p><a href="{{ page.change_password_uri }}" class="text-primary text-sm hover:underline">Change Password</a></p>
|
||||
<p><a href="{{ page.submissions_uri }}" class="text-primary text-sm hover:underline">View Submissions</a></p>
|
||||
<p><a href="{{ page.comments_uri }}" class="text-primary text-sm hover:underline">View Comments</a></p>
|
||||
|
||||
Reference in new issue
Block a user