Skip to content

Commit 7769995

Browse files
authored
Merge pull request #306 from gitcoinco/feat/about
Feat/about: add testimonials
2 parents 6ef3f9c + 8d3bc83 commit 7769995

File tree

3 files changed

+91
-2
lines changed

3 files changed

+91
-2
lines changed

src/app/about/page.tsx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { Metadata } from "next";
22
import Image from "next/image";
3+
import Script from "next/script";
34
import { ArrowUpRight } from "lucide-react";
45
import { Button } from "@/components/ui";
56
import { CTASection } from "@/components/layouts";
67
import { pageSeo } from "@/lib/page-seo";
8+
import Tweet from "@/components/Tweet";
79

810
export const metadata: Metadata = pageSeo.about;
911

@@ -489,6 +491,69 @@ export default function AboutPage() {
489491
</div>
490492
</section>
491493

494+
{/* ── TWEETS ───────────────────────────────────────────────────────── */}
495+
<section className="mx-auto w-full max-w-[1166px] px-4 py-16 sm:px-6 xl:px-0">
496+
<div className="grid gap-x-6 gap-y-10 md:grid-cols-3">
497+
<Tweet
498+
url="https://twitter.com/VitalikButerin/status/1539887980776751107?ref_src=twsrc%5Etfw"
499+
author="vitalik.eth (@VitalikButerin)"
500+
date="June 23, 2022"
501+
noConversation
502+
>
503+
IMO all donors to the gitcoin matching pool deserve to get big
504+
beautiful statues in the metaverse honoring their contributions.
505+
</Tweet>
506+
507+
<Tweet
508+
url="https://twitter.com/LefterisJP/status/1538948370286489600?ref_src=twsrc%5Etfw"
509+
author="Lefteris Karapetsas | Hiring for @rotkiapp (@LefterisJP)"
510+
date="June 20, 2022"
511+
>
512+
Don&apos;t praise working for no money. This is not the spirit of{" "}
513+
<a href="https://twitter.com/hashtag/opensource?src=hash&amp;ref_src=twsrc%5Etfw">
514+
#opensource
515+
</a>
516+
.<br />
517+
<br />
518+
Work should be paid, and work made in the open should even be paid
519+
more.
520+
<br />
521+
<br />
522+
Instead of perpetuating the legend of the poor opensource maintainer
523+
let&apos;s find ways to sustainably fund{" "}
524+
<a href="https://twitter.com/hashtag/opensource?src=hash&amp;ref_src=twsrc%5Etfw">
525+
#opensource
526+
</a>
527+
.<br />
528+
<br />
529+
❤️{" "}
530+
<a href="https://twitter.com/gitcoin?ref_src=twsrc%5Etfw">
531+
@gitcoin
532+
</a>
533+
</Tweet>
534+
535+
<Tweet
536+
url="https://twitter.com/sassal0x/status/1543809081630085121?ref_src=twsrc%5Etfw"
537+
author="sassal.eth 🦇🔊 (@sassal0x)"
538+
date="July 4, 2022"
539+
>
540+
I would love to see more non-speculative Ethereum apps take off
541+
during this bear market.
542+
<br />
543+
<br />
544+
So far the most popular ones I can think of (that have actual active
545+
users) are Gitcoin, POAP and ENS.
546+
<br />
547+
<br />
548+
What else is there?
549+
</Tweet>
550+
</div>
551+
</section>
552+
<Script
553+
src="https://platform.twitter.com/widgets.js"
554+
strategy="afterInteractive"
555+
/>
556+
492557
{/* ── CTA ──────────────────────────────────────────────────────────── */}
493558
<CTASection
494559
title="Ready to Contribute?"

src/app/globals.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,13 @@ code:not(pre code) {
301301
}
302302

303303
/* Blockquotes - Playfair Display, white border */
304-
blockquote {
304+
blockquote:not(.twitter-tweet) {
305305
@apply border-l-2 border-gray-25 pl-6 my-6;
306-
@apply text-xl italic text-gray-500;
306+
@apply text-xl italic text-gray-300;
307+
}
308+
309+
blockquote.twitter-tweet {
310+
@apply text-gray-200 not-italic border-l-2 border-gray-500 pl-5 my-0;
307311
}
308312

309313
/* Tables */

src/components/Tweet.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
interface TweetProps {
2+
url: string;
3+
author: string;
4+
date: string;
5+
noConversation?: boolean;
6+
children: React.ReactNode;
7+
}
8+
9+
export default function Tweet({ url, author, date, noConversation, children }: TweetProps) {
10+
return (
11+
<blockquote
12+
className="twitter-tweet"
13+
{...(noConversation ? { "data-conversation": "none" } : {})}
14+
>
15+
<p lang="en" dir="ltr">{children}</p>
16+
&mdash; {author}{" "}
17+
<a href={url}>{date}</a>
18+
</blockquote>
19+
);
20+
}

0 commit comments

Comments
 (0)