"use client"; import { motion, useScroll, useSpring, useTransform } from "framer-motion"; import Link from "next/link"; import { FC, useRef } from "react"; import { MdNorthEast } from "react-icons/md"; import Button from "../components/ui/Button"; const Hero: FC = () => { 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 (

Get a Second Brain with Quivr

Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.

); }; export default Hero;