diff --git a/src/Dashboard.js b/src/Dashboard.js index e5dc806..ee76d3a 100644 --- a/src/Dashboard.js +++ b/src/Dashboard.js @@ -8,10 +8,8 @@ const Dashboard = () => { const navigate = useNavigate(); const [isMenuOpen, setIsMenuOpen] = useState(false); const menuRef = useRef(null); - const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); - const [selectedRole, setSelectedRole] = useState("officer"); const [successMessage, setSuccessMessage] = useState(""); const [errorMessage, setErrorMessage] = useState(""); const [user, setUser] = useState({}); @@ -100,7 +98,6 @@ const Dashboard = () => { body: JSON.stringify({ username, password, - role: selectedRole, }), } ); @@ -114,7 +111,6 @@ const Dashboard = () => { setSuccessMessage("Officer berhasil ditambahkan"); setUsername(""); setPassword(""); - setSelectedRole("officer"); setErrorMessage(""); // Pertimbangkan untuk memuat ulang data performa jika penambahan officer baru mempengaruhi grafik } catch (error) { @@ -228,17 +224,6 @@ const Dashboard = () => { required /> - diff --git a/src/Login.js b/src/Login.js index fd879d3..c9f045c 100644 --- a/src/Login.js +++ b/src/Login.js @@ -49,7 +49,7 @@ const Login = () => {
- Silakan masuk untuk melanjutkan ke dashboard
diff --git a/src/Login.module.css b/src/Login.module.css index 3ee3f1f..a744827 100644 --- a/src/Login.module.css +++ b/src/Login.module.css @@ -1,73 +1,85 @@ .loginContainer { + font-family: "Inter", sans-serif; + background-color: #f0f5ff; display: flex; - align-items: center; justify-content: center; + align-items: center; height: 100vh; - background: #f0f2f5; - width: 100vw; + margin: 0; } .loginBox { - background: #fff; + background-color: #ffffff; + border-radius: 16px; padding: 40px; - border-radius: 10px; - box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1); + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05); + width: 300px; text-align: center; - width: 100%; - max-width: 400px; } .logo { width: 80px; + height: auto; margin-bottom: 20px; } .h1 { + font-size: 28px; + font-weight: 700; margin-bottom: 10px; - font-size: 24px; - color: #333; + color: #d22129; /* 🔴 Warna merah PSI */ } .subtitle { font-size: 14px; - color: #777; - margin-bottom: 30px; + color: #6b7280; + margin-bottom: 20px; } .form { display: flex; flex-direction: column; + gap: 15px; + text-align: left; } .input { - padding: 10px 15px; - margin-bottom: 15px; - border: 1px solid #ccc; - border-radius: 6px; + width: 100%; + padding: 12px 15px; font-size: 16px; + color: #1f2937; + background-color: #f8f9fa; + border: 1px solid #d1d5db; + border-radius: 8px; + box-sizing: border-box; } .button { - background-color: #337f83; - color: white; - border: none; - padding: 12px; - border-radius: 6px; - font-size: 16px; + background-color: #d22129; /* 🔴 Warna merah PSI */ + color: #ffffff; + padding: 12px 24px; + border-radius: 24px; + font-size: 18px; + font-weight: 600; cursor: pointer; + border: none; + width: 100%; + transition: background-color 0.3s; } .button:hover { - background-color: #3c9a9f; + background-color: #b71c1c; /* versi lebih gelap saat hover */ } .error { color: red; - margin-bottom: 10px; + font-size: 14px; + text-align: left; + margin-top: -10px; } .footer { - margin-top: 20px; + margin-top: 30px; font-size: 12px; - color: #aaa; + color: #9ca3af; }