feat: Apply layout strategy to account.html

This commit is contained in:
Your Name (aider) committed 2025-04-28 08:24:01 +00:00
1 parent 32b04265c1
commit b27acd59c2
1 file changed
+90 -73
+90 -73
View File
@@ -58,83 +58,100 @@
</div> </div>
<form class="space-y-4"> <form class="space-y-4">
<table class="w-full"> <table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr> <tr>
<td class="w-1/4 text-text-muted">Username:</td> <td>
<td class="w-3/4"> <table cellpadding="5" width="100%">
<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> <tbody>
</td> <tr>
</tr> <td>Please put a valid address in the email field, or we won't be able to
<tr> send you a new password if you forget yours. Your address is only
<td class="w-1/4 text-text-muted">Created:</td> visible to you and us. Crawlers and other users can't see it.</td>
<td class="w-3/4"> </tr>
<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> </tbody>
</td> </table>
</tr> <table border="0">
<tr> <tbody>
<td class="w-1/4 text-text-muted">Karma:</td> <tr class="athing">
<td class="w-3/4"> <td valign="top">user:</td>
<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> <td timestamp="1745816813"><a href="user?id=kerbymart" class="hnuser">
</td> <font>kerbymart</font>
</tr> </a></td>
<tr> </tr>
<td class="w-1/4 text-text-muted">About:</td> <tr>
<td class="w-3/4"> <td valign="top">created:</td>
<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><a href="front?day=2025-04-28&amp;birth=kerbymart">59 minutes ago</a></td>
</td> </tr>
</tr> <tr>
<tr> <td valign="top">karma:</td>
<td class="w-1/4 text-text-muted">Email:</td> <td>1</td>
<td class="w-3/4"> </tr>
<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"> <tr>
</td> <td valign="top">about:</td>
</tr> <td style="overflow:hidden"><textarea name="about" rows="5" cols="60" wrap="virtual"></textarea>&nbsp;<a href="formatdoc" tabindex="-1">
<tr> <font size="-2">help</font>
<td class="w-1/4 text-text-muted">Showdead:</td> </a></td>
<td class="w-3/4"> </tr>
<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"> <tr>
<option value="yes">Yes</option> <td></td>
<option value="no">No</option> <td>
</select> <font size="2">Only admins see your email below. To share publicly, add to the 'about' box.</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="w-1/4 text-text-muted">Noprocrast:</td> <td valign="top">email:</td>
<td class="w-3/4"> <td><input type="text" name="email" size="60"></td>
<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"> </tr>
<option value="yes">Yes</option> <tr>
<option value="no">No</option> <td valign="top">showdead:</td>
</select> <td><select name="showd">
</td> <option>yes</option>
</tr> <option selected="t">no</option>
<tr> </select></td>
<td class="w-1/4 text-text-muted">Maxvisit:</td> </tr>
<td class="w-3/4"> <tr>
<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"> <td valign="top">noprocrast:</td>
</td> <td><select name="nopro">
</tr> <option>yes</option>
<tr> <option selected="t">no</option>
<td class="w-1/4 text-text-muted">Minaway:</td> </select></td>
<td class="w-3/4"> </tr>
<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"> <tr>
</td> <td valign="top">maxvisit:</td>
</tr> <td><input type="text" name="maxv" value="20" size="16"></td>
<tr> </tr>
<td class="w-1/4 text-text-muted">Delay:</td> <tr>
<td class="w-3/4"> <td valign="top">minaway:</td>
<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><input type="text" name="mina" value="180" size="16"></td>
</tr>
<tr>
<td valign="top">delay:</td>
<td><input type="text" name="delay" value="0" size="16"></td>
</tr>
<tr>
<td valign="top"></td>
<td><a href="changepw"><u>change password</u></a></td>
</tr>
<tr>
<td></td>
<td><a href="submitted?id=kerbymart"><u>submissions</u></a></td>
</tr>
<tr>
<td></td>
<td><a href="threads?id=kerbymart"><u>comments</u></a></td>
</tr>
<tr>
<td></td>
<td><a href="favorites?id=kerbymart"><u>favorite submissions</u></a> / <a href="favorites?id=kerbymart&amp;comments=t"><u>comments</u></a>&nbsp;<i> (publicly visible)</i></td>
</tr>
</tbody>
</table><br>
<input type="submit" value="update">
</td> </td>
</tr> </tr>
</tbody>
</table> </table>
<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">Submissions</a>
<a href="#" class="text-primary hover:underline">Comments</a>
<a href="#" class="text-primary hover:underline">Favorite Submissions / Comments (publicly visible)</a>
</div>
<div class="flex justify-end">
<button type="submit" class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50">Update</button>
</div>
</form> </form>
</div> </div>
</main> </main>