Skip to content

Commit c8260d7

Browse files
chore(web): add more testimonials :)
1 parent bcd553c commit c8260d7

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

apps/web/src/app/(home)/_components/testimonials.tsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,23 @@ const TWEET_IDS = [
4949
"1949912886958301546",
5050
"1942558041704182158",
5151
"1947636576118304881",
52+
"1951704580691304693",
5253
"1937383786637094958",
5354
"1931709370003583004",
5455
"1929147326955704662",
5556
"1948050877454938549",
57+
"1951599045383770386",
5658
"1904228496144269699",
5759
"1949851365435469889",
60+
"1950457707632214136",
5861
"1930257410259616057",
5962
"1937258706279817570",
6063
"1917815700980391964",
6164
"1949921211586400419",
6265
"1947812547551498466",
6366
"1928317790588403953",
6467
"1917640304758514093",
68+
"1951703990896570459",
6569
"1907831059275735353",
6670
"1912924558522524039",
6771
"1945054982870282575",
@@ -70,6 +74,7 @@ const TWEET_IDS = [
7074
"1911490975173607495",
7175
"1930104047845158972",
7276
"1913773945523953713",
77+
"1951540684340469950",
7378
"1944937093387706572",
7479
"1904241046898556970",
7580
"1913834145471672652",
@@ -109,8 +114,24 @@ const TWEET_IDS = [
109114
];
110115

111116
export const components: TwitterComponents = {
112-
AvatarImg: (props) => <Image {...props} alt={props.alt} unoptimized />,
113-
MediaImg: (props) => <Image {...props} alt={props.alt} fill unoptimized />,
117+
AvatarImg: (props) => {
118+
if (!props.src || props.src === "") {
119+
return (
120+
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-muted" />
121+
);
122+
}
123+
return <Image {...props} alt={props.alt || "User avatar"} unoptimized />;
124+
},
125+
MediaImg: (props) => {
126+
if (!props.src || props.src === "") {
127+
return (
128+
<div className="flex h-32 w-full items-center justify-center rounded bg-muted" />
129+
);
130+
}
131+
return (
132+
<Image {...props} alt={props.alt || "Media content"} fill unoptimized />
133+
);
134+
},
114135
};
115136

116137
export default function Testimonials() {

0 commit comments

Comments
 (0)