Added vite config and removed unecessary plugin. Updated the login page layout with more compact elements.

This commit is contained in:
Your Name committed 2025-04-28 06:03:12 +00:00
1 parent 43056e801d
commit 70ac6be0f8
3 files changed
+48 -30

No files matched your search

+38 -28
View File
@@ -57,21 +57,24 @@
<div class="mb-8"> <div class="mb-8">
<h2 class="text-lg mb-4 text-primary">Login</h2> <h2 class="text-lg mb-4 text-primary">Login</h2>
<form action="/login" method="post"> <form action="/login" method="post">
<div class="mb-4"> <table>
<label class="block text-sm font-medium mb-1" for="login-username">username:</label> <tr>
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="text" id="login-username" name="username" required> <td><label class="block text-sm font-medium mb-1" for="login-username">username:</label></td>
</div> <td><input class="px-3 py-1 border border-gray-300 rounded" type="text" id="login-username" name="username" required></td>
<div class="mb-4"> </tr>
<label class="block text-sm font-medium mb-1" for="login-password">password:</label> <tr>
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="password" id="login-password" name="password" required> <td><label class="block text-sm font-medium mb-1" for="login-password">password:</label></td>
</div> <td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="login-password" name="password" required></td>
<div class="mb-4"> </tr>
<div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div> <tr>
</div> <td colspan="2"><div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div></td>
<div class="mb-4"> </tr>
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Login</button> <tr>
</div> <td colspan="2"><button class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Login</button></td>
</tr>
</table>
</form> </form>
<p class="text-sm text-primary mt-2">Bad Login</p>
<p class="text-sm text-text-muted mt-2"><a href="#" class="text-primary hover:underline">Forgot your password?</a></p> <p class="text-sm text-text-muted mt-2"><a href="#" class="text-primary hover:underline">Forgot your password?</a></p>
</div> </div>
@@ -81,21 +84,28 @@
<div class="mb-8"> <div class="mb-8">
<h2 class="text-lg mb-4 text-primary">Create Account</h2> <h2 class="text-lg mb-4 text-primary">Create Account</h2>
<form action="/signup" method="post"> <form action="/signup" method="post">
<div class="mb-4"> <table>
<label class="block text-sm font-medium mb-1" for="signup-username">username:</label> <tr>
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="text" id="signup-username" name="username" required> <td><label class="block text-sm font-medium mb-1" for="signup-username">username:</label></td>
</div> <td><input class="px-3 py-1 border border-gray-300 rounded" type="text" id="signup-username" name="username" required></td>
<div class="mb-4"> </tr>
<label class="block text-sm font-medium mb-1" for="signup-password">password:</label> <tr>
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="password" id="signup-password" name="password" required> <td><label class="block text-sm font-medium mb-1" for="signup-password">password:</label></td>
</div> <td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="signup-password" name="password" required></td>
<div class="mb-4"> </tr>
<div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div> <tr>
</div> <td><label class="block text-sm font-medium mb-1" for="signup-password-confirm">confirm password:</label></td>
<div class="mb-4"> <td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="signup-password-confirm" name="password-confirm" required></td>
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Create Account</button> </tr>
</div> <tr>
<td colspan="2"><div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div></td>
</tr>
<tr>
<td colspan="2"><button class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Create Account</button></td>
</tr>
</table>
</form> </form>
<p class="text-sm text-primary mt-2">Passwords do not match</p>
</div> </div>
</div> <!-- End container --> </div> <!-- End container -->
+1 -2
View File
@@ -14,7 +14,6 @@
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"postcss": "^8.4.23", "postcss": "^8.4.23",
"tailwindcss": "^3.4.1", "tailwindcss": "^3.4.1",
"vite": "^4.4.9", "vite": "^4.4.9"
"vite-plugin-tailwindcss": "^1.8.2"
} }
} }
+9
View File
@@ -0,0 +1,9 @@
import { defineConfig } from 'vite';
export default defineConfig({
server: {
host: '0.0.0.0',
port: 5173,
open: false,
},
});