TKK_E32222628/hydrop_web/resources/views/auth/register.blade.php

113 lines
2.8 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<title>Register - IoT Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #f0f0f0;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
width: 350px;
text-align: center;
}
h2 {
margin-bottom: 20px;
color: #333;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 90%;
padding: 10px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 14px;
}
button {
background-color: #2e7d32;
color: white;
padding: 10px 25px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
margin-top: 10px;
}
button:hover {
background-color: #1b5e20;
}
a {
color: #2e7d32;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.error-message {
color: #d32f2f;
margin: 10px 0;
font-size: 14px;
text-align: left;
}
.form-group {
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="container">
<h2>Daftar Akun</h2>
@if ($errors->any())
<div class="error-message">
<ul style="margin: 0; padding-left: 20px;">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form method="POST" action="{{ route('register') }}">
@csrf
<div class="form-group">
<input type="text" name="username" placeholder="Username" value="{{ old('username') }}" required>
</div>
<div class="form-group">
<input type="email" name="email" placeholder="Email" value="{{ old('email') }}" required>
</div>
<div class="form-group">
<input type="password" name="password" placeholder="Password" required>
</div>
<div class="form-group">
<input type="password" name="password_confirmation" placeholder="Konfirmasi Password" required>
</div>
<button type="submit">Daftar</button>
</form>
<p>Sudah punya akun? <a href="{{ route('login') }}">Login disini</a></p>
</div>
</body>
</html>