landing page & login 3 user
This commit is contained in:
parent
2835406564
commit
bc69735b8d
|
|
@ -22,7 +22,7 @@ public function loginAdmin(Request $request)
|
||||||
|
|
||||||
$credentials = $request->only('username', 'password');
|
$credentials = $request->only('username', 'password');
|
||||||
|
|
||||||
if (Auth::guard('admin')->attempt($credentials)) {
|
if (Auth::guard('admin')->attempt($credentials, $request->boolean('remember'))) {
|
||||||
$request->session()->regenerate();
|
$request->session()->regenerate();
|
||||||
|
|
||||||
return redirect()->intended(route('admin.dashboard'));
|
return redirect()->intended(route('admin.dashboard'));
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ public function login(Request $request)
|
||||||
|
|
||||||
$credentials = $request->only('nip', 'password');
|
$credentials = $request->only('nip', 'password');
|
||||||
|
|
||||||
// Attempt login dengan guard 'guru'
|
if (Auth::guard('guru')->attempt($credentials, $request->boolean('remember'))) {
|
||||||
if (Auth::guard('guru')->attempt($credentials)) {
|
|
||||||
$request->session()->regenerate();
|
$request->session()->regenerate();
|
||||||
|
|
||||||
return redirect()->intended(route('guru.dashboard'));
|
return redirect()->intended(route('guru.dashboard'));
|
||||||
|
|
|
||||||
|
|
@ -1,239 +0,0 @@
|
||||||
/* RESET */
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fullscreen background biru */
|
|
||||||
body {
|
|
||||||
font-family: "Istok Web", sans-serif;
|
|
||||||
background-color: #2196f3;
|
|
||||||
min-height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section penuh layar */
|
|
||||||
.signin-section {
|
|
||||||
width: 100%;
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Container form */
|
|
||||||
.signin-container {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 600px;
|
|
||||||
text-align: center;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Judul */
|
|
||||||
.signin-title {
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 40px;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
color: #fff;
|
|
||||||
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Kartu putih */
|
|
||||||
.form-card {
|
|
||||||
background-color: #ffffff;
|
|
||||||
border-radius: 20px;
|
|
||||||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
|
|
||||||
padding: 60px 70px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 30px;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Input */
|
|
||||||
.input-group {
|
|
||||||
background-color: #f1f5f9;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 10px 20px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tombol show/hide tanpa kotak */
|
|
||||||
.password-wrapper {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toggle-password {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
outline: none;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.eye-icon {
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
background: transparent;
|
|
||||||
display: block;
|
|
||||||
pointer-events: none;
|
|
||||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toggle-password:hover .eye-icon {
|
|
||||||
opacity: 0.8;
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-icon {
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input {
|
|
||||||
flex: 1;
|
|
||||||
border: none;
|
|
||||||
background: transparent;
|
|
||||||
outline: none;
|
|
||||||
font-size: 18px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tombol */
|
|
||||||
.submit-btn {
|
|
||||||
margin-top: 30px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
border: none;
|
|
||||||
color: #2290f6;
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 20px;
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 12px 0;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 250px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit-btn:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LINK KEMBALI */
|
|
||||||
.back-link {
|
|
||||||
color: #fff;
|
|
||||||
text-decoration: none;
|
|
||||||
margin-top: 25px;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.back-link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* RESPONSIVE */
|
|
||||||
@media (max-width: 992px) {
|
|
||||||
.form-card {
|
|
||||||
padding: 40px 50px;
|
|
||||||
max-width: 90%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
.signin-title {
|
|
||||||
font-size: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-card {
|
|
||||||
padding: 30px 25px;
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit-btn {
|
|
||||||
width: 200px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ==================== */
|
|
||||||
/* TOAST & REMEMBER CSS */
|
|
||||||
/* ==================== */
|
|
||||||
|
|
||||||
/* Toast Notifikasi Error */
|
|
||||||
.toast-error {
|
|
||||||
position: relative;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
background-color: #e62727; /* soft red pastel */
|
|
||||||
color: #fff;
|
|
||||||
padding: 10px 14px;
|
|
||||||
border-radius: 10px;
|
|
||||||
text-align: center;
|
|
||||||
animation: fadeInOut 3.5s ease forwards;
|
|
||||||
font-size: 15px;
|
|
||||||
font-family: "Istok Web", sans-serif;
|
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes fadeInOut {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(-10px);
|
|
||||||
}
|
|
||||||
10% {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
90% {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(-10px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Remember Me Styling */
|
|
||||||
.remember-wrapper {
|
|
||||||
margin-top: 0.3rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center; /* <— ubah dari flex-start jadi center */
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remember-label {
|
|
||||||
font-size: 15px;
|
|
||||||
color: #333;
|
|
||||||
font-family: "Istok Web", sans-serif;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remember-label input {
|
|
||||||
transform: scale(1.1);
|
|
||||||
accent-color: #2196f3; /* biru lembut biar nyatu */
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,508 @@
|
||||||
|
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");
|
||||||
|
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Outfit", sans-serif;
|
||||||
|
min-height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #eee8f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
body::before {
|
||||||
|
content: "";
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
background-image: radial-gradient(
|
||||||
|
circle,
|
||||||
|
rgba(120, 80, 180, 0.08) 1px,
|
||||||
|
transparent 1px
|
||||||
|
);
|
||||||
|
background-size: 24px 24px;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── WRAPPER ── */
|
||||||
|
.page-wrap {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── LEFT PANEL ── */
|
||||||
|
.left-panel {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding: 60px 56px;
|
||||||
|
color: white;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
background: linear-gradient(155deg, #1a5fd4 0%, #1e3fa8 55%, #162d82 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-panel::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 420px;
|
||||||
|
height: 420px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(
|
||||||
|
circle,
|
||||||
|
rgba(100, 180, 255, 0.18) 0%,
|
||||||
|
transparent 65%
|
||||||
|
);
|
||||||
|
top: -120px;
|
||||||
|
right: -100px;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-panel::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 320px;
|
||||||
|
height: 320px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1.5px solid rgba(255, 255, 255, 0.07);
|
||||||
|
bottom: -80px;
|
||||||
|
left: -60px;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-accent {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-image: repeating-linear-gradient(
|
||||||
|
-55deg,
|
||||||
|
transparent,
|
||||||
|
transparent 40px,
|
||||||
|
rgba(255, 255, 255, 0.015) 40px,
|
||||||
|
rgba(255, 255, 255, 0.015) 80px
|
||||||
|
);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.school-logo {
|
||||||
|
width: 68px;
|
||||||
|
height: 68px;
|
||||||
|
border-radius: 18px;
|
||||||
|
background: rgba(255, 255, 255, 0.12);
|
||||||
|
border: 1.5px solid rgba(255, 255, 255, 0.2);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 36px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.school-logo img {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
object-fit: contain;
|
||||||
|
filter: brightness(0) invert(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-tag {
|
||||||
|
font-family: "JetBrains Mono", monospace;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 2.5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: rgba(255, 255, 255, 0.45);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-title {
|
||||||
|
font-size: clamp(26px, 3vw, 40px);
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1.15;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-title em {
|
||||||
|
font-style: normal;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-title em::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 1px;
|
||||||
|
height: 3px;
|
||||||
|
border-radius: 99px;
|
||||||
|
background: #a5d8ff;
|
||||||
|
opacity: 0.55;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-school {
|
||||||
|
font-size: 13px;
|
||||||
|
color: rgba(255, 255, 255, 0.42);
|
||||||
|
font-weight: 500;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-desc {
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
line-height: 1.75;
|
||||||
|
max-width: 320px;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-row {
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 14px 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-num {
|
||||||
|
font-family: "JetBrains Mono", monospace;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: white;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 10px;
|
||||||
|
color: rgba(255, 255, 255, 0.45);
|
||||||
|
margin-top: 5px;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── RIGHT PANEL ── */
|
||||||
|
.right-panel {
|
||||||
|
width: 420px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: #eee8f4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 48px 44px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── FORM CARD ── */
|
||||||
|
.form-card {
|
||||||
|
width: 100%;
|
||||||
|
background: white;
|
||||||
|
border-radius: 24px;
|
||||||
|
padding: 36px 36px 32px;
|
||||||
|
box-shadow:
|
||||||
|
0 4px 6px rgba(100, 60, 180, 0.04),
|
||||||
|
0 20px 40px rgba(100, 60, 180, 0.1),
|
||||||
|
0 0 0 1px rgba(100, 60, 180, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.role-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
background: #ede9fb;
|
||||||
|
border-radius: 99px;
|
||||||
|
padding: 5px 13px;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #5b3fc0;
|
||||||
|
letter-spacing: 1.5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-family: "JetBrains Mono", monospace;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-dot {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #7c5cbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-title {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #1a1a2e;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
letter-spacing: -0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-sub {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #9ba3b8;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-group {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-label {
|
||||||
|
display: block;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #4a5568;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-wrap {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-icon {
|
||||||
|
position: absolute;
|
||||||
|
left: 13px;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
opacity: 0.3;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-input {
|
||||||
|
width: 100%;
|
||||||
|
background: #f7f5fc;
|
||||||
|
border: 1.5px solid #e8e2f5;
|
||||||
|
border-radius: 11px;
|
||||||
|
padding: 11px 13px 11px 38px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "Outfit", sans-serif;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #1a1a2e;
|
||||||
|
outline: none;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-input::placeholder {
|
||||||
|
color: #bbb5cc;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-input:focus {
|
||||||
|
border-color: #7c5cbf;
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-password {
|
||||||
|
position: absolute;
|
||||||
|
right: 11px;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 6px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.eye-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
opacity: 0.3;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-password:hover .eye-icon {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin: 8px 0 18px;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-check {
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
border: 1.5px solid #d4cce8;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-check:checked {
|
||||||
|
background: #7c5cbf;
|
||||||
|
border-color: #7c5cbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-check:checked::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 3px;
|
||||||
|
top: 0;
|
||||||
|
width: 5px;
|
||||||
|
height: 9px;
|
||||||
|
border: 1.5px solid white;
|
||||||
|
border-top: none;
|
||||||
|
border-left: none;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-text {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #6b7280;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
width: 100%;
|
||||||
|
background: linear-gradient(135deg, #1e6fd4, #1a3fa8);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 11px;
|
||||||
|
padding: 13px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: "Outfit", sans-serif;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.25s;
|
||||||
|
box-shadow: 0 6px 18px rgba(30, 63, 168, 0.3);
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 10px 26px rgba(30, 63, 168, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-divider {
|
||||||
|
border: none;
|
||||||
|
border-top: 1px solid #f0ebfa;
|
||||||
|
margin: 18px 0 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.other-portals {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #9ba3b8;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.other-portals a {
|
||||||
|
color: #5b3fc0;
|
||||||
|
font-weight: 700;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 3px 8px;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: background 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.other-portals a:hover {
|
||||||
|
background: #ede9fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
color: rgba(80, 60, 140, 0.45);
|
||||||
|
font-size: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-top: 16px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link:hover {
|
||||||
|
color: rgba(80, 60, 140, 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-error {
|
||||||
|
background: linear-gradient(135deg, #ff6b6b, #d32f2f);
|
||||||
|
color: white;
|
||||||
|
padding: 10px 14px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
|
||||||
|
animation:
|
||||||
|
toastIn 0.3s ease both,
|
||||||
|
toastOut 0.4s ease 3.5s forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes toastIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-8px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes toastOut {
|
||||||
|
from {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-8px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 860px) {
|
||||||
|
.page-wrap {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.left-panel {
|
||||||
|
padding: 40px 32px 32px;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
.right-panel {
|
||||||
|
width: 100%;
|
||||||
|
padding: 32px 24px 48px;
|
||||||
|
}
|
||||||
|
.stats-row {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,13 +1,807 @@
|
||||||
@extends('layouts.auth')
|
<!DOCTYPE html>
|
||||||
|
<html lang="id">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>E-Learning RPL — SMKN 1 Tapen</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
@section('title', 'Landing Page')
|
<style>
|
||||||
|
:root {
|
||||||
|
--blue: #2b8ef3;
|
||||||
|
--blue-dark: #1a7ae0;
|
||||||
|
--blue-light:#e8f4ff;
|
||||||
|
--blue-mid: #dbeeff;
|
||||||
|
--accent1: #f97316; /* orange */
|
||||||
|
--accent2: #22c55e; /* green */
|
||||||
|
--accent3: #a855f7; /* purple */
|
||||||
|
--bg: #f0f6ff;
|
||||||
|
--dark: #0f1f3d;
|
||||||
|
}
|
||||||
|
|
||||||
@section('content')
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||||
<div class="text-center mt-5">
|
|
||||||
<h1 class="fw-bold text-primary mb-4">Selamat Datang di Website Kami</h1>
|
body {
|
||||||
<p class="mb-4">Ini halaman landing sederhana. Silakan pilih login sesuai role kamu.</p>
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||||
<a href="{{ route('admin.login') }}" class="btn btn-primary">Login Admin</a>
|
background: var(--bg);
|
||||||
<a href="{{ route('guru.login') }}" class="btn btn-primary">Login Guru</a>
|
overflow-x: hidden;
|
||||||
<a href="{{ route('siswa.login') }}" class="btn btn-primary">Login Siswa</a>
|
color: var(--dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── NAVBAR ── */
|
||||||
|
.navbar {
|
||||||
|
background: rgba(255,255,255,0.9);
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
border-bottom: 2px solid var(--blue-mid);
|
||||||
|
padding: 14px 0;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
font-family: 'Sora', sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 17px;
|
||||||
|
color: var(--dark) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand img { width: 42px; height: 42px; object-fit: contain; }
|
||||||
|
|
||||||
|
.nav-link { font-weight: 600; font-size: 14px; color: #475569 !important; transition: color 0.2s; }
|
||||||
|
.nav-link:hover { color: var(--blue) !important; }
|
||||||
|
|
||||||
|
.btn-nav-cta {
|
||||||
|
background: var(--blue);
|
||||||
|
color: white !important;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 9px 22px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.btn-nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,142,243,0.35); }
|
||||||
|
|
||||||
|
/* ── HERO ── */
|
||||||
|
.hero {
|
||||||
|
background: linear-gradient(160deg, #ffffff 0%, var(--blue-light) 50%, #e0eeff 100%);
|
||||||
|
min-height: 92vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 70px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Decorative grid */
|
||||||
|
.hero::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-image:
|
||||||
|
linear-gradient(var(--blue-mid) 1px, transparent 1px),
|
||||||
|
linear-gradient(90deg, var(--blue-mid) 1px, transparent 1px);
|
||||||
|
background-size: 48px 48px;
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Big circle bg */
|
||||||
|
.hero-bg-circle {
|
||||||
|
position: absolute;
|
||||||
|
width: 700px;
|
||||||
|
height: 700px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(43,142,243,0.12) 0%, transparent 70%);
|
||||||
|
right: -200px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content { position: relative; z-index: 2; }
|
||||||
|
|
||||||
|
.hero-pill {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
background: var(--blue);
|
||||||
|
color: white;
|
||||||
|
border-radius: 99px;
|
||||||
|
padding: 6px 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
animation: fadeUp 0.5s ease both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-family: 'Sora', sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: clamp(36px, 5.5vw, 62px);
|
||||||
|
line-height: 1.12;
|
||||||
|
color: var(--dark);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
animation: fadeUp 0.5s ease 0.1s both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title .blue-text { color: var(--blue); }
|
||||||
|
.hero-title .underline-text {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.hero-title .underline-text::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 2px; left: 0; right: 0;
|
||||||
|
height: 6px;
|
||||||
|
background: linear-gradient(90deg, var(--blue), #60b4ff);
|
||||||
|
border-radius: 99px;
|
||||||
|
opacity: 0.35;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-desc {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #4a6080;
|
||||||
|
line-height: 1.8;
|
||||||
|
max-width: 500px;
|
||||||
|
margin-bottom: 36px;
|
||||||
|
animation: fadeUp 0.5s ease 0.2s both;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeUp {
|
||||||
|
from { opacity: 0; transform: translateY(20px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-actions { animation: fadeUp 0.5s ease 0.3s both; display: flex; gap: 12px; flex-wrap: wrap; }
|
||||||
|
|
||||||
|
.btn-hero-main {
|
||||||
|
background: var(--blue);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 15px 30px;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 15px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
transition: all 0.25s;
|
||||||
|
box-shadow: 0 8px 24px rgba(43,142,243,0.35);
|
||||||
|
}
|
||||||
|
.btn-hero-main:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(43,142,243,0.45); color: white; }
|
||||||
|
|
||||||
|
.btn-hero-outline {
|
||||||
|
background: white;
|
||||||
|
color: var(--dark);
|
||||||
|
border: 2px solid var(--blue-mid);
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 15px 28px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 15px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.25s;
|
||||||
|
}
|
||||||
|
.btn-hero-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
|
||||||
|
|
||||||
|
/* Hero right side */
|
||||||
|
.hero-visual {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
animation: fadeUp 0.5s ease 0.15s both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-main-card {
|
||||||
|
background: white;
|
||||||
|
border-radius: 28px;
|
||||||
|
padding: 32px;
|
||||||
|
box-shadow: 0 24px 60px rgba(43,142,243,0.15);
|
||||||
|
border: 2px solid var(--blue-mid);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hmc-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
border-bottom: 2px solid var(--blue-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hmc-logo { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
|
||||||
|
.hmc-logo img { width: 36px; height: 36px; object-fit: contain; }
|
||||||
|
.hmc-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px; }
|
||||||
|
.hmc-sub { font-size: 12px; color: #94a3b8; }
|
||||||
|
|
||||||
|
.hmc-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
|
||||||
|
.hmc-stat {
|
||||||
|
background: var(--blue-light);
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 14px 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.hmc-stat-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px; color: var(--blue); }
|
||||||
|
.hmc-stat-label { font-size: 10px; color: #64748b; font-weight: 600; margin-top: 2px; }
|
||||||
|
|
||||||
|
.hmc-lb { background: var(--blue-light); border-radius: 16px; padding: 16px; }
|
||||||
|
.hmc-lb-title { font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 12px; }
|
||||||
|
|
||||||
|
.hmc-lb-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: white;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hmc-lb-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: white; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||||
|
.hmc-lb-name { flex: 1; font-size: 12px; font-weight: 700; }
|
||||||
|
.hmc-lb-exp { font-size: 12px; font-weight: 700; color: var(--blue); }
|
||||||
|
|
||||||
|
/* Floating badges */
|
||||||
|
.float-badge {
|
||||||
|
position: absolute;
|
||||||
|
background: white;
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 10px 14px;
|
||||||
|
box-shadow: 0 8px 24px rgba(43,142,243,0.15);
|
||||||
|
border: 2px solid var(--blue-mid);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
white-space: nowrap;
|
||||||
|
animation: badgeFloat 4s ease-in-out infinite;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fb-1 { top: -20px; right: -20px; animation-delay: 0s; }
|
||||||
|
.fb-2 { bottom: 40px; left: -30px; animation-delay: 2s; }
|
||||||
|
|
||||||
|
@keyframes badgeFloat {
|
||||||
|
0%, 100% { transform: translateY(0); }
|
||||||
|
50% { transform: translateY(-8px); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── STATS BAR ── */
|
||||||
|
.stats-bar {
|
||||||
|
background: var(--blue);
|
||||||
|
padding: 28px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-bar-item { text-align: center; color: white; }
|
||||||
|
.stat-bar-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 32px; }
|
||||||
|
.stat-bar-label { font-size: 13px; opacity: 0.8; margin-top: 2px; }
|
||||||
|
|
||||||
|
.stat-divider {
|
||||||
|
width: 1px;
|
||||||
|
height: 50px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── FEATURES ── */
|
||||||
|
.features-section { padding: 90px 0; }
|
||||||
|
|
||||||
|
.pill-label {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
background: var(--blue-light);
|
||||||
|
color: var(--blue);
|
||||||
|
border-radius: 99px;
|
||||||
|
padding: 5px 14px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sec-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 40px); color: var(--dark); margin-bottom: 14px; }
|
||||||
|
.sec-desc { font-size: 15px; color: #64748b; line-height: 1.8; max-width: 520px; }
|
||||||
|
|
||||||
|
.feat-card {
|
||||||
|
background: white;
|
||||||
|
border-radius: 22px;
|
||||||
|
padding: 28px 24px;
|
||||||
|
height: 100%;
|
||||||
|
border: 2px solid #e8f0fb;
|
||||||
|
transition: all 0.25s;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(43,142,243,0.12); border-color: var(--blue); }
|
||||||
|
|
||||||
|
.feat-icon {
|
||||||
|
width: 52px; height: 52px;
|
||||||
|
border-radius: 14px;
|
||||||
|
background: var(--blue-light);
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feat-icon.orange { background: #fff4ee; }
|
||||||
|
.feat-icon.green { background: #eefaf3; }
|
||||||
|
.feat-icon.purple { background: #f5eeff; }
|
||||||
|
.feat-icon.yellow { background: #fffbea; }
|
||||||
|
.feat-icon.pink { background: #fff0f6; }
|
||||||
|
|
||||||
|
.feat-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--dark); margin-bottom: 10px; }
|
||||||
|
.feat-desc { font-size: 13px; color: #64748b; line-height: 1.75; }
|
||||||
|
|
||||||
|
.feat-tag {
|
||||||
|
display: inline-block;
|
||||||
|
background: var(--blue-light);
|
||||||
|
color: var(--blue);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 3px 10px;
|
||||||
|
border-radius: 99px;
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── HOW ── */
|
||||||
|
.how-section { padding: 90px 0; background: linear-gradient(180deg, white, var(--blue-light)); }
|
||||||
|
|
||||||
|
.step-wrap {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-item {
|
||||||
|
display: flex;
|
||||||
|
gap: 24px;
|
||||||
|
align-items: flex-start;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-item:not(:last-child)::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 23px;
|
||||||
|
top: 52px;
|
||||||
|
bottom: -20px;
|
||||||
|
width: 2px;
|
||||||
|
background: linear-gradient(180deg, var(--blue), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-num-wrap {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--blue);
|
||||||
|
color: white;
|
||||||
|
font-family: 'Sora', sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 18px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
box-shadow: 0 6px 20px rgba(43,142,243,0.35);
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-body { padding-bottom: 36px; }
|
||||||
|
.step-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
|
||||||
|
.step-desc { font-size: 13px; color: #64748b; line-height: 1.75; }
|
||||||
|
|
||||||
|
/* ── LOGIN ── */
|
||||||
|
.login-section { padding: 90px 0; }
|
||||||
|
|
||||||
|
.portal-card {
|
||||||
|
background: white;
|
||||||
|
border-radius: 24px;
|
||||||
|
padding: 40px 32px;
|
||||||
|
text-align: center;
|
||||||
|
border: 2px solid #e8f0fb;
|
||||||
|
transition: all 0.25s;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portal-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0; right: 0;
|
||||||
|
height: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pc-blue::before { background: var(--blue); }
|
||||||
|
.pc-green::before { background: var(--accent2); }
|
||||||
|
.pc-orange::before { background: var(--accent1); }
|
||||||
|
|
||||||
|
.portal-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(43,142,243,0.12); }
|
||||||
|
|
||||||
|
.portal-icon-wrap {
|
||||||
|
width: 72px; height: 72px;
|
||||||
|
border-radius: 20px;
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
font-size: 32px;
|
||||||
|
margin: 0 auto 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.piw-blue { background: var(--blue-light); }
|
||||||
|
.piw-green { background: #eefaf3; }
|
||||||
|
.piw-orange { background: #fff4ee; }
|
||||||
|
|
||||||
|
.portal-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
|
||||||
|
.portal-desc { font-size: 13px; color: #64748b; line-height: 1.7; margin-bottom: 24px; }
|
||||||
|
|
||||||
|
.btn-portal {
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px 28px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bp-blue { background: var(--blue); color: white; }
|
||||||
|
.bp-green { background: var(--accent2); color: white; }
|
||||||
|
.bp-orange { background: var(--accent1); color: white; }
|
||||||
|
|
||||||
|
.btn-portal:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: white; }
|
||||||
|
|
||||||
|
/* ── FOOTER ── */
|
||||||
|
footer { background: var(--dark); color: white; padding: 48px 0 24px; }
|
||||||
|
.ft-brand { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
|
||||||
|
.ft-desc { font-size: 13px; color: #94a3b8; line-height: 1.7; max-width: 300px; }
|
||||||
|
.ft-link { color: #94a3b8; font-size: 13px; text-decoration: none; display: block; margin-bottom: 8px; transition: color 0.2s; }
|
||||||
|
.ft-link:hover { color: #60b4ff; }
|
||||||
|
.ft-heading { font-weight: 700; font-size: 14px; margin-bottom: 16px; }
|
||||||
|
.ft-copy { font-size: 12px; color: #475569; text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e3a5f; }
|
||||||
|
|
||||||
|
.blue-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 6px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- NAVBAR -->
|
||||||
|
<nav class="navbar navbar-expand-lg">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="#">
|
||||||
|
<img src="/images/logo/logosmk.png" alt="Logo">
|
||||||
|
<div>
|
||||||
|
<div>E-Learning RPL</div>
|
||||||
|
<div style="font-size:10px;color:#94a3b8;font-weight:500;">SMKN 1 Tapen</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navMenu">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navMenu">
|
||||||
|
<ul class="navbar-nav ms-auto align-items-center gap-2">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#fitur">Fitur</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#cara-kerja">Cara Kerja</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#masuk">Login</a></li>
|
||||||
|
<li class="nav-item ms-2">
|
||||||
|
<a href="#masuk" class="btn-nav-cta text-decoration-none">Masuk →</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- HERO -->
|
||||||
|
<section class="hero">
|
||||||
|
<div class="hero-bg-circle"></div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row align-items-center g-5">
|
||||||
|
|
||||||
|
<div class="col-lg-6 hero-content">
|
||||||
|
<div class="hero-pill">💻 Platform E-Learning Jurusan RPL</div>
|
||||||
|
<h1 class="hero-title">
|
||||||
|
Kuasai <span class="blue-text">Coding</span>,<br>
|
||||||
|
Raih <span class="underline-text">Prestasi</span>
|
||||||
|
</h1>
|
||||||
|
<p class="hero-desc">
|
||||||
|
Platform e-learning khusus jurusan Rekayasa Perangkat Lunak — akses materi coding, kerjakan tugas, ikuti challenge, dan buktikan siapa developer terbaik di kelasmu!
|
||||||
|
</p>
|
||||||
|
<div class="hero-actions">
|
||||||
|
<a href="#masuk" class="btn-hero-main">🚀 Mulai Sekarang</a>
|
||||||
|
<a href="#fitur" class="btn-hero-outline">Lihat Fitur</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-6 hero-visual">
|
||||||
|
<div class="hero-main-card">
|
||||||
|
|
||||||
|
<div class="float-badge fb-1">
|
||||||
|
⭐ <span>+150 EXP didapat!</span>
|
||||||
|
</div>
|
||||||
|
<div class="float-badge fb-2">
|
||||||
|
🏆 <span>Naik ke #2!</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hmc-header">
|
||||||
|
<div class="hmc-logo">
|
||||||
|
<img src="/images/logo/logosmk.png" alt="Logo">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="hmc-name">Dashboard Siswa RPL</div>
|
||||||
|
<div class="hmc-sub">SMKN 1 Tapen</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hmc-stat-row">
|
||||||
|
<div class="hmc-stat">
|
||||||
|
<div class="hmc-stat-num">24</div>
|
||||||
|
<div class="hmc-stat-label">Materi</div>
|
||||||
|
</div>
|
||||||
|
<div class="hmc-stat">
|
||||||
|
<div class="hmc-stat-num">8</div>
|
||||||
|
<div class="hmc-stat-label">Tugas</div>
|
||||||
|
</div>
|
||||||
|
<div class="hmc-stat">
|
||||||
|
<div class="hmc-stat-num">850</div>
|
||||||
|
<div class="hmc-stat-label">EXP</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hmc-lb">
|
||||||
|
<div class="hmc-lb-title">🏅 Leaderboard Kelas</div>
|
||||||
|
<div class="hmc-lb-row">
|
||||||
|
<div class="hmc-lb-rank" style="background:#f59e0b;">🥇</div>
|
||||||
|
<div class="hmc-lb-name">Andi Prasetyo</div>
|
||||||
|
<div class="hmc-lb-exp">1.200 ⭐</div>
|
||||||
|
</div>
|
||||||
|
<div class="hmc-lb-row" style="background:#e8f4ff;">
|
||||||
|
<div class="hmc-lb-rank">2</div>
|
||||||
|
<div class="hmc-lb-name">Kamu 👋</div>
|
||||||
|
<div class="hmc-lb-exp">850 ⭐</div>
|
||||||
|
</div>
|
||||||
|
<div class="hmc-lb-row">
|
||||||
|
<div class="hmc-lb-rank" style="background:#64748b;">3</div>
|
||||||
|
<div class="hmc-lb-name">Siti Rahayu</div>
|
||||||
|
<div class="hmc-lb-exp">720 ⭐</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- STATS BAR -->
|
||||||
|
<div class="stats-bar">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row align-items-center g-3">
|
||||||
|
<div class="col-6 col-md-3">
|
||||||
|
<div class="stat-bar-item">
|
||||||
|
<div class="stat-bar-num">500+</div>
|
||||||
|
<div class="stat-bar-label">Materi Tersedia</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-md-3">
|
||||||
|
<div class="stat-bar-item">
|
||||||
|
<div class="stat-bar-num">1.200+</div>
|
||||||
|
<div class="stat-bar-label">Siswa Aktif</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-md-3">
|
||||||
|
<div class="stat-bar-item">
|
||||||
|
<div class="stat-bar-num">300+</div>
|
||||||
|
<div class="stat-bar-label">Challenge Selesai</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-md-3">
|
||||||
|
<div class="stat-bar-item">
|
||||||
|
<div class="stat-bar-num">50+</div>
|
||||||
|
<div class="stat-bar-label">Guru Pengajar</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
|
||||||
|
<!-- FEATURES -->
|
||||||
|
<section class="features-section" id="fitur">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row align-items-center g-5 mb-5">
|
||||||
|
<div class="col-lg-5">
|
||||||
|
<div class="pill-label">✦ Fitur Platform</div>
|
||||||
|
<h2 class="sec-title">Lengkap untuk<br>Siswa RPL yang<br>Ambisius</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 offset-lg-1">
|
||||||
|
<p class="sec-desc">Dari materi pemrograman hingga gamifikasi — semua dirancang khusus untuk mendukung proses belajar di jurusan Rekayasa Perangkat Lunak.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon">📖</div>
|
||||||
|
<div class="feat-title">Materi Digital</div>
|
||||||
|
<p class="feat-desc">Guru RPL upload modul, siswa akses kapan saja. Materi terorganisir per mapel dan kelas — dari dasar coding sampai advanced.</p>
|
||||||
|
<span class="feat-tag">Untuk Siswa & Guru</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon orange">📝</div>
|
||||||
|
<div class="feat-title">Pengumpulan Tugas</div>
|
||||||
|
<p class="feat-desc">Submit tugas coding online langsung dari browser. Tracking status real-time: belum, dikumpulkan, atau terlambat.</p>
|
||||||
|
<span class="feat-tag" style="background:#fff4ee;color:#f97316;">Manajemen Tugas</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon green">🏆</div>
|
||||||
|
<div class="feat-title">Challenge Interaktif</div>
|
||||||
|
<p class="feat-desc">Kuis pilihan ganda seputar materi RPL dengan navigasi soal dinamis. Kerjakan sebelum tenggat dan buktikan kemampuanmu!</p>
|
||||||
|
<span class="feat-tag" style="background:#eefaf3;color:#22c55e;">Gamifikasi</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon purple">⭐</div>
|
||||||
|
<div class="feat-title">Sistem EXP</div>
|
||||||
|
<p class="feat-desc">Setiap jawaban benar menghasilkan EXP. Semakin banyak belajar, semakin tinggi skormu!</p>
|
||||||
|
<span class="feat-tag" style="background:#f5eeff;color:#a855f7;">Reward System</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon yellow">📊</div>
|
||||||
|
<div class="feat-title">Leaderboard Real-time</div>
|
||||||
|
<p class="feat-desc">Peringkat diperbarui otomatis setiap kali siswa menyelesaikan challenge. Siapa #1?</p>
|
||||||
|
<span class="feat-tag" style="background:#fffbea;color:#d97706;">Kompetisi Sehat</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 col-lg-4">
|
||||||
|
<div class="feat-card">
|
||||||
|
<div class="feat-icon pink">🛡️</div>
|
||||||
|
<div class="feat-title">Multi-Role Panel</div>
|
||||||
|
<p class="feat-desc">Dashboard terpisah untuk Siswa, Guru, dan Admin dengan hak akses yang sesuai peran.</p>
|
||||||
|
<span class="feat-tag" style="background:#fff0f6;color:#ec4899;">Keamanan</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- HOW IT WORKS -->
|
||||||
|
<section class="how-section" id="cara-kerja">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row g-5 align-items-center">
|
||||||
|
<div class="col-lg-4">
|
||||||
|
<div class="pill-label">✦ Cara Kerja</div>
|
||||||
|
<h2 class="sec-title">Mulai dalam<br>3 Langkah<br>Mudah</h2>
|
||||||
|
<p class="sec-desc" style="margin-top:14px;">Tidak perlu instalasi apapun — cukup buka browser dan login!</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-7 offset-lg-1">
|
||||||
|
<div class="step-wrap">
|
||||||
|
<div class="step-item">
|
||||||
|
<div class="step-num-wrap">1</div>
|
||||||
|
<div class="step-body">
|
||||||
|
<div class="step-title">Login ke Platform</div>
|
||||||
|
<p class="step-desc">Siswa masuk menggunakan NISN sebagai username. Guru dan admin menggunakan kredensial dari sekolah.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="step-item">
|
||||||
|
<div class="step-num-wrap">2</div>
|
||||||
|
<div class="step-body">
|
||||||
|
<div class="step-title">Akses Materi & Selesaikan Tugas</div>
|
||||||
|
<p class="step-desc">Pelajari materi yang diupload guru dan kumpulkan tugas tepat waktu untuk performa terbaik.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="step-item">
|
||||||
|
<div class="step-num-wrap">3</div>
|
||||||
|
<div class="step-body">
|
||||||
|
<div class="step-title">Ikuti Challenge & Raih EXP</div>
|
||||||
|
<p class="step-desc">Kerjakan challenge pilihan ganda, kumpulkan EXP, dan bersaing di leaderboard kelas!</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- LOGIN PORTAL -->
|
||||||
|
<section class="login-section" id="masuk">
|
||||||
|
<div class="container">
|
||||||
|
<div class="text-center mb-5">
|
||||||
|
<div class="pill-label mx-auto" style="width:fit-content;">✦ Portal Masuk</div>
|
||||||
|
<h2 class="sec-title">Masuk Sesuai Peranmu</h2>
|
||||||
|
<p style="font-size:15px;color:#64748b;">Pilih portal yang sesuai dengan peranmu di jurusan RPL SMKN 1 Tapen.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-4 justify-content-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="portal-card pc-blue">
|
||||||
|
<div class="portal-icon-wrap piw-blue">👨💻</div>
|
||||||
|
<div class="portal-title">Siswa RPL</div>
|
||||||
|
<p class="portal-desc">Akses materi coding, kumpulkan tugas, kerjakan challenge, dan pantau posisimu di leaderboard kelas.</p>
|
||||||
|
<a href="/siswa/login" class="btn-portal bp-blue">Masuk sebagai Siswa →</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="portal-card pc-green">
|
||||||
|
<div class="portal-icon-wrap piw-green">👩🏫</div>
|
||||||
|
<div class="portal-title">Guru</div>
|
||||||
|
<p class="portal-desc">Upload modul RPL, buat tugas coding, nilai pengumpulan siswa, dan pantau perkembangan kelas.</p>
|
||||||
|
<a href="/guru/login" class="btn-portal bp-green">Masuk sebagai Guru →</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="portal-card pc-orange">
|
||||||
|
<div class="portal-icon-wrap piw-orange">🛡️</div>
|
||||||
|
<div class="portal-title">Admin</div>
|
||||||
|
<p class="portal-desc">Kelola data jurusan RPL, buat challenge, dan pantau seluruh aktivitas di platform.</p>
|
||||||
|
<a href="/admin/login" class="btn-portal bp-orange">Masuk sebagai Admin →</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-5">
|
||||||
|
<div class="d-flex align-items-center gap-3 mb-3">
|
||||||
|
<img src="/images/logo/logosmk.png" alt="Logo" style="width:40px;height:40px;object-fit:contain;filter:brightness(10);">
|
||||||
|
<div class="ft-brand">E-Learning RPL</div>
|
||||||
|
</div>
|
||||||
|
<p class="ft-desc">Platform e-learning dengan gamifikasi khusus jurusan Rekayasa Perangkat Lunak SMKN 1 Tapen.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 offset-md-1">
|
||||||
|
<div class="ft-heading">Platform</div>
|
||||||
|
<a href="#fitur" class="ft-link">Fitur</a>
|
||||||
|
<a href="#cara-kerja" class="ft-link">Cara Kerja</a>
|
||||||
|
<a href="#masuk" class="ft-link">Login</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="ft-heading">Portal</div>
|
||||||
|
<a href="/siswa/login" class="ft-link">👩🎓 Siswa</a>
|
||||||
|
<a href="/guru/login" class="ft-link">👩🏫 Guru</a>
|
||||||
|
<a href="/admin/login" class="ft-link">🛡️ Admin</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ft-copy">© 2025 SMKN 1 Tapen · Jurusan Rekayasa Perangkat Lunak · Platform E-Learning Gamifikasi</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script>
|
||||||
|
// Smooth scroll
|
||||||
|
document.querySelectorAll('a[href^="#"]').forEach(a => {
|
||||||
|
a.addEventListener('click', e => {
|
||||||
|
const t = document.querySelector(a.getAttribute('href'));
|
||||||
|
if (t) { e.preventDefault(); t.scrollIntoView({ behavior: 'smooth' }); }
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Scroll reveal
|
||||||
|
const observer = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach(e => {
|
||||||
|
if (e.isIntersecting) {
|
||||||
|
e.target.style.opacity = '1';
|
||||||
|
e.target.style.transform = 'translateY(0)';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, { threshold: 0.1 });
|
||||||
|
|
||||||
|
document.querySelectorAll('.feat-card, .portal-card, .step-item').forEach(el => {
|
||||||
|
el.style.opacity = '0';
|
||||||
|
el.style.transform = 'translateY(20px)';
|
||||||
|
el.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
|
||||||
|
observer.observe(el);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -1,81 +1,134 @@
|
||||||
@extends('layouts.auth')
|
@extends('layouts.auth')
|
||||||
|
|
||||||
@section('title', 'Login Admin')
|
@section('title', 'Login Admin — E-Learning RPL')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<link rel="stylesheet" href="{{ asset('css/login-admin.css') }}">
|
<link rel="stylesheet" href="{{ asset('css/login.css') }}">
|
||||||
|
|
||||||
<section id="signin" class="signin-section">
|
<div class="page-wrap">
|
||||||
<div class="signin-container">
|
|
||||||
<h1 class="signin-title">SIGN IN ADMIN</h1>
|
|
||||||
|
|
||||||
{{-- Toast Notifikasi Error --}}
|
{{-- LEFT: Info Panel --}}
|
||||||
@if ($errors->any())
|
<div class="left-panel">
|
||||||
<div id="toast-error" class="toast-error">
|
<div class="left-accent"></div>
|
||||||
{{ $errors->first() }}
|
|
||||||
|
<div class="school-logo">
|
||||||
|
<img src="{{ asset('images/logo/logosmk.png') }}" alt="Logo SMK">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="left-tag">SMK Negeri 1 Tapen</div>
|
||||||
|
|
||||||
|
<h1 class="left-title">
|
||||||
|
Platform<br>
|
||||||
|
<em>E-Learning</em><br>
|
||||||
|
RPL
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="left-school">Rekayasa Perangkat Lunak</div>
|
||||||
|
|
||||||
|
<p class="left-desc">
|
||||||
|
Kelola data jurusan, publish challenge, dan pantau seluruh aktivitas di platform.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="stats-row">
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">3</div>
|
||||||
|
<div class="stat-label">Kelas RPL</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">EXP</div>
|
||||||
|
<div class="stat-label">Sistem Poin</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">#1</div>
|
||||||
|
<div class="stat-label">Leaderboard</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('admin.login.submit') }}">
|
{{-- RIGHT: Form --}}
|
||||||
@csrf
|
<div class="right-panel">
|
||||||
|
<div>
|
||||||
<div class="form-card">
|
<div class="form-card">
|
||||||
|
|
||||||
{{-- Username --}}
|
<div class="role-badge">
|
||||||
<div class="input-group">
|
<span class="badge-dot"></span>
|
||||||
<img src="{{ asset('icons/username.svg') }}" alt="Username icon" class="input-icon">
|
Portal Admin
|
||||||
<input type="text" name="username" class="form-input" placeholder="Username" required
|
|
||||||
value="{{ old('username') }}">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- Password --}}
|
<div class="form-title">Masuk ke Akun</div>
|
||||||
<div class="input-group password-wrapper">
|
<div class="form-sub">Gunakan username kamu untuk login</div>
|
||||||
<img src="{{ asset('icons/password.svg') }}" alt="Password icon" class="input-icon">
|
|
||||||
<input type="password" name="password" class="form-input password-input" placeholder="Password" required>
|
|
||||||
|
|
||||||
{{-- Tombol show/hide pakai SVG --}}
|
@if ($errors->any())
|
||||||
<button type="button" class="toggle-password" aria-label="Toggle password visibility">
|
<div id="toast-error" class="toast-error">{{ $errors->first() }}</div>
|
||||||
<img src="{{ asset('icons/show.svg') }}" alt="Show password" class="eye-icon">
|
@endif
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{-- Remember Me --}}
|
<form method="POST" action="{{ route('admin.login.submit') }}">
|
||||||
<div class="remember-wrapper">
|
@csrf
|
||||||
<label class="remember-label">
|
|
||||||
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
<div class="field-group">
|
||||||
<span>Remember me</span>
|
<label class="field-label">Username</label>
|
||||||
</label>
|
<div class="field-wrap">
|
||||||
|
<img src="{{ asset('icons/username.svg') }}" class="field-icon" alt="">
|
||||||
|
<input type="text" name="username" class="field-input"
|
||||||
|
placeholder="Masukkan username" required
|
||||||
|
value="{{ old('username') }}" autocomplete="username">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-group">
|
||||||
|
<label class="field-label">Password</label>
|
||||||
|
<div class="field-wrap">
|
||||||
|
<img src="{{ asset('icons/password.svg') }}" class="field-icon" alt="">
|
||||||
|
<input type="password" name="password" class="field-input password-input"
|
||||||
|
placeholder="Masukkan password" required autocomplete="current-password">
|
||||||
|
<button type="button" class="toggle-password" aria-label="Lihat password">
|
||||||
|
<img src="{{ asset('icons/show.svg') }}" class="eye-icon" alt="show">
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="remember-row">
|
||||||
|
<input type="checkbox" class="remember-check" name="remember" id="remember"
|
||||||
|
{{ old('remember') ? 'checked' : '' }}>
|
||||||
|
<label class="remember-text" for="remember">Ingat saya</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="submit-btn">Masuk ke Dashboard</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<hr class="card-divider">
|
||||||
|
|
||||||
|
<div class="other-portals">
|
||||||
|
<span>Login sebagai</span>
|
||||||
|
<a href="{{ route('siswa.login') }}">Siswa</a>
|
||||||
|
<span>·</span>
|
||||||
|
<a href="{{ route('guru.login') }}">Guru</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="submit-btn">SIGN IN</button>
|
<a href="{{ route('landing-page') }}" class="back-link">← Kembali ke Landing Page</a>
|
||||||
</form>
|
</div>
|
||||||
|
|
||||||
<a href="{{ route('landing-page') }}" class="back-link">← Kembali ke Landing Page</a>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
|
||||||
{{-- SCRIPT INTERAKTIF --}}
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const toggleBtn = document.querySelector('.toggle-password');
|
const toggleBtn = document.querySelector('.toggle-password');
|
||||||
const passwordInput = document.querySelector('.password-input');
|
const passwordInput = document.querySelector('.password-input');
|
||||||
const eyeIcon = toggleBtn.querySelector('img');
|
const eyeIcon = toggleBtn?.querySelector('img');
|
||||||
|
|
||||||
toggleBtn.addEventListener('click', () => {
|
toggleBtn?.addEventListener('click', () => {
|
||||||
const isVisible = passwordInput.type === 'text';
|
const isVisible = passwordInput.type === 'text';
|
||||||
passwordInput.type = isVisible ? 'password' : 'text';
|
passwordInput.type = isVisible ? 'password' : 'text';
|
||||||
eyeIcon.src = isVisible
|
eyeIcon.src = isVisible
|
||||||
? "{{ asset('icons/show.svg') }}"
|
? "{{ asset('icons/show.svg') }}"
|
||||||
: "{{ asset('icons/hide.svg') }}";
|
: "{{ asset('icons/hide.svg') }}";
|
||||||
eyeIcon.alt = isVisible ? "Show password" : "Hide password";
|
|
||||||
});
|
|
||||||
|
|
||||||
// Auto hide toast notification
|
|
||||||
const toast = document.getElementById('toast-error');
|
|
||||||
if (toast) {
|
|
||||||
setTimeout(() => toast.remove(), 4000);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const toast = document.getElementById('toast-error');
|
||||||
|
if (toast) setTimeout(() => toast.remove(), 4000);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
@ -1,79 +1,125 @@
|
||||||
@extends('layouts.auth')
|
@extends('layouts.auth')
|
||||||
|
|
||||||
@section('title', 'Login Guru')
|
@section('title', 'Login Guru — E-Learning RPL')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<link rel="stylesheet" href="{{ asset('css/login-admin.css') }}">
|
<link rel="stylesheet" href="{{ asset('css/login.css') }}">
|
||||||
|
|
||||||
<section id="signin" class="signin-section">
|
<div class="page-wrap">
|
||||||
<div class="signin-container">
|
|
||||||
<h1 class="signin-title">SIGN IN GURU</h1>
|
|
||||||
|
|
||||||
@if ($errors->any())
|
{{-- LEFT: Info Panel --}}
|
||||||
<div id="toast-error" class="toast-error">
|
<div class="left-panel">
|
||||||
{{ $errors->first() }}
|
<div class="left-accent"></div>
|
||||||
|
|
||||||
|
<div class="school-logo">
|
||||||
|
<img src="{{ asset('images/logo/logosmk.png') }}" alt="Logo SMK">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="left-tag">SMK Negeri 1 Tapen</div>
|
||||||
|
|
||||||
|
<h1 class="left-title">
|
||||||
|
Platform<br>
|
||||||
|
<em>E-Learning</em><br>
|
||||||
|
RPL
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="left-school">Rekayasa Perangkat Lunak</div>
|
||||||
|
|
||||||
|
<p class="left-desc">
|
||||||
|
Kelola materi, buat tugas, pantau pengumpulan, dan lihat perkembangan kelas kamu.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="stats-row">
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">3</div>
|
||||||
|
<div class="stat-label">Kelas RPL</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">EXP</div>
|
||||||
<form method="POST" action="{{ route('guru.login.submit') }}">
|
<div class="stat-label">Sistem Poin</div>
|
||||||
@csrf
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">#1</div>
|
||||||
|
<div class="stat-label">Leaderboard</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{-- RIGHT: Form --}}
|
||||||
|
<div class="right-panel">
|
||||||
|
<div>
|
||||||
<div class="form-card">
|
<div class="form-card">
|
||||||
|
|
||||||
{{-- NIP --}}
|
<div class="role-badge">
|
||||||
<div class="input-group">
|
<span class="badge-dot"></span>
|
||||||
<img src="{{ asset('icons/username.svg') }}" class="input-icon">
|
Portal Guru
|
||||||
<input type="text" name="nip"
|
|
||||||
class="form-input"
|
|
||||||
placeholder="NIP"
|
|
||||||
value="{{ old('nip') }}"
|
|
||||||
required>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- Password --}}
|
<div class="form-title">Masuk ke Akun</div>
|
||||||
<div class="input-group password-wrapper">
|
<div class="form-sub">Gunakan NIP kamu untuk login</div>
|
||||||
<img src="{{ asset('icons/password.svg') }}" class="input-icon">
|
|
||||||
|
|
||||||
<input type="password"
|
@if ($errors->any())
|
||||||
name="password"
|
<div id="toast-error" class="toast-error">{{ $errors->first() }}</div>
|
||||||
class="form-input password-input"
|
@endif
|
||||||
placeholder="Password"
|
|
||||||
required>
|
|
||||||
|
|
||||||
<button type="button" class="toggle-password">
|
<form method="POST" action="{{ route('guru.login.submit') }}">
|
||||||
<img src="{{ asset('icons/show.svg') }}" class="eye-icon">
|
@csrf
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{-- Remember --}}
|
<div class="field-group">
|
||||||
<div class="remember-wrapper">
|
<label class="field-label">NIP</label>
|
||||||
<label class="remember-label">
|
<div class="field-wrap">
|
||||||
<input type="checkbox" name="remember">
|
<img src="{{ asset('icons/username.svg') }}" class="field-icon" alt="">
|
||||||
<span>Remember me</span>
|
<input type="text" name="nip" class="field-input"
|
||||||
</label>
|
placeholder="Masukkan NIP" required
|
||||||
|
value="{{ old('nip') }}" autocomplete="username">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-group">
|
||||||
|
<label class="field-label">Password</label>
|
||||||
|
<div class="field-wrap">
|
||||||
|
<img src="{{ asset('icons/password.svg') }}" class="field-icon" alt="">
|
||||||
|
<input type="password" name="password" class="field-input password-input"
|
||||||
|
placeholder="Masukkan password" required autocomplete="current-password">
|
||||||
|
<button type="button" class="toggle-password" aria-label="Lihat password">
|
||||||
|
<img src="{{ asset('icons/show.svg') }}" class="eye-icon" alt="show">
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="remember-row">
|
||||||
|
<input type="checkbox" class="remember-check" name="remember" id="remember"
|
||||||
|
{{ old('remember') ? 'checked' : '' }}>
|
||||||
|
<label class="remember-text" for="remember">Ingat saya</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="submit-btn">Masuk ke Dashboard</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<hr class="card-divider">
|
||||||
|
|
||||||
|
<div class="other-portals">
|
||||||
|
<span>Login sebagai</span>
|
||||||
|
<a href="{{ route('siswa.login') }}">Siswa</a>
|
||||||
|
<span>·</span>
|
||||||
|
<a href="{{ route('admin.login') }}">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="submit-btn">
|
<a href="{{ route('landing-page') }}" class="back-link">← Kembali ke Landing Page</a>
|
||||||
SIGN IN
|
</div>
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<a href="{{ route('landing-page') }}" class="back-link">
|
|
||||||
← Kembali ke Landing Page
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const toggleBtn = document.querySelector('.toggle-password');
|
const toggleBtn = document.querySelector('.toggle-password');
|
||||||
const passwordInput = document.querySelector('.password-input');
|
const passwordInput = document.querySelector('.password-input');
|
||||||
const eyeIcon = toggleBtn.querySelector('img');
|
const eyeIcon = toggleBtn?.querySelector('img');
|
||||||
|
|
||||||
toggleBtn.addEventListener('click', () => {
|
toggleBtn?.addEventListener('click', () => {
|
||||||
const isVisible = passwordInput.type === 'text';
|
const isVisible = passwordInput.type === 'text';
|
||||||
passwordInput.type = isVisible ? 'password' : 'text';
|
passwordInput.type = isVisible ? 'password' : 'text';
|
||||||
eyeIcon.src = isVisible
|
eyeIcon.src = isVisible
|
||||||
|
|
@ -82,10 +128,7 @@ class="form-input password-input"
|
||||||
});
|
});
|
||||||
|
|
||||||
const toast = document.getElementById('toast-error');
|
const toast = document.getElementById('toast-error');
|
||||||
if (toast) {
|
if (toast) setTimeout(() => toast.remove(), 4000);
|
||||||
setTimeout(() => toast.remove(), 4000);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
@ -1,78 +1,134 @@
|
||||||
@extends('layouts.auth')
|
@extends('layouts.auth')
|
||||||
|
|
||||||
@section('title', 'Login Siswa')
|
@section('title', 'Login Siswa — E-Learning RPL')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<link rel="stylesheet" href="{{ asset('css/login-admin.css') }}">
|
<link rel="stylesheet" href="{{ asset('css/login.css') }}">
|
||||||
|
|
||||||
<section id="signin" class="signin-section">
|
<div class="page-wrap">
|
||||||
<div class="signin-container">
|
|
||||||
<h1 class="signin-title">SIGN IN SISWA</h1>
|
|
||||||
|
|
||||||
{{-- Toast Notifikasi Error --}}
|
{{-- LEFT: Info Panel --}}
|
||||||
@if ($errors->any())
|
<div class="left-panel">
|
||||||
<div id="toast-error" class="toast-error">
|
<div class="left-accent"></div>
|
||||||
{{ $errors->first() }}
|
|
||||||
|
<div class="school-logo">
|
||||||
|
<img src="{{ asset('images/logo/logosmk.png') }}" alt="Logo SMK">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="left-tag">SMK Negeri 1 Tapen</div>
|
||||||
|
|
||||||
|
<h1 class="left-title">
|
||||||
|
Platform<br>
|
||||||
|
<em>E-Learning</em><br>
|
||||||
|
RPL
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="left-school">Rekayasa Perangkat Lunak</div>
|
||||||
|
|
||||||
|
<p class="left-desc">
|
||||||
|
Akses materi, kumpulkan tugas, ikuti challenge, dan bersaing di leaderboard kelas.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="stats-row">
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">3</div>
|
||||||
|
<div class="stat-label">Kelas RPL</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">EXP</div>
|
||||||
|
<div class="stat-label">Sistem Poin</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<div class="stat-num">#1</div>
|
||||||
|
<div class="stat-label">Leaderboard</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('siswa.login.submit') }}">
|
{{-- RIGHT: Form --}}
|
||||||
@csrf
|
<div class="right-panel">
|
||||||
|
<div>
|
||||||
<div class="form-card">
|
<div class="form-card">
|
||||||
|
|
||||||
{{-- NISN --}}
|
<div class="role-badge">
|
||||||
<div class="input-group">
|
<span class="badge-dot"></span>
|
||||||
<img src="{{ asset('icons/username.svg') }}" alt="NISN icon" class="input-icon">
|
Portal Siswa
|
||||||
<input type="text" name="nisn" class="form-input" placeholder="NISN" required
|
|
||||||
value="{{ old('nisn') }}">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- Password --}}
|
<div class="form-title">Masuk ke Akun</div>
|
||||||
<div class="input-group password-wrapper">
|
<div class="form-sub">Gunakan NISN kamu untuk login</div>
|
||||||
<img src="{{ asset('icons/password.svg') }}" alt="Password icon" class="input-icon">
|
|
||||||
<input type="password" name="password" class="form-input password-input" placeholder="Password" required>
|
|
||||||
|
|
||||||
<button type="button" class="toggle-password" aria-label="Toggle password visibility">
|
@if ($errors->any())
|
||||||
<img src="{{ asset('icons/show.svg') }}" alt="Show password" class="eye-icon">
|
<div id="toast-error" class="toast-error">{{ $errors->first() }}</div>
|
||||||
</button>
|
@endif
|
||||||
</div>
|
|
||||||
|
|
||||||
{{-- Remember Me --}}
|
<form method="POST" action="{{ route('siswa.login.submit') }}">
|
||||||
<div class="remember-wrapper">
|
@csrf
|
||||||
<label class="remember-label">
|
|
||||||
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
<div class="field-group">
|
||||||
<span>Remember me</span>
|
<label class="field-label">NISN</label>
|
||||||
</label>
|
<div class="field-wrap">
|
||||||
|
<img src="{{ asset('icons/username.svg') }}" class="field-icon" alt="">
|
||||||
|
<input type="text" name="nisn" class="field-input"
|
||||||
|
placeholder="Masukkan NISN" required
|
||||||
|
value="{{ old('nisn') }}" autocomplete="username">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-group">
|
||||||
|
<label class="field-label">Password</label>
|
||||||
|
<div class="field-wrap">
|
||||||
|
<img src="{{ asset('icons/password.svg') }}" class="field-icon" alt="">
|
||||||
|
<input type="password" name="password" class="field-input password-input"
|
||||||
|
placeholder="Masukkan password" required autocomplete="current-password">
|
||||||
|
<button type="button" class="toggle-password" aria-label="Lihat password">
|
||||||
|
<img src="{{ asset('icons/show.svg') }}" class="eye-icon" alt="show">
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="remember-row">
|
||||||
|
<input type="checkbox" class="remember-check" name="remember" id="remember"
|
||||||
|
{{ old('remember') ? 'checked' : '' }}>
|
||||||
|
<label class="remember-text" for="remember">Ingat saya</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="submit-btn">Masuk ke Dashboard</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<hr class="card-divider">
|
||||||
|
|
||||||
|
<div class="other-portals">
|
||||||
|
<span>Login sebagai</span>
|
||||||
|
<a href="{{ route('guru.login') }}">Guru</a>
|
||||||
|
<span>·</span>
|
||||||
|
<a href="{{ route('admin.login') }}">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="submit-btn">SIGN IN</button>
|
<a href="{{ route('landing-page') }}" class="back-link">← Kembali ke Landing Page</a>
|
||||||
</form>
|
</div>
|
||||||
|
|
||||||
<a href="{{ route('landing-page') }}" class="back-link">← Kembali ke Landing Page</a>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const toggleBtn = document.querySelector('.toggle-password');
|
const toggleBtn = document.querySelector('.toggle-password');
|
||||||
const passwordInput = document.querySelector('.password-input');
|
const passwordInput = document.querySelector('.password-input');
|
||||||
const eyeIcon = toggleBtn.querySelector('img');
|
const eyeIcon = toggleBtn?.querySelector('img');
|
||||||
|
|
||||||
toggleBtn.addEventListener('click', () => {
|
toggleBtn?.addEventListener('click', () => {
|
||||||
const isVisible = passwordInput.type === 'text';
|
const isVisible = passwordInput.type === 'text';
|
||||||
passwordInput.type = isVisible ? 'password' : 'text';
|
passwordInput.type = isVisible ? 'password' : 'text';
|
||||||
eyeIcon.src = isVisible
|
eyeIcon.src = isVisible
|
||||||
? "{{ asset('icons/show.svg') }}"
|
? "{{ asset('icons/show.svg') }}"
|
||||||
: "{{ asset('icons/hide.svg') }}";
|
: "{{ asset('icons/hide.svg') }}";
|
||||||
eyeIcon.alt = isVisible ? "Show password" : "Hide password";
|
|
||||||
});
|
|
||||||
|
|
||||||
const toast = document.getElementById('toast-error');
|
|
||||||
if (toast) {
|
|
||||||
setTimeout(() => toast.remove(), 4000);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const toast = document.getElementById('toast-error');
|
||||||
|
if (toast) setTimeout(() => toast.remove(), 4000);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
Loading…
Reference in New Issue