From ab684250cf65f678b3bc2adf11906c475b3a0103 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 22 Apr 2025 10:26:13 +0200 Subject: [PATCH] fix minor ui/ux --- web/src/components/hero.tsx | 12 ++++++------ web/src/components/magicui/number-ticker.tsx | 7 ++----- web/src/components/recently-added-icons.tsx | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/web/src/components/hero.tsx b/web/src/components/hero.tsx index 1e5201ea..33231911 100644 --- a/web/src/components/hero.tsx +++ b/web/src/components/hero.tsx @@ -207,21 +207,21 @@ export function HeroSection({ totalIcons, stars }: { totalIcons: number; stars:
-

+

Your definitive source for - +
- + dashboard icons

-

- A collection of curated icons +

+ A collection of curated icons for services, applications and tools, designed specifically for dashboards and app directories.

-
+
Explore icons diff --git a/web/src/components/magicui/number-ticker.tsx b/web/src/components/magicui/number-ticker.tsx index a4efe6e0..39158e5b 100644 --- a/web/src/components/magicui/number-ticker.tsx +++ b/web/src/components/magicui/number-ticker.tsx @@ -26,7 +26,7 @@ export function NumberTicker({ const motionValue = useMotionValue(direction === "down" ? value : startValue); const springValue = useSpring(motionValue, { damping: 30, - stiffness: 100, + stiffness: 200, }); const isInView = useInView(ref, { once: true, margin: "0px" }); @@ -43,10 +43,7 @@ export function NumberTicker({ () => springValue.on("change", (latest) => { if (ref.current) { - ref.current.textContent = Intl.NumberFormat("en-US", { - minimumFractionDigits: decimalPlaces, - maximumFractionDigits: decimalPlaces, - }).format(Number(latest.toFixed(decimalPlaces))); + ref.current.textContent = Number(latest.toFixed(decimalPlaces)).toString(); } }), [springValue, decimalPlaces], diff --git a/web/src/components/recently-added-icons.tsx b/web/src/components/recently-added-icons.tsx index c5e76eec..dc765f4a 100644 --- a/web/src/components/recently-added-icons.tsx +++ b/web/src/components/recently-added-icons.tsx @@ -32,7 +32,7 @@ export function RecentlyAddedIcons({ icons }: { icons: IconWithName[] }) {
-

+

Recently Added Icons