From fbbdda64e724a706282c105aeee7098c85f32f5d Mon Sep 17 00:00:00 2001 From: widgeter Date: Thu, 10 Aug 2023 18:18:41 +0200 Subject: [PATCH 1/4] Fix some texts on pricing page --- src/pages/pricing.astro | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/pricing.astro b/src/pages/pricing.astro index 3d0e8a1..560e093 100644 --- a/src/pages/pricing.astro +++ b/src/pages/pricing.astro @@ -105,7 +105,7 @@ const metadata = { Date: Fri, 11 Aug 2023 17:50:09 +0200 Subject: [PATCH 2/4] Create a contact component --- src/components/ui/Form.astro | 86 ++++++++++++++++++++++++++++ src/components/widgets/Contact.astro | 40 +++++++++++++ src/pages/contact.astro | 28 ++++++++- src/types.d.ts | 28 +++++++++ 4 files changed, 180 insertions(+), 2 deletions(-) create mode 100644 src/components/ui/Form.astro create mode 100644 src/components/widgets/Contact.astro diff --git a/src/components/ui/Form.astro b/src/components/ui/Form.astro new file mode 100644 index 0000000..da4bec8 --- /dev/null +++ b/src/components/ui/Form.astro @@ -0,0 +1,86 @@ +--- +import { Form } from '~/types'; + +const { inputs, textarea, disclaimer, button = 'Contact us', description = '' } = Astro.props as Form; +--- + +
+ { + inputs && + inputs.map( + ({ type = 'text', name, label = '', autocomplete = 'on', placeholder = '' }) => + name && ( +
+ {label && ( + + )} + +
+ ) + ) + } + + { + textarea && ( +
+ +