style: Compact account form fields using HTML table
This commit is contained in:
1 parent
719e4a0058
commit
32b04265c1
1 file changed
+68
-46
+68
-46
@@ -58,52 +58,74 @@
|
||||
</div>
|
||||
|
||||
<form class="space-y-4">
|
||||
<div class="flex items-center">
|
||||
<label for="username" class="w-1/4 text-text-muted">Username:</label>
|
||||
<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>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="created" class="w-1/4 text-text-muted">Created:</label>
|
||||
<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>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="karma" class="w-1/4 text-text-muted">Karma:</label>
|
||||
<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>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="about" class="w-1/4 text-text-muted">About:</label>
|
||||
<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>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="email" class="w-1/4 text-text-muted">Email:</label>
|
||||
<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">
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="showdead" class="w-1/4 text-text-muted">Showdead:</label>
|
||||
<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">
|
||||
<option value="yes">Yes</option>
|
||||
<option value="no">No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="noprocrast" class="w-1/4 text-text-muted">Noprocrast:</label>
|
||||
<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">
|
||||
<option value="yes">Yes</option>
|
||||
<option value="no">No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="maxvisit" class="w-1/4 text-text-muted">Maxvisit:</label>
|
||||
<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">
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="minaway" class="w-1/4 text-text-muted">Minaway:</label>
|
||||
<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">
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<label for="delay" class="w-1/4 text-text-muted">Delay:</label>
|
||||
<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">
|
||||
</div>
|
||||
<table class="w-full">
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">Username:</td>
|
||||
<td class="w-3/4">
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">Created:</td>
|
||||
<td class="w-3/4">
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">Karma:</td>
|
||||
<td class="w-3/4">
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">About:</td>
|
||||
<td class="w-3/4">
|
||||
<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="no">No</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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="no">No</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">Maxvisit:</td>
|
||||
<td class="w-3/4">
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-1/4 text-text-muted">Minaway:</td>
|
||||
<td class="w-3/4">
|
||||
<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">
|
||||
</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">
|
||||
<a href="#" class="text-primary hover:underline">Change Password</a>
|
||||
<a href="#" class="text-primary hover:underline">Submissions</a>
|
||||
|
||||
Reference in new issue
Block a user