72 lines
1.6 KiB
PHP
72 lines
1.6 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Log Viewer Login</title>
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: sans-serif;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.login-container {
|
|
padding: 2rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 8px;
|
|
background-color: white;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
text-align: center;
|
|
}
|
|
|
|
input[type="password"] {
|
|
padding: 0.5rem;
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
button {
|
|
padding: 0.5rem 1rem;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
.error {
|
|
color: red;
|
|
margin-bottom: 1rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-container">
|
|
<h2>Masukkan Kata Laluan Untuk Akses</h2>
|
|
|
|
@if (session('error'))
|
|
<p class="error">{{ session('error') }}</p>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('log-login') }}">
|
|
@csrf
|
|
<input type="password" name="password" placeholder="Kata Laluan" required />
|
|
<button type="submit">Masuk</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|