Skip to content

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

use next/image

Francesco Sansalvadorecbc887d69d53
diff --git a/apps/www/components/BackedBy.tsx b/apps/www/components/BackedBy.tsx
index f796653e736..af93fc30156 100644
--- a/apps/www/components/BackedBy.tsx
+++ b/apps/www/components/BackedBy.tsx
@@ -1,5 +1,6 @@
import React from 'react'
import { useRouter } from 'next/router'
+import Image from 'next/image'
const BackedBy = ({
className,
@@ -23,26 +24,42 @@ const BackedBy = ({
<small className="small text-xs">backed by</small>
<div className="w-full sm:max-w-lg lg:ml-0">
<div className="flex flex-wrap items-center justify-center gap-4 sm:gap-8 sm:flex-nowrap">
- <img
- className="h-6 w-auto sm:h-8"
- src={`${basePath}/images/logos/yc--grey.png`}
- alt="Y Combinator"
- />
- <img
- className="relative w-auto h-4 sm:h-5"
- src={`${basePath}/images/logos/mozilla--grey.png`}
- alt="Mozilla"
- />
- <img
- className="relative w-auto h-4 sm:h-5"
- src={`${basePath}/images/logos/coatue.png`}
- alt="Coatue"
- />
- <img
- className="relative w-auto h-5 sm:h-6"
- src={`${basePath}/images/logos/felicis.png`}
- alt="Felicis"
- />
+ <div className="relative h-6 w-6 sm:h-8">
+ <Image
+ className=""
+ src={`${basePath}/images/logos/yc--grey.png`}
+ alt="Y Combinator"
+ layout="fill"
+ objectFit="contain"
+ />
+ </div>
+ <div className="relative w-20 h-4 sm:h-5">
+ <Image
+ className=""
+ src={`${basePath}/images/logos/mozilla--grey.png`}
+ alt="Mozilla"
+ layout="fill"
+ objectFit="contain"
+ />
+ </div>
+ <div className="relative w-20 h-4 sm:h-5">
+ <Image
+ className=""
+ src={`${basePath}/images/logos/coatue.png`}
+ alt="Coatue"
+ layout="fill"
+ objectFit="contain"
+ />
+ </div>
+ <div className="relative w-20 h-5 sm:h-6">
+ <Image
+ className=""
+ src={`${basePath}/images/logos/felicis.png`}
+ alt="Felicis"
+ layout="fill"
+ objectFit="contain"
+ />
+ </div>
</div>
</div>
</div>
diff --git a/apps/www/components/ExampleCard.tsx b/apps/www/components/ExampleCard.tsx
index d0265ab6b8c..efa2c86e543 100644
--- a/apps/www/components/ExampleCard.tsx
+++ b/apps/www/components/ExampleCard.tsx
@@ -1,5 +1,6 @@
import { Button, Divider, IconArrowUpRight, IconGitHub, IconTriangle, Space } from 'ui'
import Link from 'next/link'
+import Image from 'next/image'
function ExampleCard(props: any) {
return (
@@ -19,12 +20,15 @@ function ExampleCard(props: any) {
<div className="mb-4">
<h4 className="h6">{props.title}</h4>
<p className="p text-sm">{props.description}</p>
- <div>
- <img
- src={props.author_img}
- alt={props.author + ' GitHub profile picture'}
- className="border-scale-500 inline w-6 h-6 rounded-full"
- />
+ <div className="flex items-center">
+ <div className="relative border-scale-500 inline !w-6 !h-6 rounded-full overflow-hidden">
+ <Image
+ src={props.author_img}
+ alt={props.author + ' GitHub profile picture'}
+ layout="fill"
+ objectFit="cover"
+ />
+ </div>
<span className="text-scale-1200 ml-2 text-sm">{props.author}</span>
</div>
</div>