Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 10 - Add Talk Descriptions to Speaker Pages #13

Open
wants to merge 4 commits into
base: 09-link-to-speaker-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions site/src/data/speakers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
title: "Introduction to Sketching Animals"
time: "8:00"
avatar: "woman-generated-avatar-1.png"
description: Lorem ipsum dolor sit amet, no quo postea aliquam vituperata, ad eos reque nulla offendit. Duis equidem invenire mei ad, pro ad ubique corpora comprehensam. Quis legendos honestatis cu pri, eum doctus salutandi accommodare te. Modo zril vitae in eam, ius in homero maiestatis assueverit, lobortis neglegentur no pro. Ei dictas malorum noluisse vis, cetero voluptatibus ad eam, choro tantas quaeque ea quo.

- name: "Larry Foam"
title: "Getting Started with Sketchnoting"
time: "9:00"
avatar: "man-generated-avatar-1.png"
description: Lorem ipsum dolor sit amet, euripidis splendide definitiones sit in. Noster labores mediocritatem ex quo, amet errem quo at. Est scripta abhorreant neglegentur ut, eam an integre dissentiunt voluptatibus. Eu lorem phaedrum dissentiet eum. Cum et habeo mentitum sententiae, cu nam solet decore invidunt, sed ad liber intellegat adipiscing.

- name: "Amanda Carr"
title: "Introduction to Drawing Underwater"
Expand Down
4 changes: 4 additions & 0 deletions site/src/templates/speaker-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default function SpeakerPage({ data }) {
<h2 className="text-4xl font-extrabold tracking-tight font-inter p-4">
with {speaker.name}
</h2>
<p className="text-sm">
{speaker.description || "More information will be available soon"}
</p>
</div>
</Layout>
);
Expand All @@ -23,6 +26,7 @@ export const query = graphql`
speakersYaml(fields: { slug: { eq: $slug } }) {
name
title
description
}
}
`;