Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update linkCard ui

Isaiah Hamilton81def2130674
diff --git a/apps/temp-docs/components/LinkCard.tsx b/apps/temp-docs/components/LinkCard.tsx
index 664876d0673..8d2edcd90b1 100644
--- a/apps/temp-docs/components/LinkCard.tsx
+++ b/apps/temp-docs/components/LinkCard.tsx
@@ -1,27 +1,32 @@
+import Link from 'next/link'
import { ReactElement } from 'react'
export default function LinkCard({
title,
description,
icon,
+ link,
}: {
title: string
description: string
icon: ReactElement
+ link: string
}) {
return (
- <div className="border-scale-200 hover:border-brand-900 dark:bg-scale-400 m-4 w-full cursor-pointer rounded-md border px-4 shadow-sm hover:shadow-2xl lg:w-2/5">
- {description ? (
- <>
- <h4 className="my-0 p-0">{title}</h4>
- <p>{description}</p>
- </>
- ) : (
- <div className="flex">
- {icon}
- <p>{title}</p>
- </div>
- )}
- </div>
+ <Link href={link || '#'}>
+ <a className="border-scale-200 hover:border-brand-900 dark:bg-scale-400 m-4 w-full cursor-pointer rounded-md border p-4 shadow-sm hover:shadow-2xl lg:w-2/5">
+ {description ? (
+ <>
+ <h4 className="m-0 mb-4 p-0 text-base font-semibold">{title}</h4>
+ <p className="text-scale-1100 m-0 p-0">{description}</p>
+ </>
+ ) : (
+ <div className="flex">
+ {icon}
+ <p className="text-scale-1200 m-0 p-0">{title}</p>
+ </div>
+ )}
+ </a>
+ </Link>
)
}
diff --git a/apps/temp-docs/styles/main.css b/apps/temp-docs/styles/main.css
index ebe6a15f652..e9228cb9acf 100644
--- a/apps/temp-docs/styles/main.css
+++ b/apps/temp-docs/styles/main.css
@@ -11,6 +11,10 @@ body {
color: #333 !important;
}
+a {
+ text-decoration: none !important;
+}
+
.thin-scrollbar {
scrollbar-width: thin;
}