Feat: Apply Kalshi brand green accent to login

This commit is contained in:
2026-03-14 18:52:19 -07:00
parent 4d93add4df
commit 73854a6b48

View File

@@ -1,12 +1,14 @@
'use client';
import { useState, useRef } from 'react';
// TODO: We should use this Kalshi green accent (#28CC95) all over the code.
export default function LoginPage() {
const [email, setEmail] = useState('');
const[email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [captcha, setCaptcha] = useState('');
const[captcha, setCaptcha] = useState('');
const [error, setError] = useState('');
const [success, setSuccess] = useState('');
const[success, setSuccess] = useState('');
const captchaImgRef = useRef(null);
const refreshCaptcha = () => {
@@ -39,7 +41,7 @@ export default function LoginPage() {
return (
<div className="min-h-screen flex items-center justify-center bg-gray-50 text-gray-900 font-sans">
<div className="bg-white p-8 rounded-lg shadow-xl w-full max-w-md border border-gray-100">
<h1 className="text-2xl font-bold mb-6 text-center text-indigo-600">Kalbot Access</h1>
<h1 className="text-2xl font-bold mb-6 text-center text-[#28CC95]">Kalbot Access</h1>
{error && <div className="bg-red-50 border border-red-200 text-red-600 p-3 rounded mb-4 text-sm">{error}</div>}
{success && <div className="bg-green-50 border border-green-200 text-green-600 p-3 rounded mb-4 text-sm">{success}</div>}
@@ -50,7 +52,7 @@ export default function LoginPage() {
<input
type="email"
required
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition-shadow"
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-[#28CC95] focus:ring-1 focus:ring-[#28CC95] transition-shadow"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
@@ -60,7 +62,7 @@ export default function LoginPage() {
<input
type="password"
required
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition-shadow"
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-[#28CC95] focus:ring-1 focus:ring-[#28CC95] transition-shadow"
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
@@ -77,7 +79,7 @@ export default function LoginPage() {
onClick={refreshCaptcha}
title="Click to refresh"
/>
<button type="button" onClick={refreshCaptcha} className="text-sm font-medium text-indigo-600 hover:text-indigo-500 transition-colors">
<button type="button" onClick={refreshCaptcha} className="text-sm font-medium text-[#28CC95] hover:opacity-80 transition-opacity">
Refresh
</button>
</div>
@@ -85,7 +87,7 @@ export default function LoginPage() {
type="text"
required
placeholder="Enter the text above"
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition-shadow"
className="w-full bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:border-[#28CC95] focus:ring-1 focus:ring-[#28CC95] transition-shadow"
value={captcha}
onChange={(e) => setCaptcha(e.target.value)}
/>
@@ -93,7 +95,7 @@ export default function LoginPage() {
<button
type="submit"
className="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded transition-colors mt-6 shadow-sm"
className="w-full bg-[#28CC95] hover:brightness-95 text-white font-bold py-2 px-4 rounded transition-all mt-6 shadow-sm"
>
Login
</button>