1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:15:31 -04:00

refactor: replace react-countup with @number-flow/react

This commit is contained in:
2026-04-30 10:36:33 -04:00
parent b2416ff0db
commit 62d632f909
26 changed files with 419 additions and 450 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
"use client";
import { AtSignIcon, ExternalLinkIcon, MoonIcon, SunIcon } from "lucide-react";
import { IconAt, IconExternalLink, IconMoon, IconSun } from "@tabler/icons-react";
import { useTheme } from "next-themes";
import Image from "next/image";
import Link from "next/link";
@@ -228,15 +228,15 @@ const ContactPopover = () => (
delay={0}
render={<Button variant="ghost" size="icon" aria-label="Open contact links" />}
>
<AtSignIcon aria-hidden="true" />
<IconAt aria-hidden="true" />
</PopoverTrigger>
<PopoverContent align="end" className="max-h-(--available-height) overflow-y-auto">
<PopoverContent align="end" className="max-h-(--available-height) gap-2 overflow-y-auto p-2">
<PopoverHeader className="mt-1 px-1">
<PopoverTitle>Get in touch:</PopoverTitle>
<PopoverDescription className="sr-only">Email and social links.</PopoverDescription>
</PopoverHeader>
<nav aria-label="Contact links" className="flex flex-col gap-1">
<nav aria-label="Contact links" className="flex flex-col gap-0.5">
{contactLinks.map((link) => (
<a
key={link.href}
@@ -255,7 +255,7 @@ const ContactPopover = () => (
{link.value}
</span>
{link.external ? (
<ExternalLinkIcon className="text-muted-foreground/70 size-3.5" aria-hidden="true" />
<IconExternalLink className="text-muted-foreground/70 size-3.5" aria-hidden="true" />
) : null}
</a>
))}
@@ -339,8 +339,8 @@ const Header = ({ className }: { className?: string }) => {
aria-label="Toggle theme"
className="group"
>
<SunIcon className="group-hover:stroke-orange-600 dark:hidden" aria-hidden="true" />
<MoonIcon
<IconSun className="group-hover:stroke-orange-600 dark:hidden" aria-hidden="true" />
<IconMoon
className="not-dark:hidden group-hover:stroke-yellow-400"
aria-hidden="true"
/>
+1 -1
View File
@@ -39,7 +39,7 @@ const Menu = () => {
nativeButton={false}
aria-label={item.text}
data-current={isCurrent || undefined}
className="data-current:bg-accent/60 data-current:text-accent-foreground text-sm leading-none"
className="data-current:bg-accent/60 data-current:text-accent-foreground px-2.5 py-3.5 text-sm leading-none"
render={<Link href={item.href} transitionTypes={transitionTypes} />}
>
{item.text}