style: Compact account form fields using HTML table

This commit is contained in:
Your Name (aider) committed 2025-04-28 08:09:27 +00:00
1 parent 719e4a0058
commit 32b04265c1
1 file changed
+62 -40
+62 -40
View File
@@ -58,52 +58,74 @@
</div> </div>
<form class="space-y-4"> <form class="space-y-4">
<div class="flex items-center"> <table class="w-full">
<label for="username" class="w-1/4 text-text-muted">Username:</label> <tr>
<input type="text" id="username" name="username" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser" readonly> <td class="w-1/4 text-text-muted">Username:</td>
</div> <td class="w-3/4">
<div class="flex items-center"> <input type="text" id="username" name="username" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser" readonly>
<label for="created" class="w-1/4 text-text-muted">Created:</label> </td>
<input type="text" id="created" name="created" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="January 1, 2023" readonly> </tr>
</div> <tr>
<div class="flex items-center"> <td class="w-1/4 text-text-muted">Created:</td>
<label for="karma" class="w-1/4 text-text-muted">Karma:</label> <td class="w-3/4">
<input type="text" id="karma" name="karma" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="1234" readonly> <input type="text" id="created" name="created" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="January 1, 2023" readonly>
</div> </td>
<div class="flex items-center"> </tr>
<label for="about" class="w-1/4 text-text-muted">About:</label> <tr>
<textarea id="about" name="about" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" rows="4">I love sharing my desk moments and finding new things to try.</textarea> <td class="w-1/4 text-text-muted">Karma:</td>
</div> <td class="w-3/4">
<div class="flex items-center"> <input type="text" id="karma" name="karma" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="1234" readonly>
<label for="email" class="w-1/4 text-text-muted">Email:</label> </td>
<input type="email" id="email" name="email" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser@example.com"> </tr>
</div> <tr>
<div class="flex items-center"> <td class="w-1/4 text-text-muted">About:</td>
<label for="showdead" class="w-1/4 text-text-muted">Showdead:</label> <td class="w-3/4">
<select id="showdead" name="showdead" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary"> <textarea id="about" name="about" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" rows="4">I love sharing my desk moments and finding new things to try.</textarea>
</td>
</tr>
<tr>
<td class="w-1/4 text-text-muted">Email:</td>
<td class="w-3/4">
<input type="email" id="email" name="email" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser@example.com">
</td>
</tr>
<tr>
<td class="w-1/4 text-text-muted">Showdead:</td>
<td class="w-3/4">
<select id="showdead" name="showdead" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
<option value="yes">Yes</option> <option value="yes">Yes</option>
<option value="no">No</option> <option value="no">No</option>
</select> </select>
</div> </td>
<div class="flex items-center"> </tr>
<label for="noprocrast" class="w-1/4 text-text-muted">Noprocrast:</label> <tr>
<select id="noprocrast" name="noprocrast" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary"> <td class="w-1/4 text-text-muted">Noprocrast:</td>
<td class="w-3/4">
<select id="noprocrast" name="noprocrast" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
<option value="yes">Yes</option> <option value="yes">Yes</option>
<option value="no">No</option> <option value="no">No</option>
</select> </select>
</div> </td>
<div class="flex items-center"> </tr>
<label for="maxvisit" class="w-1/4 text-text-muted">Maxvisit:</label> <tr>
<input type="number" id="maxvisit" name="maxvisit" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="10"> <td class="w-1/4 text-text-muted">Maxvisit:</td>
</div> <td class="w-3/4">
<div class="flex items-center"> <input type="number" id="maxvisit" name="maxvisit" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="10">
<label for="minaway" class="w-1/4 text-text-muted">Minaway:</label> </td>
<input type="number" id="minaway" name="minaway" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="5"> </tr>
</div> <tr>
<div class="flex items-center"> <td class="w-1/4 text-text-muted">Minaway:</td>
<label for="delay" class="w-1/4 text-text-muted">Delay:</label> <td class="w-3/4">
<input type="number" id="delay" name="delay" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="3"> <input type="number" id="minaway" name="minaway" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="5">
</div> </td>
</tr>
<tr>
<td class="w-1/4 text-text-muted">Delay:</td>
<td class="w-3/4">
<input type="number" id="delay" name="delay" class="w-full px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="3">
</td>
</tr>
</table>
<div class="flex flex-col space-y-2"> <div class="flex flex-col space-y-2">
<a href="#" class="text-primary hover:underline">Change Password</a> <a href="#" class="text-primary hover:underline">Change Password</a>
<a href="#" class="text-primary hover:underline">Submissions</a> <a href="#" class="text-primary hover:underline">Submissions</a>