diff --git a/web/src/app/icons/components/icon-search.tsx b/web/src/app/icons/components/icon-search.tsx index 0aa979b1..76abd97e 100644 --- a/web/src/app/icons/components/icon-search.tsx +++ b/web/src/app/icons/components/icon-search.tsx @@ -399,11 +399,8 @@ export function IconSearch({ icons }: IconSearchProps) { {getSortLabel(sortOption)} -
And {filteredIcons.length - 120} more...
} + > + ) +} diff --git a/web/src/components/hero.tsx b/web/src/components/hero.tsx index 0ffc83e8..077a10c6 100644 --- a/web/src/components/hero.tsx +++ b/web/src/components/hero.tsx @@ -1,19 +1,19 @@ -"use client"; +"use client" -import { Button } from "@/components/ui/button"; -import { Card } from "@/components/ui/card"; -import { Input } from "@/components/ui/input"; -import { cn } from "@/lib/utils"; -import { motion, useAnimation, useInView } from "framer-motion"; -import { DollarSign, Heart, Search, Star } from "lucide-react"; -import Link from "next/link"; -import { useEffect, useRef, useState } from "react"; -import { AuroraText } from "./magicui/aurora-text"; -import { InteractiveHoverButton } from "./magicui/interactive-hover-button"; +import { Button } from "@/components/ui/button" +import { Card } from "@/components/ui/card" +import { Input } from "@/components/ui/input" +import { cn } from "@/lib/utils" +import { motion, useAnimation, useInView } from "framer-motion" +import { DollarSign, Heart, Search, Star } from "lucide-react" +import Link from "next/link" +import { useEffect, useRef, useState } from "react" +import { AuroraText } from "./magicui/aurora-text" +import { InteractiveHoverButton } from "./magicui/interactive-hover-button" interface IconCardProps { - name: string; - imageUrl: string; + name: string + imageUrl: string } function IconCard({ name, imageUrl }: IconCardProps) { @@ -22,11 +22,9 @@ function IconCard({ name, imageUrl }: IconCardProps) {- {name} -
+{name}
- ); + ) } function ElegantShape({ @@ -39,28 +37,28 @@ function ElegantShape({ mobileWidth, mobileHeight, }: { - className?: string; - delay?: number; - width?: number; - height?: number; - rotate?: number; - gradient?: string; - mobileWidth?: number; - mobileHeight?: number; + className?: string + delay?: number + width?: number + height?: number + rotate?: number + gradient?: string + mobileWidth?: number + mobileHeight?: number }) { - const controls = useAnimation(); - const [isMobile, setIsMobile] = useState(false); - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.1 }); + const controls = useAnimation() + const [isMobile, setIsMobile] = useState(false) + const ref = useRef(null) + const isInView = useInView(ref, { once: true, amount: 0.1 }) useEffect(() => { const checkMobile = () => { - setIsMobile(window.innerWidth < 768); - }; - checkMobile(); - window.addEventListener("resize", checkMobile); - return () => window.removeEventListener("resize", checkMobile); - }, []); + setIsMobile(window.innerWidth < 768) + } + checkMobile() + window.addEventListener("resize", checkMobile) + return () => window.removeEventListener("resize", checkMobile) + }, []) useEffect(() => { if (isInView) { @@ -77,9 +75,9 @@ function ElegantShape({ ease: [0.23, 0.86, 0.39, 0.96], opacity: { duration: 1.2 }, }, - }); + }) } - }, [controls, delay, isInView, rotate]); + }, [controls, delay, isInView, rotate]) return (- A collection of {totalIcons}{" "} - curated icons for services, applications and tools, designed - specifically for dashboards and app directories. + A collection of {totalIcons} curated icons for services, applications and tools, + designed specifically for dashboards and app directories.