Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit ca36f42

Browse files
committed
Add custom footer content
1 parent 31edf3a commit ca36f42

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/components/Post.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ export default function Post({ meta, children, posts }) {
8787
<div className="prose max-w-none pt-10 pb-8">
8888
<MDXProvider components={mdxComponents}>{children}</MDXProvider>
8989
</div>
90-
{meta.discussion && (
90+
{meta.footer && (
91+
<div className="pt-6 pb-16" dangerouslySetInnerHTML={{ __html: meta.footer }} />
92+
)}
93+
{!meta.footer && meta.discussion && (
9194
<div className="pt-6 pb-16">
9295
<p>
9396
Want to talk about this post?{' '}

src/pages/welcoming-david-luhr-to-tailwind-labs/index.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ export const meta = {
88
date: '2021-02-01T13:35:00.0Z',
99
authors: [adamwathan],
1010
image: card,
11-
// discussion: 'https://github.com/tailwindcss/tailwindcss/discussions/2040',
11+
footer: `
12+
<p>
13+
Want to keep up with David's work?
14+
<a href="https://twitter.com/david_luhr" class="font-medium text-teal-500 hover:text-teal-600">
15+
Follow David on Twitter →
16+
</a>
17+
</p>
18+
`,
1219
}
1320

1421
We started working with [David Luhr](https://twitter.com/david_luhr) last summer on a project-by-project basis to help us develop a Figma version of [Tailwind UI](https://tailwindui.com) _(almost ready!)_, as well as to leverage his accessibility expertise when building Tailwind UI templates, ensuring we were following best practices and delivering markup that would work for everyone, no matter what tools they use to browse the web.
@@ -45,5 +52,3 @@ Trying to come up with a way to solve this was hard. It needed to look good, nee
4552
Coming up with an implementation for this was hard because it needed to be implemented with a box shadow, and we had to somehow make it composable with the existing box shadow API. There were many moments where I got frustrated and I might have even given up on it if I was working on it alone, but ultimately we figured it out and now it's one of my favorite features in the framework.
4653

4754
David will be leading component and design asset development on Tailwind UI, and providing accessibility guidance on our other projects like Tailwind CSS and Headless UI. It's been an amazing experience working with him over the last 6 months and we are so excited to have him on the team full-time.
48-
49-
Follow David [on Twitter](https://twitter.com/david_luhr) to keep up with his work!

0 commit comments

Comments
 (0)