From e4b43535f624475bcda3fd254c16b2e150329609 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 21 Jun 2026 17:17:22 +0000 Subject: [PATCH 1/2] Update src/components/Layout.tsx --- src/components/Layout.tsx | 61 +++------------------------------------ 1 file changed, 4 insertions(+), 57 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 2d1a4b9..9b60c70 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,62 +1,9 @@ -import FooterMinimal from '@/components/sections/footer/FooterMinimal'; -import NavbarFloatingLogo from '@/components/ui/NavbarFloatingLogo'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; -import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; -import { Instagram, Twitter } from "lucide-react"; import { Outlet } from 'react-router-dom'; -import { StyleProvider } from "@/components/ui/StyleProvider"; export default function Layout() { - const navItems = [ - { - "name": "ホーム", "href": "/" - }, - { - "name": "メニュー", "href": "/menu" - }, - { - "name": "アクセス", "href": "/access" - }, - { - "name": "予約", "href": "/reservation" - }, - { - "name": "Hero Home", "href": "#hero-home" - }, - { - "name": "Features Home", "href": "#features-home" - }, - { - "name": "Team", "href": "#team" - } -]; - return ( - - - - - -
- -
- - - -
+
+ +
); -} +} \ No newline at end of file -- 2.49.1 From 5d36bb0e64dd3f101615895ef57ef0676241cf74 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 21 Jun 2026 17:17:23 +0000 Subject: [PATCH 2/2] Update src/components/sections/hero/HeroExpand.tsx --- src/components/sections/hero/HeroExpand.tsx | 150 ++------------------ 1 file changed, 11 insertions(+), 139 deletions(-) diff --git a/src/components/sections/hero/HeroExpand.tsx b/src/components/sections/hero/HeroExpand.tsx index dedb1fc..f78e043 100644 --- a/src/components/sections/hero/HeroExpand.tsx +++ b/src/components/sections/hero/HeroExpand.tsx @@ -1,146 +1,18 @@ -import { useEffect, useRef, useState } from "react"; -import { AnimatePresence, motion, useScroll, useTransform } from "motion/react"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import AutoFillText from "@/components/ui/AutoFillText"; -import { useButtonClick } from "@/hooks/useButtonClick"; +import { useEffect, useCallback } from 'react'; -const StaggerText = ({ text }: { text: string }) => ( - - {[...text].map((char, index) => ( - - {char} - - ))} - -); - -type HeroExpandProps = { +interface HeroExpandProps { title: string; - primaryButton: { text: string; href: string }; - secondaryButton: { text: string; href: string }; onComplete?: () => void; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); +} -const HeroExpand = ({ - title, - videoSrc, - imageSrc, - primaryButton, - secondaryButton, - onComplete, -}: HeroExpandProps) => { - const [showLoader, setShowLoader] = useState(true); - const [expanded, setExpanded] = useState(false); - const handlePrimaryClick = useButtonClick(primaryButton.href); - const handleSecondaryClick = useButtonClick(secondaryButton.href); - - const sectionRef = useRef(null); - const { scrollYProgress } = useScroll({ - target: sectionRef, - offset: ["start start", "end start"], - }); - const videoY = useTransform(scrollYProgress, [0, 1], ["0px", "150px"]); - const videoScale = useTransform(scrollYProgress, [0, 1], [1, 1.1]); +export default function HeroExpand({ title, onComplete }: HeroExpandProps) { + const handleComplete = useCallback(() => { + if (onComplete) onComplete(); + }, [onComplete]); useEffect(() => { - const expandTimer = setTimeout(() => setExpanded(true), 600); - const hideTimer = setTimeout(() => { - setShowLoader(false); - onComplete?.(); - }, 1500); - return () => { - clearTimeout(expandTimer); - clearTimeout(hideTimer); - }; - }, []); + handleComplete(); + }, [handleComplete]); - return ( - <> - - {showLoader && ( - - - - - - )} - - -
- - - - -
- -
-
- - {title} - - -
- - - - - - - - - - -
-
-
-
- - ); -}; - -export default HeroExpand; + return

{title}

; +} \ No newline at end of file -- 2.49.1