-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathspeaker-page.js
More file actions
32 lines (30 loc) · 802 Bytes
/
speaker-page.js
File metadata and controls
32 lines (30 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from "react";
import { graphql } from "gatsby";
import Layout from "../components/layout";
export default function SpeakerPage({ data }) {
const speaker = data.speakersYaml;
return (
<Layout>
<div>
<h1 className="text-5xl font-extrabold text-blue-500 tracking-tight font-inter p-4">
{speaker.title}
</h1>
<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>
);
}
export const query = graphql`
query($slug: String!) {
speakersYaml(fields: { slug: { eq: $slug } }) {
name
title
description
}
}
`;