diff --git a/src/App.css b/src/App.css index c0e4757..9cb935f 100644 --- a/src/App.css +++ b/src/App.css @@ -3,7 +3,7 @@ --black: #282828; --pureblack: #000000; --font-color: #272727; - --grey: #A3A3A3; + --grey: #706F6F; --link-color: #1f9bde; --linkhover: #00d9ff; --navlink: #4b4b4b; diff --git a/src/components/form/GenericForm.css b/src/components/form/GenericForm.css index 90960d4..5fe0ca3 100644 --- a/src/components/form/GenericForm.css +++ b/src/components/form/GenericForm.css @@ -51,9 +51,17 @@ h1 { margin-top: 100px; } +.headline { + margin-bottom: 20px; +} + +.description { + font-size: 0.85rem; + color: var(--grey); +} + label { display: block; - margin-bottom: 20px; } input[type="text"], @@ -66,15 +74,13 @@ textarea { border: 1px solid #ccc; } -button, -input[type="submit"] { - padding: 10px 20px; - font-size: 1em; +input[type="date"] { + width: 150px; + padding: 5px 5px 5px 5px; + font-size: 16px; + border: 1px solid #CCC; + height: 34px; border-radius: 5px; - border: none; - color: #fff; - background-color: #007BFF; - cursor: pointer; } button[disabled], @@ -83,35 +89,34 @@ input[type="submit"][disabled] { } .button-outer { - display: inline-block; - font-family: 'minecraft-text', sans-serif; - font-size: 0.8em; - padding: 15px 35px; - background: var(--link-color); - color: #ffffff; - letter-spacing: 1px; - border: none; - border-radius: 5px; - height: auto; - transition: all 100ms cubic-bezier(0.55, 0.085, 0.68, 0.53), 0.5s background ease; - cursor: pointer; - text-shadow: 1px 1px 0px black; + display: inline-block; + font-family: 'minecraft-text', sans-serif; + font-size: 0.8em; + padding: 15px 35px; + background: var(--link-color); + color: #ffffff; + letter-spacing: 1px; + border: none; + border-radius: 5px; + height: auto; + transition: all 100ms cubic-bezier(0.55, 0.085, 0.68, 0.53), 0.5s background ease; + cursor: pointer; + text-shadow: 1px 1px 0px black; margin: 10px; } .button-outer:hover { - color: var(--pureblack); - text-shadow: 1px 1px 0px white; - box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5); - transform: scale(1.1); + color: var(--pureblack); + text-shadow: 1px 1px 0px white; + box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5); + transform: scale(1.1); } .button-outer:focus, .button-outer:active { - color: var(--white); - background: #8b8a8f; + color: var(--white); + background: #8b8a8f; } - select { width: 150px; padding: 5px 35px 5px 5px; @@ -123,4 +128,10 @@ select { appearance: none; background: url(../../../public/img/down-arrow.svg) 96% / 15% no-repeat #EEE; border-radius: 5px; - } \ No newline at end of file + } + +.error-message { + color: var(--error); + margin: 5px 0 15px 0; + font-size: 0.8rem; +} \ No newline at end of file diff --git a/src/components/form/data/apply.tsx b/src/components/form/data/apply.tsx index 7c06076..3da2b7b 100644 --- a/src/components/form/data/apply.tsx +++ b/src/components/form/data/apply.tsx @@ -53,10 +53,11 @@ export const apply: FormData = { type: "text", min_length: 0, max_length: 16, - required: false, + required: true, + drop_down: ["They/them", "She/her", "He/him", ""], }, { - label: "When did you join Altitude", + label: "When did you join Altitude?", name: "join_date", type: "date", min_length: 4, @@ -159,6 +160,7 @@ export const apply: FormData = { .required('An answer is required'), age: Yup.number() + .typeError('Input must be a number') .min(0, 'Please enter a valid age') .max(999, 'We do not accept players older than 999 years old sorry!') .required('You are required to fill out your age'), diff --git a/src/components/form/data/contact.tsx b/src/components/form/data/contact.tsx index a040bf1..aa93f61 100644 --- a/src/components/form/data/contact.tsx +++ b/src/components/form/data/contact.tsx @@ -4,7 +4,7 @@ import * as Yup from "yup"; export const contact: FormData = { steps: [ { - label: "Username", + label: "What is your Minecraft username?", name: "username", type: "text", min_length: 3, @@ -12,7 +12,7 @@ export const contact: FormData = { required: true, }, { - label: "Email", + label: "What is your email?", name: "email", type: "email", min_length: 3, @@ -20,7 +20,7 @@ export const contact: FormData = { required: true, }, { - label: "Question", + label: "What is your question?", name: "question", type: "textarea", min_length: 10, diff --git a/src/components/form/genericForm.tsx b/src/components/form/genericForm.tsx index 4db088d..98d1530 100644 --- a/src/components/form/genericForm.tsx +++ b/src/components/form/genericForm.tsx @@ -85,10 +85,10 @@ const GenericForm = (formData: FormData) => {