oliverdavies.uk/website/src/pages/daily.mdx

69 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-10-07 08:14:10 +00:00
---
layout: ../layouts/PageLayout.astro
title: Oliver's Daily List
---
2022-10-15 15:50:13 +00:00
import AboutMe from '../components/AboutMe.astro';
2022-10-07 08:14:10 +00:00
import DailyEmailForm from '../components/DailyEmailForm.astro';
import Markdown from '../components/Markdown.astro';
2022-11-28 22:06:52 +00:00
import _ from 'lodash'
export const testimonials = [
{
name: "Patty O'Callaghan",
text: "<p>Just wanted to say that your blog is amazing <3 I absolutely love it and usually share it with colleagues and some of the kids at my Code Club.</p><p>Thanks for contributing to the community with your amazing content! :)</p>",
2022-11-28 22:06:52 +00:00
image: "patty-ocallaghan.jpg"
},
2022-11-28 22:06:52 +00:00
{
name: "Stephen Mulvihill",
text: "I like the \"$ git log -S\" and \"$ git log --grep\" commands, will definitely be using these, thanks!",
image: "stephen-mulvihill.jpg"
2022-12-01 00:22:43 +00:00
},
{
name: "Marcos Duran",
text: "<p> I am a big fan of your git approaches. I especially remember pairing with you and watching how many commands you run to solve many problems and how fast you were. It's a skill I believe not many have, particularly those who are used to working with a GUI like me, and personally I think it is quite valuable.</p>",
image: "marcos-duran.jpg"
2022-11-28 22:06:52 +00:00
}
]
2022-10-07 08:14:10 +00:00
2022-11-28 22:06:52 +00:00
export const sortedTestimonials = _.reverse(testimonials)
2022-11-28 22:06:52 +00:00
A daily newsletter on software development, DevOps, community, and open-source.
2022-11-28 22:06:52 +00:00
<div class="space-y-12">
<div class="space-y-20">
<DailyEmailForm />
{sortedTestimonials && (
<section>
<h2 class="sr-only">Testimonials</h2>
<div class="space-y-12">
{testimonials.map(testimonial => (
<article class="flex space-x-10">
<div>
<blockquote class="m-0">
<Markdown set:html={testimonial.text} />
</blockquote>
<figcaption class="mt-6">{testimonial.name}</figcaption>
</div>
<div class="flex-shrink-0 hidden sm:block">
<img
alt={testimonial.name}
class="border border-grey rounded-full"
src={`/images/daily/${testimonial.image}`}
width="75"
/>
</div>
</article>
))}
</div>
</section>
)}
</div>
<AboutMe />
</div>