From 033d0322bb40e7e9f7fafd511bcbdc9bab85a86d Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Mon, 28 Nov 2022 16:46:10 +0100 Subject: [PATCH] feat(demo): Layout component (#214) --- apps/demo/src/components/Layout.astro | 30 ++++++++++ .../src/pages/examples/form-component.astro | 11 ++-- apps/demo/src/pages/examples/index.astro | 10 ++-- apps/demo/src/pages/index.astro | 26 ++------ apps/demo/src/pages/job-application.astro | 60 ++++--------------- apps/demo/src/pages/pizza-delivery.astro | 25 +++----- 6 files changed, 65 insertions(+), 97 deletions(-) create mode 100644 apps/demo/src/components/Layout.astro diff --git a/apps/demo/src/components/Layout.astro b/apps/demo/src/components/Layout.astro new file mode 100644 index 0000000..3a01966 --- /dev/null +++ b/apps/demo/src/components/Layout.astro @@ -0,0 +1,30 @@ +--- +import Nav from "./Nav.astro"; + +export interface Props { + title: string; + theme?: "dark" | "light"; +} +const { theme = "light", title } = Astro.props; +--- + + + + + + + + {title} | Astro Reactive Demo + + +