Compare commits

..

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

134
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">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style> <style>
body { :root {
background-color: #f8f9fa; --bg-color-start: #4B0082;
--bg-color-end: #8A2BE2;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
} }
.login-container { body {
min-height: 100vh; margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
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>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
} }
.card { .card {
border: none; background: var(--card-bg-color);
border-radius: 1rem; border: 1px solid var(--card-border-color);
box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1); 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);
} }
.card-header { h1 {
background-color: #007bff; font-size: 3rem;
color: white; font-weight: 700;
text-align: center; margin: 0 0 1rem;
border-top-left-radius: 1rem; letter-spacing: -1px;
border-top-right-radius: 1rem;
} }
.btn-primary { p {
background-color: #007bff; margin: 0.5rem 0;
border-color: #007bff; font-size: 1.1rem;
} }
.btn-primary:hover { code {
background-color: #0056b3; background: rgba(0,0,0,0.2);
border-color: #0056b3; padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
} }
.form-control:focus { footer {
border-color: #007bff; position: absolute;
box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25); bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <main>
<div class="row login-container">
<div class="col-md-6 col-lg-4">
<div class="card"> <div class="card">
<div class="card-header"> <h1>Welcome!</h1>
<h3 class="mb-0">Login Aplikasi Presensi</h3> <p>This is your new landing page.</p>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
</div> </div>
<div class="card-body p-4"> </main>
<form action="" method="post"> <footer>
<div class="mb-3"> Page updated: <?= htmlspecialchars($now) ?> (UTC)
<label for="email" class="form-label">NIP / Email</label> </footer>
<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>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body> </body>
</html> </html>