Skip to content

Commit 5f0e8e0

Browse files
authored
Merge pull request #132 from ncdai/improve/readme
refactor(page.tsx): rename Praise to Testimonial and update propertie…
2 parents 17021c2 + 0a88953 commit 5f0e8e0

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

apps/web/src/app/(app)/page.tsx

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,29 @@ const featuredItems = [
4545
},
4646
];
4747

48-
type Praise = {
48+
type Testimonial = {
4949
id: string;
5050
avatar: string;
5151
name: string;
52-
description: string;
52+
tagline: string;
5353
content: string;
5454
refLink: string;
5555
};
5656

57-
const praise: Praise[] = [
57+
const testimonials: Testimonial[] = [
5858
{
5959
id: "kapehe_ok",
6060
avatar: "/images/avatars/kapehe_ok.webp",
6161
name: "Kap",
62-
description: "Head of Developer Community at Vercel",
62+
tagline: "Head of Developer Community at Vercel",
6363
content: "one of my favorite projects that submitted! you are crushing it!",
6464
refLink: "https://x.com/kapehe_ok/status/1948104774358106612",
6565
},
6666
{
6767
id: "initjean",
6868
avatar: "/images/avatars/initjean.webp",
6969
name: "Jean P.D. Meijer",
70-
description: "Creator of analog.now",
70+
tagline: "Creator of analog.now",
7171
content:
7272
"congrats you deserve it! react wheel picker is so smooth, its insane 🐐",
7373
refLink: "https://x.com/initjean/status/1948159885960438151",
@@ -76,15 +76,15 @@ const praise: Praise[] = [
7676
id: "jordwalke",
7777
avatar: "/images/avatars/jordwalke.webp",
7878
name: "jordwalke",
79-
description: "Creator of React",
79+
tagline: "Creator of React",
8080
content: "Also, cool wheel picker!",
8181
refLink: "https://x.com/jordwalke/status/1937166049868439854",
8282
},
8383
{
8484
id: "ajaypatel_aj",
8585
avatar: "/images/avatars/ajaypatel_aj.webp",
8686
name: "Ajay Patel",
87-
description: "Creator of shadcn/studio",
87+
tagline: "Creator of shadcn/studio",
8888
content:
8989
"Perfect iOS-like wheel picker for the web 🙌 Natural touch physics, infinite looping, and unstyled components with shadcn CLI support.",
9090
refLink: "https://x.com/ajaypatel_aj/status/2003723039029231737",
@@ -93,14 +93,14 @@ const praise: Praise[] = [
9393
id: "steventey",
9494
avatar: "/images/avatars/steventey.webp",
9595
name: "Steven Tey",
96-
description: "Founder of dub.co",
96+
tagline: "Founder of dub.co",
9797
content: "whoa, this is really dope – needs to get added to @shadcn UI 👀",
9898
refLink: "https://x.com/steventey/status/1936934909370830924",
9999
},
100100
{
101101
id: "theorcdev",
102102
name: "OrcDev",
103-
description: "Creator of 8bitcn/ui",
103+
tagline: "Creator of 8bitcn/ui",
104104
avatar: "/images/avatars/theorcdev.webp",
105105
content: "Looks nice!",
106106
refLink: "https://x.com/theorcdev/status/1934586473040543885",
@@ -175,8 +175,8 @@ export default function Home() {
175175
</div>
176176

177177
<div className="mb-12 grid gap-4 px-4 sm:grid-cols-2 lg:grid-cols-3">
178-
{praise.map((item) => (
179-
<PraiseCard key={item.id} {...item} />
178+
{testimonials.map((item) => (
179+
<TestimonialCard key={item.id} {...item} />
180180
))}
181181
</div>
182182
</div>
@@ -221,7 +221,13 @@ function FeaturedItem({
221221
);
222222
}
223223

224-
function PraiseCard({ avatar, name, description, content, refLink }: Praise) {
224+
function TestimonialCard({
225+
avatar,
226+
name,
227+
tagline,
228+
content,
229+
refLink,
230+
}: Testimonial) {
225231
return (
226232
<a
227233
className="block rounded-md"
@@ -235,7 +241,7 @@ function PraiseCard({ avatar, name, description, content, refLink }: Praise) {
235241
<p>{content}</p>
236242
</div>
237243

238-
<div className="flex items-center gap-2">
244+
<div className="flex items-center gap-3">
239245
<Image
240246
className="shrink-0 rounded-full"
241247
src={avatar}
@@ -245,13 +251,13 @@ function PraiseCard({ avatar, name, description, content, refLink }: Praise) {
245251
aria-hidden
246252
/>
247253

248-
<div className="flex flex-col gap-1.5">
249-
<span className="flex items-center gap-1 text-sm leading-none font-semibold">
254+
<div className="flex translate-y-px flex-col">
255+
<span className="flex items-center gap-1 text-sm leading-4 font-semibold">
250256
{name}
251-
<VerifiedIcon className="size-[1em] text-[#1d9bf0]" aria-hidden />
257+
<VerifiedIcon className="size-3 text-[#1d9bf0]" aria-hidden />
252258
</span>
253-
<span className="text-xs leading-none text-balance text-muted-foreground">
254-
{description}
259+
<span className="text-xs leading-4 text-balance text-muted-foreground">
260+
{tagline}
255261
</span>
256262
</div>
257263
</div>

0 commit comments

Comments
 (0)