feat: add text formatting help and back button to navbar

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-04 21:04:43 +08:00
1 parent d168b1398f
commit 1f8901be69
3 files changed
+10 -7

No files matched your search

+3 -3
View File
@@ -52,8 +52,8 @@
<label for="about" class="block text-sm font-medium text-primary mb-1">About</label> <label for="about" class="block text-sm font-medium text-primary mb-1">About</label>
<div class="flex items-start"> <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-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">{{ page.about }}</textarea> <textarea id="about" name="about" rows="5" class="flex-grow 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">{{ page.about }}</textarea>
<a href="/formatdoc" tabindex="-1" class="ml-2 mt-1 text-xs text-primary hover:underline flex-shrink-0">help</a>
</div> </div>
<p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long. <span><a class="hover:underline" href="/formatdoc">Need help to format text?</a></span></p>
</div> </div>
<!-- Email --> <!-- Email -->
@@ -65,7 +65,7 @@
<!-- Update Button (Remains outside tab panes) --> <!-- Update Button (Remains outside tab panes) -->
<div class="pt-4 border-t border-gray-200"> <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> <button type="submit" class="w-full md:w-auto 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>
</div> <!-- End of tab-profile --> </div> <!-- End of tab-profile -->
@@ -118,7 +118,7 @@
<!-- Update Button (Remains outside tab panes) --> <!-- Update Button (Remains outside tab panes) -->
<div class="pt-4 border-t border-gray-200"> <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> <button type="submit" class="w-full md:w-auto 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>
</div> <!-- End of tab-preferences --> </div> <!-- End of tab-preferences -->
+6 -3
View File
@@ -1,11 +1,14 @@
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
<div class="max-w-screen-lg mx-auto px-4"> <div class="max-w-screen-lg mx-auto px-4">
<div class="flex justify-between"> <div class="flex justify-between">
<div class="flex"> <div class="flex items-center space-x-2">
<a class="py-2 px-3 font-bold text-primary" href="/"> <a href="#" class="text-primary text-sm leading-none inline-block" title="Back">
<i class="fas fa-arrow-left"></i>
</a>
<a class="py-2 font-bold text-primary" href="/">
{{ page.title }} {{ page.title }}
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</nav> </nav>
+1 -1
View File
@@ -1,5 +1,5 @@
--- ---
layout: simple layout: content
title: Formatting Options title: Formatting Options
permalink: /formatdoc/ permalink: /formatdoc/
--- ---