403 lines
10 KiB
PHP
403 lines
10 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Register - SPK Rekomendasi Makanan Gastritis</title>
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background: #eef7f1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.register-wrapper {
|
|
width: 92%;
|
|
max-width: 1180px;
|
|
min-height: 720px;
|
|
background: #ffffff;
|
|
border-radius: 28px;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-columns: 1.1fr 0.9fr;
|
|
box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
.visual-side {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.image-box {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 18px;
|
|
background: #dff3e5;
|
|
}
|
|
|
|
.image-box.large {
|
|
grid-row: span 2;
|
|
}
|
|
|
|
.image-box img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.image-box::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(
|
|
to right,
|
|
rgba(255,255,255,0.05),
|
|
rgba(255,255,255,0.72)
|
|
);
|
|
}
|
|
|
|
.brand-caption {
|
|
position: absolute;
|
|
left: 28px;
|
|
bottom: 24px;
|
|
z-index: 2;
|
|
color: #475569;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.form-side {
|
|
padding: 56px 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.form-content {
|
|
width: 100%;
|
|
max-width: 460px;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 48px;
|
|
color: #1f2937;
|
|
font-weight: 800;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.logo span {
|
|
color: #16a34a;
|
|
}
|
|
|
|
.role {
|
|
color: #94a3b8;
|
|
font-size: 14px;
|
|
letter-spacing: 1.5px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 40px;
|
|
line-height: 1.15;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 16px;
|
|
color: #94a3b8;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 22px;
|
|
position: relative;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
margin-bottom: 10px;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
height: 62px;
|
|
border: 1px solid #dbe4ee;
|
|
border-radius: 14px;
|
|
background: #f8fafc;
|
|
padding: 0 58px 0 20px;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #0f172a;
|
|
outline: none;
|
|
transition: 0.25s ease;
|
|
}
|
|
|
|
.form-group input::placeholder {
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
border-color: #22c55e;
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
|
|
}
|
|
|
|
.toggle-password {
|
|
position: absolute;
|
|
right: 18px;
|
|
top: 48px;
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
user-select: none;
|
|
}
|
|
|
|
.error-text {
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
color: #dc2626;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.alert-error {
|
|
background: #fee2e2;
|
|
color: #b91c1c;
|
|
border: 1px solid #fecaca;
|
|
padding: 13px 16px;
|
|
border-radius: 14px;
|
|
font-size: 14px;
|
|
margin-bottom: 22px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-register {
|
|
width: 100%;
|
|
height: 64px;
|
|
border: none;
|
|
border-radius: 14px;
|
|
background: linear-gradient(135deg, #22c55e, #16a34a);
|
|
color: #ffffff;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
transition: 0.25s ease;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-register:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 16px 30px rgba(34, 197, 94, 0.28);
|
|
}
|
|
|
|
.footer-text {
|
|
text-align: center;
|
|
margin-top: 26px;
|
|
font-size: 14px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.footer-text a {
|
|
color: #16a34a;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.register-wrapper {
|
|
grid-template-columns: 1fr;
|
|
min-height: auto;
|
|
}
|
|
|
|
.visual-side {
|
|
display: none;
|
|
}
|
|
|
|
.form-side {
|
|
padding: 42px 28px;
|
|
}
|
|
|
|
.logo {
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 34px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="register-wrapper">
|
|
|
|
<div class="visual-side">
|
|
|
|
<div class="image-box large">
|
|
<img src="https://images.unsplash.com/photo-1606787366850-de6330128bfc?auto=format&fit=crop&w=900&q=80" alt="Makanan sehat">
|
|
<div class="brand-caption">
|
|
Sistem Rekomendasi Makanan Bagi Penderita Gastritis
|
|
</div>
|
|
</div>
|
|
|
|
<div class="image-box">
|
|
<img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=900&q=80" alt="Menu sehat">
|
|
</div>
|
|
|
|
<div class="image-box">
|
|
<img src="https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=900&q=80" alt="Sayur sehat">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-side">
|
|
|
|
<div class="form-content">
|
|
|
|
<!-- <div class="logo">
|
|
Gastro<span>SAW</span>
|
|
</div>
|
|
|
|
<div class="role">
|
|
Admin
|
|
</div> -->
|
|
|
|
<h1>
|
|
Buat<br>
|
|
akun baru
|
|
</h1>
|
|
|
|
<div class="subtitle">
|
|
Daftar untuk mengelola data pasien dan rekomendasi makanan
|
|
</div>
|
|
|
|
@if($errors->any())
|
|
<div class="alert-error">
|
|
Periksa kembali data yang Anda masukkan.
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('register') }}">
|
|
@csrf
|
|
|
|
<div class="form-group">
|
|
<label>Username</label>
|
|
<input
|
|
type="text"
|
|
name="username"
|
|
placeholder="Masukkan username"
|
|
value="{{ old('username') }}"
|
|
required
|
|
>
|
|
@error('username')
|
|
<div class="error-text">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Email</label>
|
|
<input
|
|
type="email"
|
|
name="email"
|
|
placeholder="Masukkan email"
|
|
value="{{ old('email') }}"
|
|
required
|
|
>
|
|
@error('email')
|
|
<div class="error-text">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Password</label>
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
name="password"
|
|
placeholder="Masukkan password"
|
|
required
|
|
>
|
|
<span class="toggle-password" onclick="togglePassword('password', this)">Lihat</span>
|
|
|
|
@error('password')
|
|
<div class="error-text">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Konfirmasi Password</label>
|
|
<input
|
|
type="password"
|
|
id="password_confirmation"
|
|
name="password_confirmation"
|
|
placeholder="Ulangi password"
|
|
required
|
|
>
|
|
<span class="toggle-password" onclick="togglePassword('password_confirmation', this)">Lihat</span>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-register">
|
|
Daftar Sekarang
|
|
</button>
|
|
</form>
|
|
|
|
<div class="footer-text">
|
|
Sudah punya akun?
|
|
<a href="{{ route('login') }}">Masuk di sini</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
function togglePassword(id, el) {
|
|
const input = document.getElementById(id);
|
|
|
|
if (input.type === "password") {
|
|
input.type = "text";
|
|
el.textContent = "Sembunyikan";
|
|
} else {
|
|
input.type = "password";
|
|
el.textContent = "Lihat";
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |