first commit

This commit is contained in:
Mojtaba Khorshidkolah
2026-03-04 13:50:57 +03:30
commit 6c3b474873
93 changed files with 8865 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
"use client";
import Link from "next/link";
import React, {useEffect, useState} from "react";
export default function ReservationButton({isSticky}: {isSticky: boolean}) {
const [show, setShow] = useState(false);
useEffect(() => {
const handleScroll = () => {
if (window.scrollY > 1000) {
setShow(true);
} else {
setShow(false);
}
};
window.addEventListener("scroll", handleScroll);
return () => window.removeEventListener("scroll", handleScroll);
}, []);
return (
<>
{show && (
<Link
href={"/contact-us#request_accept"}
dir="ltr"
className={`bg-secondary text-white rounded-full ${
isSticky ? "py-4 px-4" : "py-4 px-6"
} font-extrabold shadow-lg flex items-center whitespace-nowrap shadow-neutral-300 hover:shadow-none transition-all duration-200`}
>
دریافت
نوبت آنلاین
</Link>
)}
</>
);
}