From d5c2b7786d47fb87d630cd35a510822f70028e5c Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 29 Oct 2022 21:26:11 +0200 Subject: [PATCH] Chore clean up demo app (#165) * feat(demo): new nav component * refactor: remove hr --- apps/demo/astro.config.mjs | 7 +-- apps/demo/src/components/Nav.astro | 8 +++ apps/demo/src/pages/index.astro | 6 +- apps/demo/src/pages/job-application.astro | 77 ++++++++++++++--------- apps/demo/src/pages/pizza-delivery.astro | 3 +- 5 files changed, 62 insertions(+), 39 deletions(-) create mode 100644 apps/demo/src/components/Nav.astro diff --git a/apps/demo/astro.config.mjs b/apps/demo/astro.config.mjs index 572b8cb..4840250 100644 --- a/apps/demo/astro.config.mjs +++ b/apps/demo/astro.config.mjs @@ -1,7 +1,4 @@ -import { defineConfig } from 'astro/config'; -import tailwind from '@astrojs/tailwind'; +import { defineConfig } from "astro/config"; // https://astro.build/config -export default defineConfig({ - integrations: [tailwind()] -}); +export default defineConfig({}); diff --git a/apps/demo/src/components/Nav.astro b/apps/demo/src/components/Nav.astro new file mode 100644 index 0000000..6041af5 --- /dev/null +++ b/apps/demo/src/components/Nav.astro @@ -0,0 +1,8 @@ +--- +--- + + diff --git a/apps/demo/src/pages/index.astro b/apps/demo/src/pages/index.astro index af65617..79be3e5 100644 --- a/apps/demo/src/pages/index.astro +++ b/apps/demo/src/pages/index.astro @@ -1,4 +1,5 @@ --- +import Nav from "../components/Nav.astro"; import Form, { ControlConfig, FormGroup, @@ -34,8 +35,9 @@ const form = new FormGroup([ name: "agreement", label: "Agreement", type: "radio", + value: "yes", options: [ - { label: "Agree", value: "yes", checked: true }, + { label: "Agree", value: "yes" }, { label: "Disagree", value: "no" }, ], }, @@ -83,7 +85,7 @@ const theme = "dark"; Astro - +