forked from emre/www_projectmycelium_com
refactor: remove unused imports and variables
- Removed unused React imports from components (now using named imports only) - Removed unused cursor state and onMouseMove handler from text-hover-effect - Removed unused H1 import from HomeBlink
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import React from "react";
|
|
||||||
import { TextHoverEffect } from "@/components/ui/text-hover-effect";
|
import { TextHoverEffect } from "@/components/ui/text-hover-effect";
|
||||||
|
|
||||||
export function HomeHeadline() {
|
export function HomeHeadline() {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import React, { useRef, useEffect, useState } from "react";
|
import { useRef, useEffect, useState } from "react";
|
||||||
import { motion, useAnimation } from "motion/react";
|
import { motion, useAnimation } from "motion/react";
|
||||||
|
|
||||||
export const TextHoverEffect = ({
|
export const TextHoverEffect = ({
|
||||||
@@ -11,7 +11,6 @@ export const TextHoverEffect = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const svgRef = useRef<SVGSVGElement>(null);
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
const controls = useAnimation();
|
const controls = useAnimation();
|
||||||
const [cursor, setCursor] = useState({ x: 0, y: 0 });
|
|
||||||
const [hovered, setHovered] = useState(false);
|
const [hovered, setHovered] = useState(false);
|
||||||
|
|
||||||
// ✅ Animate mask looping automatically
|
// ✅ Animate mask looping automatically
|
||||||
@@ -41,7 +40,6 @@ export const TextHoverEffect = ({
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
onMouseEnter={() => setHovered(true)}
|
onMouseEnter={() => setHovered(true)}
|
||||||
onMouseLeave={() => setHovered(false)}
|
onMouseLeave={() => setHovered(false)}
|
||||||
onMouseMove={(e) => setCursor({ x: e.clientX, y: e.clientY })}
|
|
||||||
className="select-none"
|
className="select-none"
|
||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { Button } from "@/components/Button";
|
import { Button } from "@/components/Button";
|
||||||
import { Spotlight } from "@/components/ui/spotlight";
|
import { Spotlight } from "@/components/ui/spotlight";
|
||||||
import { H1, H4, H5 } from "@/components/Texts";
|
import { H4, H5 } from "@/components/Texts";
|
||||||
import { HomeHeadline } from "@/components/HomeHeadline";
|
import { HomeHeadline } from "@/components/HomeHeadline";
|
||||||
|
|
||||||
export function HomeBlink({ onGetStartedClick }: { onGetStartedClick: () => void }) {
|
export function HomeBlink({ onGetStartedClick }: { onGetStartedClick: () => void }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user