Skip to content

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

reduce spacing and size of hero frameworks

Francesco Sansalvadorebabb4ef788e7
diff --git a/apps/www/components/Hero/HeroFrameworks.tsx b/apps/www/components/Hero/HeroFrameworks.tsx
index 3d59f73161b..76229d879ea 100644
--- a/apps/www/components/Hero/HeroFrameworks.tsx
+++ b/apps/www/components/Hero/HeroFrameworks.tsx
@@ -5,6 +5,7 @@ import ReactTooltip from 'react-tooltip'
import Telemetry from '~/lib/telemetry'
import { useTelemetryProps } from 'common/hooks/useTelemetryProps'
import { useRouter } from 'next/router'
+import { useBreakpoint } from 'common'
const frameworks = [
{
@@ -54,6 +55,7 @@ const frameworks = [
const HeroFrameworks = ({ className }: { className?: string }) => {
const router = useRouter()
const telemetryProps = useTelemetryProps()
+ const isXs = useBreakpoint(640)
const sendTelemetryEvent = async (gaEvent: string) => {
return await Telemetry.sendEvent(
@@ -71,7 +73,7 @@ const HeroFrameworks = ({ className }: { className?: string }) => {
<div className={['flex text-center flex-col items-center', className].join(' ')}>
<small className="small !text-scale-1100">Works seamlessly with 20+ frameworks</small>
<div className="w-full sm:max-w-lg mt-4 md:mt-3 lg:ml-0">
- <div className="flex flex-wrap items-center justify-center gap-2 sm:flex-nowrap">
+ <div className="flex flex-wrap items-center justify-center gap-1 xs:gap-2 sm:flex-nowrap">
{frameworks.map((framework) => (
<Link href={framework.docs} key={framework.name}>
<a
@@ -85,8 +87,8 @@ const HeroFrameworks = ({ className }: { className?: string }) => {
className="opacity-100 hover:opacity-80 transition-opacity"
src={framework.icon}
alt={framework.name}
- width={45}
- height={45}
+ width={isXs ? 35 : 45}
+ height={isXs ? 35 : 45}
/>
</a>
</Link>