"use client"; import { motion, useScroll, useSpring, useTransform } from "framer-motion"; import Link from "next/link"; import { useRef } from "react"; import { useTranslation } from "react-i18next"; import { MdNorthEast } from "react-icons/md"; import Button from "@/lib/components/ui/Button"; const Hero = (): JSX.Element => { const { t } = useTranslation(); const targetRef = useRef(null); const { scrollYProgress } = useScroll({ target: targetRef, offset: ["start start", "end start"], }); const scaleSync = useTransform(scrollYProgress, [0, 0.5], [1, 0.9]); const scale = useSpring(scaleSync, { mass: 0.1, stiffness: 100 }); const position = useTransform(scrollYProgress, (pos) => { if (pos === 1) { return "relative"; } return "sticky"; }); const videoScaleSync = useTransform(scrollYProgress, [0, 0.5], [0.9, 1]); const videoScale = useSpring(videoScaleSync, { mass: 0.1, stiffness: 100 }); const opacitySync = useTransform(scrollYProgress, [0, 0.5], [1, 0]); const opacity = useSpring(opacitySync, { mass: 0.1, stiffness: 200 }); return (

{t("title.short")} Quivr

{t("description")}

); }; export default Hero;