From 1a995e32c8468d35e88b4e9618458f0cb29ae3c5 Mon Sep 17 00:00:00 2001 From: soryu Date: Wed, 3 Jun 2026 19:45:41 +0100 Subject: feat: soryu - soryu.co: Remove Login button from LandingPage --- frontend/src/components/LandingPage.tsx | 104 ++++++++++++-------------------- 1 file changed, 37 insertions(+), 67 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/LandingPage.tsx b/frontend/src/components/LandingPage.tsx index 2c543a6..3141556 100644 --- a/frontend/src/components/LandingPage.tsx +++ b/frontend/src/components/LandingPage.tsx @@ -1,5 +1,4 @@ import React, { useState, useEffect, useRef } from 'react' -import { LoadingScreen } from './LoadingScreen' import { HeartLogo } from './HeartLogo' import { TypewriterRotator } from './TypewriterRotator' @@ -11,18 +10,12 @@ const HERO_PHRASES = [ '安全な意思決定 · SECURE DECISIONS AT THE EDGE', ] -interface LandingPageProps { - onLogin: () => void -} - -export function LandingPage({ onLogin }: LandingPageProps) { - const [loading, setLoading] = useState(false) +export function LandingPage() { const [showLanding, setShowLanding] = useState(false) const [isStandby, setIsStandby] = useState(true) // false = LIVE, true = STDBY const [velocity, setVelocity] = useState(0) const [energy, setEnergy] = useState(0) const [ramped, setRamped] = useState(false) - const [pendingAction, setPendingAction] = useState(null) const [activePanel, setActivePanel] = useState(null) // Fade-in landing page content after mount @@ -87,19 +80,6 @@ export function LandingPage({ onLogin }: LandingPageProps) { } }, []) - const handleLoadingComplete = () => { - if (pendingAction === 'makimaRedirect') { - window.location.assign('https://makima.jp') - return - } - onLogin() - } - - const handleLogin = () => { - setPendingAction('makimaRedirect') - setLoading(true) - } - const handleMission = () => { setActivePanel((mode) => (mode === 'mission' ? null : 'mission')) } @@ -110,50 +90,46 @@ export function LandingPage({ onLogin }: LandingPageProps) { return (
- {loading && } - - {!loading && ( -
-
-
- Soryu { - const img = e.currentTarget as HTMLImageElement - img.onerror = null - img.src = '/logo/crane-logo.png' - }} - /> -
-
- -
+
+
+
+ Soryu { + const img = e.currentTarget as HTMLImageElement + img.onerror = null + img.src = '/logo/crane-logo.png' + }} + /> +
+
+ +
-
-
- System: - setIsStandby(!isStandby)} - title="Click to toggle between LIVE and STANDBY" - > - - {isStandby ? 'STDBY' : 'LIVE'} - -
-
- Version: - v1.0.0 -
+
+
+ System: + setIsStandby(!isStandby)} + title="Click to toggle between LIVE and STANDBY" + > + + {isStandby ? 'STDBY' : 'LIVE'} + +
+
+ Version: + v1.0.0
- )} +
-
+
{/* Background GIF fills the main body */} )} - {/* CTA row spanning full width: left Mission/MAKIMA, right Login */} + {/* CTA row spanning full width: left Mission/MAKIMA */}
-
- -
-- cgit v1.2.3