update login & register

This commit is contained in:
2026-07-09 18:14:12 +07:00
parent bfabab96c5
commit 316b256ae0
2 changed files with 111 additions and 117 deletions
+6 -6
View File
@@ -37,17 +37,17 @@
<form id="formAuthentication" class="mb-4" action="{{ route('auth.authenticate') }}" method="POST"> <form id="formAuthentication" class="mb-4" action="{{ route('auth.authenticate') }}" method="POST">
@csrf @csrf
<div class="mb-6 form-control-validation"> <div class="mb-6 form-control-validation">
<label for="email" class="form-label">Email atau Username</label> <label for="email" class="form-label">Email atau Nama Pengguna</label>
<input <input
type="text" type="text"
class="form-control" class="form-control"
id="email" id="email"
name="email_username" name="email_username"
placeholder="Masukkan email atau username Anda" placeholder="Masukkan email atau nama pengguna Anda"
autofocus /> autofocus />
</div> </div>
<div class="mb-6 form-password-toggle form-control-validation"> <div class="mb-6 form-password-toggle form-control-validation">
<label class="form-label" for="password">Password</label> <label class="form-label" for="password">Kata Sandi</label>
<div class="input-group input-group-merge"> <div class="input-group input-group-merge">
<input <input
type="password" type="password"
@@ -63,15 +63,15 @@
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<div class="form-check mb-0 ms-2"> <div class="form-check mb-0 ms-2">
<input class="form-check-input" type="checkbox" id="remember-me" /> <input class="form-check-input" type="checkbox" id="remember-me" />
<label class="form-check-label" for="remember-me"> Remember Me </label> <label class="form-check-label" for="remember-me"> Ingat saya </label>
</div> </div>
<a href="auth-forgot-password-basic.html"> <a href="auth-forgot-password-basic.html">
<p class="mb-0">Lupa Password?</p> <p class="mb-0">Lupa Kata Sandi?</p>
</a> </a>
</div> </div>
</div> </div>
<div class="mb-6"> <div class="mb-6">
<button class="btn btn-primary d-grid w-100" type="submit">Login</button> <button class="btn btn-primary d-grid w-100" type="submit">Masuk</button>
</div> </div>
</form> </form>
+104 -110
View File
@@ -4,141 +4,135 @@
<div class="card-body"> <div class="card-body">
<!-- Logo --> <!-- Logo -->
<div class="app-brand justify-content-center mb-6"> <div class="app-brand justify-content-center mb-6">
<a href="{{ route('home') }}" class="app-brand-link"> <a href="{{ route('home') }}" class="app-brand-link">
<span class="app-brand-logo demo"> <span class="app-brand-logo demo">
<span class="text-primary"> <span class="text-primary">
<svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity="0.3"
d="M16 2.5C16 2.5 5 6.5 5 15.5C5 20.5 11 23.5 16 23.5V2.5Z"
fill="#2E7D32" />
<!-- Daun Kiri (Hijau transparan) --> <path opacity="0.6"
<path opacity="0.3" d="M16 2.5C16 2.5 27 6.5 27 15.5C27 20.5 21 23.5 16 23.5V2.5Z"
d="M16 2.5C16 2.5 5 6.5 5 15.5C5 20.5 11 23.5 16 23.5V2.5Z" fill="#2E7D32" />
fill="#2E7D32" />
<!-- Daun Kanan (Hijau lebih solid) --> <path d="M2 19L10 11L15 15"
<path opacity="0.6" stroke="#0054A6"
d="M16 2.5C16 2.5 27 6.5 27 15.5C27 20.5 21 23.5 16 23.5V2.5Z" stroke-width="2.5"
fill="#2E7D32" /> stroke-linecap="round"
stroke-linejoin="round" />
<!-- Grafik Biru (bawah → tengah) --> <path d="M15 15L27 4"
<path d="M2 19L10 11L15 15" stroke="#ED1C24"
stroke="#0054A6" stroke-width="2.5"
stroke-width="2.5" stroke-linecap="round"
stroke-linecap="round" stroke-linejoin="round" />
stroke-linejoin="round" />
<!-- Grafik Merah (tengah → atas) --> <circle cx="27" cy="4" r="2.5" fill="#ED1C24" />
<path d="M15 15L27 4" </svg>
stroke="#ED1C24" </span>
stroke-width="2.5"
stroke-linecap="round"
stroke-linejoin="round" />
<!-- Titik target -->
<circle cx="27" cy="4" r="2.5" fill="#ED1C24" />
</svg>
</span> </span>
</span>
<span class="app-brand-text demo menu-text fw-bold ms-3" style="text-transform: capitalize;"> <span class="app-brand-text demo menu-text fw-bold ms-3" style="text-transform: capitalize;">
AgroMonev AgroMonev
</span> </span>
</a> </a>
</div> </div>
<!-- /Logo --> <!-- /Logo -->
<h4 class="mb-1">Adventure starts here 🚀</h4> <h4 class="mb-1">Buat akun AgroMonev</h4>
<p class="mb-6">Make your app management easy and fun!</p> <p class="mb-6">Lengkapi data berikut untuk membuat akun baru.</p>
<form id="formAuthentication" class="mb-6" action="{{ route('auth.createAccount') }}" method="POST"> <form id="formAuthentication" class="mb-6" action="{{ route('auth.createAccount') }}" method="POST">
@csrf @csrf
<div class="mb-6 form-control-validation"> <div class="mb-6 form-control-validation">
<label for="username" class="form-label">Username</label> <label for="username" class="form-label">Nama Pengguna</label>
<input <input
type="text" type="text"
class="form-control" class="form-control"
id="username" id="username"
name="username" name="username"
value="{{ old('username') }}" value="{{ old('username') }}"
placeholder="Enter your username" placeholder="Masukkan nama pengguna"
autofocus /> autofocus />
@error('username') @error('username')
<div class="invalid-feedback d-block">{{ $message }}</div> <div class="invalid-feedback d-block">{{ $message }}</div>
@enderror @enderror
</div>
<div class="mb-6 form-control-validation">
<label for="email" class="form-label">Email</label>
<input type="text" class="form-control" id="email" name="email" value="{{ old('email') }}" placeholder="Enter your email" />
@error('email')
<div class="invalid-feedback d-block">{{ $message }}</div>
@enderror
</div>
<div class="mb-6 form-password-toggle form-control-validation">
<label class="form-label" for="password">Password</label>
<div class="input-group input-group-merge">
<input
type="password"
id="password"
class="form-control"
name="password"
placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
aria-describedby="password" />
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
</div> </div>
@error('password') <div class="mb-6 form-control-validation">
<div class="invalid-feedback d-block">{{ $message }}</div> <label for="email" class="form-label">Email</label>
@enderror <input type="text" class="form-control" id="email" name="email" value="{{ old('email') }}" placeholder="Masukkan email" />
</div> @error('email')
<div class="mb-6 form-password-toggle form-control-validation"> <div class="invalid-feedback d-block">{{ $message }}</div>
<label class="form-label" for="password_confirmation">Confirm Password</label> @enderror
<div class="input-group input-group-merge">
<input
type="password"
id="password_confirmation"
class="form-control"
name="password_confirmation"
placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
aria-describedby="password_confirmation" />
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
</div> </div>
</div> <div class="mb-6 form-password-toggle form-control-validation">
<div class="my-8 form-control-validation"> <label class="form-label" for="password">Kata Sandi</label>
<div class="form-check mb-0 ms-2"> <div class="input-group input-group-merge">
<input class="form-check-input" type="checkbox" id="terms-conditions" name="terms" /> <input
<label class="form-check-label" for="terms-conditions"> type="password"
I agree to id="password"
<a href="javascript:void(0);">privacy policy & terms</a> class="form-control"
</label> name="password"
placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
aria-describedby="password" />
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
</div>
@error('password')
<div class="invalid-feedback d-block">{{ $message }}</div>
@enderror
</div> </div>
</div> <div class="mb-6 form-password-toggle form-control-validation">
<button type="submit" class="btn btn-primary d-grid w-100">Sign up</button> <label class="form-label" for="password_confirmation">Konfirmasi Kata Sandi</label>
<div class="input-group input-group-merge">
<input
type="password"
id="password_confirmation"
class="form-control"
name="password_confirmation"
placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
aria-describedby="password_confirmation" />
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
</div>
</div>
<div class="my-8 form-control-validation">
<div class="form-check mb-0 ms-2">
<input class="form-check-input" type="checkbox" id="terms-conditions" name="terms" />
<label class="form-check-label" for="terms-conditions">
Saya menyetujui
<a href="javascript:void(0);">kebijakan privasi dan ketentuan layanan</a>
</label>
</div>
</div>
<button type="submit" class="btn btn-primary d-grid w-100">Daftar</button>
</form> </form>
<p class="text-center"> <p class="text-center">
<span>Already have an account?</span> <span>Sudah memiliki akun?</span>
<a href="{{ route('login') }}"> <a href="{{ route('login') }}">
<span>Sign in instead</span> <span>Masuk di sini</span>
</a> </a>
</p> </p>
<div class="divider my-6"> <div class="divider my-6">
<div class="divider-text">or</div> <div class="divider-text">atau</div>
</div> </div>
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-facebook me-1_5"> <a href="javascript:;" class="btn btn-icon rounded-circle btn-text-facebook me-1_5">
<i class="icon-base ti tabler-brand-facebook-filled icon-20px"></i> <i class="icon-base ti tabler-brand-facebook-filled icon-20px"></i>
</a> </a>
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-twitter me-1_5"> <a href="javascript:;" class="btn btn-icon rounded-circle btn-text-twitter me-1_5">
<i class="icon-base ti tabler-brand-twitter-filled icon-20px"></i> <i class="icon-base ti tabler-brand-twitter-filled icon-20px"></i>
</a> </a>
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-github me-1_5"> <a href="javascript:;" class="btn btn-icon rounded-circle btn-text-github me-1_5">
<i class="icon-base ti tabler-brand-github-filled icon-20px"></i> <i class="icon-base ti tabler-brand-github-filled icon-20px"></i>
</a> </a>
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-google-plus"> <a href="javascript:;" class="btn btn-icon rounded-circle btn-text-google-plus">
<i class="icon-base ti tabler-brand-google-filled icon-20px"></i> <i class="icon-base ti tabler-brand-google-filled icon-20px"></i>
</a> </a>
</div> </div>
</div> </div>
</div> </div>