184 lines
3.7 KiB
PHP
184 lines
3.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>Verifikasi OTP</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f0f4f8;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.otp-container {
|
|
background-color: #ffffff;
|
|
border: 2px solid #4a90d9;
|
|
border-radius: 4px;
|
|
width: 668px;
|
|
padding: 60px 80px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.otp-container h1 {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #111111;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.otp-description {
|
|
color: #333333;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.form-group {
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 15px;
|
|
color: #222222;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 1px solid #cccccc;
|
|
border-radius: 4px;
|
|
font-size: 18px;
|
|
letter-spacing: 0;
|
|
text-align: center;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
border-color: #4a90d9;
|
|
box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
|
|
}
|
|
|
|
.alert-error,
|
|
.alert-success {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: #fee2e2;
|
|
border: 1px solid #fca5a5;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: #d1fae5;
|
|
border: 1px solid #6ee7b7;
|
|
color: #065f46;
|
|
}
|
|
|
|
.btn-primary,
|
|
.btn-secondary {
|
|
width: 100%;
|
|
padding: 13px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #4a90d9;
|
|
color: #ffffff;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #357abd;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: transparent;
|
|
color: #4a90d9;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="otp-container">
|
|
<h1>Verifikasi OTP</h1>
|
|
<p class="otp-description">
|
|
Masukkan kode 6 digit yang sudah dikirim ke email akun Anda.
|
|
</p>
|
|
|
|
@if ($errors->any())
|
|
<div class="alert-error">
|
|
@foreach ($errors->all() as $error)
|
|
<p>{{ $error }}</p>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
|
|
@if (session('success'))
|
|
<div class="alert-success">
|
|
{{ session('success') }}
|
|
</div>
|
|
@endif
|
|
|
|
@if (session('error'))
|
|
<div class="alert-error">
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
|
|
<form action="{{ route('otp.verify') }}" method="POST" style="width: 100%;">
|
|
@csrf
|
|
|
|
<div class="form-group">
|
|
<label for="otp">Kode OTP:</label>
|
|
<input
|
|
type="text"
|
|
id="otp"
|
|
name="otp"
|
|
maxlength="6"
|
|
inputmode="numeric"
|
|
autocomplete="one-time-code"
|
|
value="{{ old('otp') }}"
|
|
/>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-primary">Verifikasi</button>
|
|
</form>
|
|
|
|
<form action="{{ route('otp.resend') }}" method="POST" style="width: 100%;">
|
|
@csrf
|
|
<button type="submit" class="btn-secondary">Kirim ulang OTP</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|