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

64 lines
1.9 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-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>