From 910944b1324e83d0a64ee32cb0adbc02459723f7 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Tue, 26 Mar 2024 15:38:53 -0700 Subject: [PATCH] add more testimonials and hide other content --- .../src/pages/testimonials/_testimonial.astro | 22 +++++ chan.dev/src/pages/testimonials/index.astro | 99 ++++++++++++------- 2 files changed, 85 insertions(+), 36 deletions(-) create mode 100644 chan.dev/src/pages/testimonials/_testimonial.astro diff --git a/chan.dev/src/pages/testimonials/_testimonial.astro b/chan.dev/src/pages/testimonials/_testimonial.astro new file mode 100644 index 00000000..aa786301 --- /dev/null +++ b/chan.dev/src/pages/testimonials/_testimonial.astro @@ -0,0 +1,22 @@ +
+
+
+

{Astro.props.testimonial}

+
+
+ Tom Coleman +
+
+ {Astro.props.name} +
+
+ {Astro.props.position} +
+
+
+
+
diff --git a/chan.dev/src/pages/testimonials/index.astro b/chan.dev/src/pages/testimonials/index.astro index 18ff5c83..5c7b502d 100644 --- a/chan.dev/src/pages/testimonials/index.astro +++ b/chan.dev/src/pages/testimonials/index.astro @@ -5,6 +5,43 @@ import Layout from '#layouts/Layout.astro' // import * as POSTS from '#content/posts/_posts' import Prose from '#components/prose.astro' import * as ASTRO_CONTENT from 'astro:content' +import Testimonial from './_testimonial.astro' + +const other_testimonials = [ + { + data: { + testimonial: `Chan is one of those people who makes everyone around him feel better simply by existing. He's got the best energy of anyone I know. The fact that he's *also* a talented engineer, communicator, and educator is — quite frankly — kind of annoying because he's raising the bar for the rest of us. He's bringing a unique, cross-functional skill set to any team he works with. Chan is, in every way, a "builder": he builds software, he builds communities, and he builds people. Any company that hires him gains a significant advantage.`, + name: 'Jason Lengstorf', + position: + 'Developer-Focused Media Creator, Strategist, and Consultant', + avatar: 'https://github.com/jlengstorf.png', + }, + }, + { + data: { + testimonial: `everyone else can speak to the technical prowess, which is top tier. i just wanna say this dude is just the best, period. there’s very few people i shit myself with excitement when i have the opportunity to see them. i shit myself the most with him. i’ll be all fucked up and get word that he’s nearby and just spring up like “where the fuck is he”. and then i find him and im like WHATS UP BITCH and touch him too much and he’s mad cool about it and just what a guy lmfao`, + name: 'Ken Wheeler', + position: 'Software Engineer at REDACTED', + avatar: 'https://github.com/kenwheeler.png', + }, + }, + { + data: { + testimonial: `My brain much prefers Chan's style to basically everything out there.`, + name: 'Ryan Hayes', + position: 'Staff Eng/Tech Lead', + avatar: 'https://github.com/ryannosaurusrex.png', + }, + }, + { + data: { + testimonial: `I can't think of anyone in the industry I could recommend more highly than Chantastic as a developer, an educator, a leader, and a good person. 10/10`, + name: 'Anthony Campolo', + position: 'Content at Everfund', + avatar: 'https://github.com/ajcwebdev.png', + }, + }, +] const testimonials = await ASTRO_CONTENT.getCollection( 'entities', @@ -23,11 +60,11 @@ const testimonials = await ASTRO_CONTENT.getCollection( > Testimonials -

Storybook and Chromatic -

+

-->
{ - testimonials.map(({data: entry}) => ( -
-
-
-

{entry.testimonial}

-
-
- Tom Coleman -
-
- {entry.name} -
-
- {entry.position} -
-
-
-
-
+ [...testimonials].map(({data: entry}) => ( + + )) + } + { + other_testimonials.map(({data: entry}) => ( + )) }
-

More

+