import { FormEventHandler, useEffect } from "react"; import GuestLayout from "@/layouts/guest-layout"; import { Head, Link, useForm } from "@inertiajs/react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { InputError } from "@/components/ui/input-error"; export default function Login({ status, canResetPassword, }: { status?: string; canResetPassword: boolean; }) { const { data, setData, post, processing, errors, reset } = useForm({ email: "", password: "", remember: false, }); useEffect(() => { return () => { reset("password"); }; }, []); const submit: FormEventHandler = (e) => { e.preventDefault(); post(route("login")); }; return ( // // //
// // // Login // // Enter your email below to login to your account // // // // {status && ( //
// {status} //
// )} //
//
// // // setData("email", e.target.value) // } // required // /> // //
//
//
// // // Forgot your password? // //
// // setData("password", e.target.value) // } // required // /> // //
// //
//
// Don't have an account?{" "} // // Sign up // //
//
//
//
//
<>
Logo SKL

Status Ketaatan Lingkungan

SELAMAT DATANG KEMBALI!

Masuk untuk melanjutkan ke dashboard SKL

{/* Login Masuk untuk melanjutkan ke dashboard SKL */} {status && (
{status}
)}
setData( "email", e.target.value ) } required />
Lupa Kata Sandi?
setData( "password", e.target.value ) } required />
{/*
Don't have an account?{" "} Sign up
*/}
© 2025
Dinas Lingkungan Hidup Provinsi DKI Jakarta Bidang Tata Lingkungan dan Kebersihan
); }