fun improvements #1

Merged
GKaszewski merged 21 commits from fun into main 2026-03-31 00:50:17 +00:00
Showing only changes of commit 04ada8ad51 - Show all commits

View File

@@ -1,4 +1,4 @@
import React from "react"; import Link from "next/link";
interface BadgeProps { interface BadgeProps {
href?: string; href?: string;
@@ -17,10 +17,17 @@ function Badge({ href, children, style }: BadgeProps) {
); );
if (href) { if (href) {
if (href.startsWith("http")) {
return (
<a href={href} target="_blank" rel="noopener noreferrer" className="hover:opacity-80 transition-opacity">
{base}
</a>
);
}
return ( return (
<a href={href} target="_blank" rel="noopener noreferrer" className="hover:opacity-80 transition-opacity"> <Link href={href} className="hover:opacity-80 transition-opacity">
{base} {base}
</a> </Link>
); );
} }
return base; return base;