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 @@ + + + + + {{ label }} + + + {{ item }} + + + + + + + + + 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 @@ + + + + + {{ label }} + + + + + + diff --git a/src/components/company/CaseStudyForm.vue b/src/components/company/CaseStudyForm.vue index 5a8d9cc..25159e6 100644 --- a/src/components/company/CaseStudyForm.vue +++ b/src/components/company/CaseStudyForm.vue @@ -1,46 +1,22 @@ - - - Nom : - - - - Prénom : - - - - - - Organisation : - - + + + + - - Rôle : - - + + - - - Téléphone : - - - - E-mail * : - - - + + + + - - Votre besoin : - - + - - - + {{ error }} @@ -57,6 +33,8 @@ import { ref } from 'vue'; import VueHcaptcha from '@hcaptcha/vue3-hcaptcha'; import ButtonBlock from '@/components/global/Button.vue'; import { post } from '@/util/fetch'; +import Textfield from "@/components/Shared/Textfield.vue"; +import Fieldset from "@/components/Shared/Fieldset.vue"; /** * Validates an email address to ensure it is not empty and follows a valid email format. @@ -179,60 +157,9 @@ form { display: flex; flex-direction: column; gap: 1rem; - margin-top: 1rem; -} - -.text-label { - color: #355086; - font-size: 18px; - font-weight: 900; - outline: none; -} -.form-field { - display: flex; - flex-direction: column; - gap: 0.5rem; -} - -.form-fieldset { - display: grid; - gap: 1rem; -} - -@media (min-width: 796px) { - form { + @media (min-width: 796px) { width: 768px; } - - .form-fieldset { - grid-template-columns: repeat(2, 1fr); - } -} - -.input { - height: 60px; - background-color: #ffffff; - padding: 1rem; - border-radius: 8px; - border: solid 1px rgba(0, 0, 0, 0.2); - color: #022826; - font-size: 18px; - font-weight: 500; - outline: none; -} - -textarea { - width: 100%; - height: 135px; - background-color: #ffffff; - padding: 1rem; - border-radius: 8px; - border: solid 1px rgba(0, 0, 0, 0.2); - color: #022826; - font-size: 18px; - font-weight: 500; - outline: none; - resize: none; } diff --git a/src/components/contributor/Newsletter.vue b/src/components/contributor/Newsletter.vue index fe51b9d..65962dc 100644 --- a/src/components/contributor/Newsletter.vue +++ b/src/components/contributor/Newsletter.vue @@ -3,9 +3,8 @@ Rejoins ecoCode ! Rejoins-nous et contribue à faire du numérique un domaine plus durable. - - E-mail * : - + + @@ -30,6 +29,7 @@ import { ref } from 'vue'; import VueHcaptcha from '@hcaptcha/vue3-hcaptcha'; import ButtonBlock from '@/components/global/Button.vue'; import { post } from '@/util/fetch'; +import Textfield from "@/components/Shared/Textfield.vue"; const validateEmail = () => { const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; @@ -115,33 +115,10 @@ form { max-width: 779px; } -.form-field { - display: flex; - flex-direction: column; - gap: 0.5rem; - width: 320px; +.text-field { margin: 3rem 1rem 0; + width: 320px; max-width: 100%; - - label { - color: #355086; - font-size: 18px; - font-weight: 900; - outline: none; - text-align: center; - } - - input { - height: 60px; - background-color: #ffffff; - padding: 1rem; - border-radius: 8px; - border: solid 1px rgba(0, 0, 0, 0.2); - color: #022826; - font-size: 18px; - font-weight: 500; - outline: none; - } } .join-us { diff --git a/src/components/home/ContactForm.vue b/src/components/home/ContactForm.vue index 1c8056e..eb9caea 100644 --- a/src/components/home/ContactForm.vue +++ b/src/components/home/ContactForm.vue @@ -15,33 +15,16 @@ - - Je souhaite : - - {{ option }} - - + - - Nom de l’entreprise / Personne : - - + - - - E-mail * : - - - - Téléphone : - - - + + + + - - Des éléments supplémentaires ? - - +