Files
ap_pos/login.html
Marco Gallegos 9f3daff09b fix: Remove clear form button and improve UX
Major UI/UX improvements and bug fixes:

• Fixed date formatting bug in ticket receipts (undefined dates)
• Removed clear form button per user request
• Added favicon integration across all pages (apple-touch-icon, favicon variants)
• Implemented auto-collapse for product categories after adding items
• Changed all ticket content alignment to left for better readability
• Made product interface more compact to reduce scrolling
• Enhanced date validation and formatting throughout the system

Technical changes:
- Fixed esc() function regex that was causing date corruption
- Added collapseAllCategories() function for better UX
- Updated cache-busting versions for proper browser refresh
- Improved date handling with proper validation
- Added comprehensive favicon support with web manifest

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 16:18:51 -06:00

68 lines
2.0 KiB
HTML

<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ale Ponce | AlMa</title>
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/src/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/src/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/src/favicon/favicon-16x16.png">
<link rel="manifest" href="/src/favicon/site.webmanifest">
<link rel="icon" href="/src/favicon/favicon.ico">
<link rel="stylesheet" href="styles.css" />
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f9;
}
.login-container {
padding: 2rem;
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
width: 100%;
max-width: 400px;
text-align: center;
}
.login-container h1 {
text-align: center;
margin-bottom: 1.5rem;
color: #333;
}
.form-grid {
display: grid;
gap: 1rem;
text-align: left;
}
#error-message {
color: #dc3545;
text-align: center;
margin-top: 1rem;
display: none;
}
</style>
</head>
<body>
<main class="login-container">
<img src="src/logo.png" alt="Logo" style="max-width: 150px; margin-bottom: 1.5rem;">
<h1>Iniciar Sesión</h1>
<form id="loginForm">
<div class="form-grid">
<label for="username">Usuario:</label>
<input type="text" id="username" required autocomplete="username" />
<label for="password">Contraseña:</label>
<input type="password" id="password" required autocomplete="current-password" />
</div>
<div class="form-actions" style="margin-top: 1.5rem; justify-content: center;">
<button type="submit">Entrar</button>
</div>
</form>
<p id="error-message"></p>
</main>
<script type="module" src="login.js"></script>
</body>
</html>