Compare commits

..

No commits in common. "ai-dev" and "master" have entirely different histories.

160
index.php
View File

@ -1,73 +1,103 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Login - Aplikasi Presensi</title> <title>New Style</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> <link rel="preconnect" href="https://fonts.googleapis.com">
<style> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
body { <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
background-color: #f8f9fa; <style>
} :root {
.login-container { --bg-color-start: #4B0082;
min-height: 100vh; --bg-color-end: #8A2BE2;
display: flex; --text-color: #ffffff;
align-items: center; --card-bg-color: rgba(255, 255, 255, 0.01);
justify-content: center; --card-border-color: rgba(255, 255, 255, 0.1);
} }
.card { body {
border: none; margin: 0;
border-radius: 1rem; font-family: 'Inter', sans-serif;
box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1); background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
} color: var(--text-color);
.card-header { display: flex;
background-color: #007bff; justify-content: center;
color: white; align-items: center;
text-align: center; min-height: 100vh;
border-top-left-radius: 1rem; text-align: center;
border-top-right-radius: 1rem; overflow: hidden;
} position: relative;
.btn-primary { }
background-color: #007bff; body::before {
border-color: #007bff; content: '';
} position: absolute;
.btn-primary:hover { top: 0;
background-color: #0056b3; left: 0;
border-color: #0056b3; width: 100%;
} height: 100%;
.form-control:focus { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
border-color: #007bff; animation: bg-pan 20s linear infinite;
box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25); z-index: -1;
} }
</style> @keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
</head> </head>
<body> <body>
<div class="container"> <main>
<div class="row login-container"> <div class="card">
<div class="col-md-6 col-lg-4"> <h1>Welcome!</h1>
<div class="card"> <p>This is your new landing page.</p>
<div class="card-header"> <p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
<h3 class="mb-0">Login Aplikasi Presensi</h3>
</div>
<div class="card-body p-4">
<form action="" method="post">
<div class="mb-3">
<label for="email" class="form-label">NIP / Email</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div> </div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script> </main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
</body> </body>
</html> </html>