Skip to content

Commit

Permalink
docs(website): store X avatars locally
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Feb 2, 2024
1 parent 74f796b commit 6d0c378
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 17 deletions.
12 changes: 0 additions & 12 deletions website/src/components/landing/testimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,20 @@ const tweets: TweetProps[] = [
tweetURL: "https://twitter.com/dihmeetree/status/1734512058597605854",
authorName: "Dmitry",
authorHandle: "dihmeetree",
authorImage:
"https://pbs.twimg.com/profile_images/1726767674275848192/HuBrtE-__400x400.jpg",
date: "Dec 12, 2023",
textHTML: `Thank you <b>@TheEdoRan</b> for the "next-safe-action" package! It's super awesome!! Keep up the amazing work! 😊`,
},
{
tweetURL: "https://twitter.com/Kingsley_codes/status/1718282007510143183",
authorName: "Kingsley O.",
authorHandle: "Kingsley_codes",
authorImage:
"https://pbs.twimg.com/profile_images/1679549288689352704/RqDBl9w1_400x400.jpg",
date: "Oct 28, 2023",
textHTML: `If you aren't using next-safe-actions by <b>@TheEdoRan</b> for your Next 14 app, what are you waiting for? The DX is marvelous. An even better package than zact and <b>@t3dotgg</b> recommends it too so you know it's good!`,
},
{
tweetURL: "https://twitter.com/zaphodias/status/1654158096048979973",
authorName: "zaphodias",
authorHandle: "zaphodias",
authorImage:
"https://pbs.twimg.com/profile_images/1478681149824245762/OPY0MMZX_400x400.jpg",
date: "May 4, 2023",
textHTML: `step 1: upgrade to next 13.4;<br>
step 2: understand actions;<br>
Expand All @@ -36,8 +30,6 @@ step 3: use <b>@TheEdoRan</b>'s lib 🎉`,
tweetURL: "https://twitter.com/rclmenezes/status/1654111420047409153",
authorName: "rigo",
authorHandle: "rclmenezes",
authorImage:
"https://pbs.twimg.com/profile_images/1298993375442382850/bMU83i0i_400x400.jpg",
date: "May 4, 2023",
textHTML: `I predict that ${libURLSpan} is going to get a loooooot of stars in a few hours :)<br><br>
Props <b>@TheEdoRan</b>`,
Expand All @@ -46,8 +38,6 @@ Props <b>@TheEdoRan</b>`,
tweetURL: "https://twitter.com/ErfanEbrahimnia/status/1699816975009013935",
authorName: "Erfan Ebrahimnia",
authorHandle: "ErfanEbrahimnia",
authorImage:
"https://pbs.twimg.com/profile_images/1590423813443002371/Cos1mBo0_400x400.jpg",
date: "Sep 7, 2023",
textHTML: `Using next-safe-action by <b>@TheEdoRan</b> in a project right now and really like it<br><br>
It handles input-validation and errors when using Server Actions<br><br>
Expand All @@ -57,8 +47,6 @@ ${libURLSpan}`,
tweetURL: "https://twitter.com/Xexr/status/1674154036788879360",
authorName: "Xexr",
authorHandle: "Xexr",
authorImage:
"https://pbs.twimg.com/profile_images/1301926733747236864/wkYpwNY1_400x400.jpg",
date: "Jun 28, 2023",
textHTML: `<b>@t3dotgg</b> I saw you mention next-safe-action on your live stream. I wanted to throw my hat in the ring and give it a shout out.<br><br>
It's honestly great, <b>@TheEdoRan</b> has done a fantastic job and it deserves way more attention, I suspect it will get it after the stream mention. 👇`,
Expand Down
9 changes: 4 additions & 5 deletions website/src/components/landing/tweet.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from "react";

export type TweetProps = {
tweetURL: string;
authorName: string;
authorHandle: string;
authorImage: string;
date: string;
textHTML: string;
};
Expand All @@ -13,7 +10,6 @@ export function Tweet({
tweetURL,
authorName,
authorHandle,
authorImage,
date,
textHTML,
}: TweetProps) {
Expand All @@ -24,7 +20,10 @@ export function Tweet({
rel="noopener noreferrer"
className="p-4 bg-white dark:bg-stone-800 rounded-xl flex flex-col space-y-4 max-w-lg !no-underline transition hover:brightness-90">
<div className="flex space-x-4 items-center">
<img src={authorImage} className="rounded-full w-10 h-10" />
<img
src={`/img/x/${authorHandle}.jpg`}
className="rounded-full w-10 h-10"
/>
<div className="flex flex-col">
<span className="text-sm font-semibold text-stone-950 dark:text-stone-50">
{authorName}
Expand Down
Binary file added website/static/img/x/ErfanEbrahimnia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/x/Kingsley_codes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/x/Xexr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/x/dihmeetree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/x/rclmenezes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/x/zaphodias.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d0c378

Please sign in to comment.