From 8e9d0ec9001469e52e99f5846b22f20caa1b3471 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 6 Jun 2022 15:29:35 -0700 Subject: [PATCH] tour implementation; style fixes --- components/TourDate.tsx | 22 ++++++++++++++++++++ data/tourData.ts | 10 +++++++++ layouts/AuthorLayout.tsx | 2 +- pages/tour.tsx | 44 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 components/TourDate.tsx create mode 100644 data/tourData.ts create mode 100644 pages/tour.tsx diff --git a/components/TourDate.tsx b/components/TourDate.tsx new file mode 100644 index 0000000..440ada8 --- /dev/null +++ b/components/TourDate.tsx @@ -0,0 +1,22 @@ +const TourDate = ({ date, venue, details, tickets }) => { + return ( +

+ {date} + {` `} + {venue} + {` `} + {details} +   + + Tickets + +

+ ) +} + +export default TourDate diff --git a/data/tourData.ts b/data/tourData.ts new file mode 100644 index 0000000..dd27e53 --- /dev/null +++ b/data/tourData.ts @@ -0,0 +1,10 @@ +const tourData = [ + // { + // date: '2005-05-07', + // venue: 'Montreal @ Medley', + // details: 'Quo Vadis, Despised Icon', + // tickets: '', + // }, +] + +export default tourData diff --git a/layouts/AuthorLayout.tsx b/layouts/AuthorLayout.tsx index a147cc8..6f42344 100644 --- a/layouts/AuthorLayout.tsx +++ b/layouts/AuthorLayout.tsx @@ -27,7 +27,7 @@ export default function AuthorLayout({ children, frontMatter }: Props) { return ( <> -
+

Band diff --git a/pages/tour.tsx b/pages/tour.tsx new file mode 100644 index 0000000..4de772d --- /dev/null +++ b/pages/tour.tsx @@ -0,0 +1,44 @@ +import siteMetadata from '@/data/siteMetadata' +import tourData from '@/data/tourData' +import TourDate from '@/components/TourDate' +import { PageSEO } from '@/components/SEO' + +export default function Projects() { + return ( + <> + +
+
+

+ Tour +

+
+
+
+ {tourData.length ? ( + tourData.map((d) => ( + + )) + ) : ( +

No dates scheduled.

+ )} +
+

+ + View our past tour dates → + +

+
+
+ + ) +}