From 9a1371948f2c0761b0c43e85a14b58090a35597d Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 5 Dec 2025 18:48:47 +0100 Subject: [PATCH] add optional className prop to NavLink component and reduce Foundation section padding --- src/components/NavLink.tsx | 16 ++++++++++------ src/components/home/Foundation.tsx | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/NavLink.tsx b/src/components/NavLink.tsx index e3128ea..1808727 100644 --- a/src/components/NavLink.tsx +++ b/src/components/NavLink.tsx @@ -1,16 +1,20 @@ import Link from 'next/link' +import clsx from 'clsx' -export function NavLink({ - href, - children, -}: { +type NavLinkProps = { href: string children: React.ReactNode -}) { + className?: string +} + +export function NavLink({ href, children, className }: NavLinkProps) { return ( {children} diff --git a/src/components/home/Foundation.tsx b/src/components/home/Foundation.tsx index 7aad125..3b32858 100644 --- a/src/components/home/Foundation.tsx +++ b/src/components/home/Foundation.tsx @@ -34,7 +34,7 @@ const foundations = [ export function Foundation() { return ( -
+