refactor: replace Image component with Avatar for improved user display in TrustedBy section (#297)
This commit is contained in:
@@ -8,6 +8,7 @@ import { FeatureCard } from "~/components/FeatureCard";
|
|||||||
import { FeatureCardPlain } from "~/components/FeatureCardPlain";
|
import { FeatureCardPlain } from "~/components/FeatureCardPlain";
|
||||||
import { PricingCalculator } from "~/components/PricingCalculator";
|
import { PricingCalculator } from "~/components/PricingCalculator";
|
||||||
import CodeExample from "~/components/CodeExample";
|
import CodeExample from "~/components/CodeExample";
|
||||||
|
import { Avatar, AvatarFallback, AvatarImage } from "@usesend/ui/src/avatar";
|
||||||
|
|
||||||
const REPO = "usesend/usesend";
|
const REPO = "usesend/usesend";
|
||||||
const REPO_URL = `https://github.com/${REPO}`;
|
const REPO_URL = `https://github.com/${REPO}`;
|
||||||
@@ -185,13 +186,10 @@ function TrustedBy() {
|
|||||||
{t.quote}
|
{t.quote}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<div className="mt-5 flex items-center gap-3">
|
<div className="mt-5 flex items-center gap-3">
|
||||||
<Image
|
<Avatar className="rounded-lg border-2 border-primary/50 h-8 w-8">
|
||||||
src={t.image}
|
<AvatarImage src={t.image} alt={`${t.author} avatar`} />
|
||||||
alt={`${t.author} avatar`}
|
<AvatarFallback className="rounded-lg text-xs">{t.author.charAt(0).toUpperCase()}</AvatarFallback>
|
||||||
width={32}
|
</Avatar>
|
||||||
height={32}
|
|
||||||
className=" rounded-md border-2 border-primary/50"
|
|
||||||
/>
|
|
||||||
<figcaption className="text-sm">
|
<figcaption className="text-sm">
|
||||||
<span className="font-medium">{t.author}</span>
|
<span className="font-medium">{t.author}</span>
|
||||||
<a
|
<a
|
||||||
@@ -219,13 +217,10 @@ function TrustedBy() {
|
|||||||
{t.quote}
|
{t.quote}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<div className="mt-5 flex items-center gap-3">
|
<div className="mt-5 flex items-center gap-3">
|
||||||
<Image
|
<Avatar className="rounded-lg border-2 border-primary/50 h-8 w-8">
|
||||||
src={t.image}
|
<AvatarImage src={t.image} alt={`${t.author} avatar`} />
|
||||||
alt={`${t.author} avatar`}
|
<AvatarFallback className="rounded-lg text-xs">{t.author.charAt(0).toUpperCase()}</AvatarFallback>
|
||||||
width={32}
|
</Avatar>
|
||||||
height={32}
|
|
||||||
className=" rounded-md border-2 border-primary/50"
|
|
||||||
/>
|
|
||||||
<figcaption className="text-sm">
|
<figcaption className="text-sm">
|
||||||
<span className="font-medium">{t.author}</span>
|
<span className="font-medium">{t.author}</span>
|
||||||
<a
|
<a
|
||||||
|
|||||||
Reference in New Issue
Block a user