From 8b9ae50c689c8d74371ff9da01e801ff7f413fc4 Mon Sep 17 00:00:00 2001 From: utarwyn Date: Thu, 21 Dec 2023 23:38:01 +0100 Subject: [PATCH] Create shared form components --- src/assets/variables.css | 4 + src/components/Shared/Fieldset.vue | 16 ++++ src/components/Shared/Selectfield.vue | 75 ++++++++++++++++ src/components/Shared/Textfield.vue | 72 +++++++++++++++ src/components/company/CaseStudyForm.vue | 105 ++++------------------ src/components/contributor/Newsletter.vue | 33 ++----- src/components/home/ContactForm.vue | 78 +++------------- 7 files changed, 200 insertions(+), 183 deletions(-) create mode 100644 src/components/Shared/Fieldset.vue create mode 100644 src/components/Shared/Selectfield.vue create mode 100644 src/components/Shared/Textfield.vue diff --git a/src/assets/variables.css b/src/assets/variables.css index 5c72218..6885635 100644 --- a/src/assets/variables.css +++ b/src/assets/variables.css @@ -1,3 +1,7 @@ :root { + --color-primary: #355086; + --color-primary-lighter: hsl(220, 43%, 65%); + --color-primary-focus-ring: hsl(220, 43%, 37%, 20%); + --color-secondary: #57c18b; --color-on-surface: #022826; } diff --git a/src/components/Shared/Fieldset.vue b/src/components/Shared/Fieldset.vue new file mode 100644 index 0000000..0ace7c5 --- /dev/null +++ b/src/components/Shared/Fieldset.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/components/Shared/Selectfield.vue b/src/components/Shared/Selectfield.vue new file mode 100644 index 0000000..37bb6f6 --- /dev/null +++ b/src/components/Shared/Selectfield.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/Shared/Textfield.vue b/src/components/Shared/Textfield.vue new file mode 100644 index 0000000..2c8782e --- /dev/null +++ b/src/components/Shared/Textfield.vue @@ -0,0 +1,72 @@ + + +