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,6 +1,8 @@
'use client'; 'use client';
import { useState, useRef } from 'react'; import { useState, useRef } from 'react';
// TODO: We should use this Kalshi green accent (#28CC95) all over the code.
export default function LoginPage() { export default function LoginPage() {
const[email, setEmail] = useState(''); const[email, setEmail] = useState('');
const [password, setPassword] = useState(''); const [password, setPassword] = useState('');
@@ -39,7 +41,7 @@ export default function LoginPage() {
return ( return (
<div className="min-h-screen flex items-center justify-center bg-gray-50 text-gray-900 font-sans"> <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"> <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>} {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>} {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 <input
type="email" type="email"
required 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} value={email}
onChange={(e) => setEmail(e.target.value)} onChange={(e) => setEmail(e.target.value)}
/> />
@@ -60,7 +62,7 @@ export default function LoginPage() {
<input <input
type="password" type="password"
required 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} value={password}
onChange={(e) => setPassword(e.target.value)} onChange={(e) => setPassword(e.target.value)}
/> />
@@ -77,7 +79,7 @@ export default function LoginPage() {
onClick={refreshCaptcha} onClick={refreshCaptcha}
title="Click to refresh" 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 Refresh
</button> </button>
</div> </div>
@@ -85,7 +87,7 @@ export default function LoginPage() {
type="text" type="text"
required required
placeholder="Enter the text above" 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} value={captcha}
onChange={(e) => setCaptcha(e.target.value)} onChange={(e) => setCaptcha(e.target.value)}
/> />
@@ -93,7 +95,7 @@ export default function LoginPage() {
<button <button
type="submit" 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 Login
</button> </button>