Skip to content

Commit

Permalink
design : title 마우스 커서 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
minzziPark committed Oct 24, 2024
1 parent 46ab50e commit 3ea2874
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/about/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { useMousePosition } from "../cursor/Context";
import { motion } from "framer-motion";

interface Props {
children: React.ReactNode;
}

const Title = ({ children }: Props) => {
const { smallEnter, defaultEnter } = useMousePosition();

return (
<div
<motion.div
onMouseEnter={smallEnter}
onMouseLeave={defaultEnter}
className={`w-full font-Organetto_ExtBold text-25 sm:text-15 text-primary-white leading-[120px] text-center mb-50`}
>
{children}
</div>
</motion.div>
);
};

Expand Down

0 comments on commit 3ea2874

Please sign in to comment.