fix: hero

This commit is contained in:
RizqiSyahrendra 2025-04-29 03:54:00 +07:00
parent 1c30894cc7
commit 328ccb602b

View File

@ -1,18 +1,17 @@
"use client";
import HeroSlider from "@/components/HeroSlider";
import { useRef } from "react";
export default function HomeTopSection() {
const formRef = useRef<HTMLDivElement | null>(null);
// const formRef = useRef<HTMLDivElement | null>(null);
function scrollToForm() {
formRef.current?.scrollIntoView?.({ behavior: "smooth" });
}
// function scrollToForm() {
// formRef.current?.scrollIntoView?.({ behavior: "smooth" });
// }
return (
<>
<HeroSlider onClickBook={scrollToForm} />
<HeroSlider />
{/* <div className="lg:hidden" ref={formRef}>
<ContactFormSection />