feat: Update account settings to match notifications style and add navigation for merit history

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 18:34:30 +08:00
1 parent 787c5b36ec
commit 0d7d7eb159
1 file changed
+14 -4
+14 -4
View File
@@ -62,6 +62,11 @@
<input type="email" id="email" name="email" value="{{ page.email }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">
<p class="mt-1 text-xs text-text-muted">Only admins see your email. To share publicly, add to the 'about' box.</p>
</div>
<!-- Update Button (Remains outside tab panes) -->
<div class="pt-4 border-t border-gray-200">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">Update Profile</button>
</div>
</div> <!-- End of tab-profile -->
<div id="tab-preferences" class="hidden [&:target]:block space-y-6">
@@ -110,6 +115,11 @@
<p class="mt-1 text-xs text-text-muted">Delay before submitting.</p>
</div>
</div>
<!-- Update Button (Remains outside tab panes) -->
<div class="pt-4 border-t border-gray-200">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">Update Profile</button>
</div>
</div> <!-- End of tab-preferences -->
<div id="tab-links" class="hidden [&:target]:block space-y-4"> <!-- Increased space-y -->
@@ -198,12 +208,12 @@
</ul>
<!-- End Static Examples -->
{% endif %}
</div> <!-- End of tab-merits -->
<!-- Update Button (Remains outside tab panes) -->
<div class="pt-4 border-t border-gray-200">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">Update Profile</button>
<!-- Link to Merit History -->
<div class="mt-4">
<a href="{{ page.merit_history_uri }}" class="text-primary text-sm hover:underline font-action">View Full Merit History</a>
</div>
</div> <!-- End of tab-merits -->
</form>
</div>
</div>