From 775549a3f9bfe9dc8f3b2a50a3004982f06f4e8e Mon Sep 17 00:00:00 2001 From: "M. Scott Ford" Date: Wed, 15 May 2024 12:58:33 -0400 Subject: [PATCH] Adds page with link to guest pitch form --- src/components/Layout.jsx | 1 + src/pages/pitch.jsx | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/pages/pitch.jsx diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index f486df6..5e8efa4 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -15,6 +15,7 @@ const navigation = [ { name: 'Home', href: '/' }, { name: 'Community', href: '/community' }, { name: 'About', href: '/about' }, + { name: 'Pitch a Guest', href: '/pitch' }, ] function TinyWaveFormIcon({ colors = [], ...props }) { diff --git a/src/pages/pitch.jsx b/src/pages/pitch.jsx new file mode 100644 index 0000000..f82354b --- /dev/null +++ b/src/pages/pitch.jsx @@ -0,0 +1,36 @@ +import Head from 'next/head' +import { ProseContainer } from '@/components/ProseContainer' +import { getEpisodes } from '@/api/episodes' + +export default function Pitch({episodeCount}) { + return ( + <> + + Codestin Search App + + + +

Know Someone We Should Talk To?

+

+ We're always looking for new guests to have no the show. If you + know who would be a good fit for the show (even if it's you.), + then please fill out our pitch form. +

+
+ + ) +} + +export async function getStaticProps() { + const episodes = await getEpisodes() + return { + props: { + episodeCount: episodes.length + } + } +}