TIF_NGANJUK_E41220418/resources/views/admin/login.blade.php

64 lines
2.4 KiB
PHP

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Flo.do</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
</head>
<body>
<div class="login-page">
<div class="login-card">
<img src="{{ asset('img/logo.png') }}" alt="Flo.do Logo" class="login-logo">
<form action="" method="POST">
<div class="mb-2">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" name="username"
placeholder="Masukkan Usernamemu" style="font-size: 13px"required>
</div>
<div class="mb-2">
<label class="form-label">Kata Sandi</label>
<div class="form-group position-relative has-icon-right">
<input type="password" class="form-control"style="font-size: 13px" id="passBaru"
placeholder="**************">
<div class="form-control-icon" style="font-size: 13px; cursor: pointer;"
onclick="toggleDynamic('passBaru', 'iconPass')">
<i class="bi bi-eye" style="font-size: 16px" id="iconPass"></i>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary rounded-pill w-100 py-2 mt-2">Masuk</button>
</form>
</div>
</div>
<script>
function toggleDynamic(inputId, iconId) {
const passwordInput = document.getElementById(inputId);
const eyeIcon = document.getElementById(iconId);
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
eyeIcon.classList.remove('bi-eye');
eyeIcon.classList.add('bi-eye-slash');
} else {
passwordInput.type = 'password';
eyeIcon.classList.remove('bi-eye-slash');
eyeIcon.classList.add('bi-eye');
}
}
</script>
</body>
</html>