diff --git a/frontend/src/components/AuthModal.tsx b/frontend/src/components/AuthModal.tsx index c72649a..584c203 100644 --- a/frontend/src/components/AuthModal.tsx +++ b/frontend/src/components/AuthModal.tsx @@ -124,7 +124,7 @@ export function AuthModal({ isOpen, onClose, onLoginSuccess }: AuthModalProps) { value={formData.username} onChange={handleChange} placeholder="Username" - className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-blue-500 transition-colors" + className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-[#238636] transition-colors" /> @@ -141,7 +141,7 @@ export function AuthModal({ isOpen, onClose, onLoginSuccess }: AuthModalProps) { value={formData.email} onChange={handleChange} placeholder="Email" - className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-blue-500 transition-colors" + className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-[#238636] transition-colors" /> @@ -155,7 +155,7 @@ export function AuthModal({ isOpen, onClose, onLoginSuccess }: AuthModalProps) { value={formData.fullName} onChange={handleChange} placeholder="Full Name" - className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-blue-500 transition-colors" + className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white focus:outline-none focus:border-[#238636] transition-colors" /> @@ -173,7 +173,7 @@ export function AuthModal({ isOpen, onClose, onLoginSuccess }: AuthModalProps) { value={formData.password} onChange={handleChange} placeholder="Password" - className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-10 py-2.5 text-white focus:outline-none focus:border-blue-500 transition-colors" + className="w-full bg-black/50 border border-gray-700 rounded-lg pl-10 pr-10 py-2.5 text-white focus:outline-none focus:border-[#238636] transition-colors" /> @@ -200,7 +200,7 @@ export function AuthModal({ isOpen, onClose, onLoginSuccess }: AuthModalProps) { {isLogin ? '还没有账号?' : '已有账号?'} diff --git a/frontend/src/components/CelestialBody.tsx b/frontend/src/components/CelestialBody.tsx index 3f20052..58a196a 100644 --- a/frontend/src/components/CelestialBody.tsx +++ b/frontend/src/components/CelestialBody.tsx @@ -112,7 +112,9 @@ function Planet({ body, size, emissive, emissiveIntensity, allBodies, isSelected } }) .catch((err) => { - console.error(`Failed to load texture for ${body.name}:`, err); + if (import.meta.env.DEV) { + console.error(`Failed to load texture for ${body.name}:`, err); + } setTexturePath(null); }); }, [body.id, body.name]); diff --git a/frontend/src/components/ControlPanel.tsx b/frontend/src/components/ControlPanel.tsx index cde8ce1..8995f51 100644 --- a/frontend/src/components/ControlPanel.tsx +++ b/frontend/src/components/ControlPanel.tsx @@ -34,8 +34,8 @@ export function ControlPanel({ }: ControlPanelProps) { const buttonClass = (isActive: boolean) => ` p-2 rounded-lg transition-all duration-200 relative group - ${isActive - ? 'bg-blue-600 text-white shadow-lg shadow-blue-500/50' + ${isActive + ? 'bg-[#238636] text-white shadow-lg shadow-[#238636]/50' : 'bg-white/10 text-gray-300 hover:bg-white/20 border border-white/5' } `; diff --git a/frontend/src/components/FocusInfo.tsx b/frontend/src/components/FocusInfo.tsx index 74e5634..a97f593 100644 --- a/frontend/src/components/FocusInfo.tsx +++ b/frontend/src/components/FocusInfo.tsx @@ -77,9 +77,9 @@ export function FocusInfo({ body, onClose, toast }: FocusInfoProps) { {body.name_zh || body.name} {isProbe ? '探测器' : '天体'} @@ -94,7 +94,7 @@ export function FocusInfo({ body, onClose, toast }: FocusInfoProps) {
Loading celestial data from NASA JPL Horizons...
+