From 4cd2ed9a8ad272eb398b886d042d2a66b38fa9f4 Mon Sep 17 00:00:00 2001 From: haraldnilsen Date: Tue, 12 Dec 2023 20:36:17 +0100 Subject: [PATCH] :sparkles: added new form page Co-authored-by: Sindre Kjelsrud --- frontend/public/error.svg | 7 ++++++ frontend/src/components/svg/Error.svelte | 13 ++++++++++ .../userform/inputs/RadioButtons.svelte | 6 ++--- frontend/tailwind.config.js | 25 ++++++++++--------- 4 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 frontend/public/error.svg create mode 100644 frontend/src/components/svg/Error.svelte diff --git a/frontend/public/error.svg b/frontend/public/error.svg new file mode 100644 index 0000000..7878e40 --- /dev/null +++ b/frontend/public/error.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/frontend/src/components/svg/Error.svelte b/frontend/src/components/svg/Error.svelte new file mode 100644 index 0000000..7b87ff1 --- /dev/null +++ b/frontend/src/components/svg/Error.svelte @@ -0,0 +1,13 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/components/userform/inputs/RadioButtons.svelte b/frontend/src/components/userform/inputs/RadioButtons.svelte index c97b4e7..4863d9c 100644 --- a/frontend/src/components/userform/inputs/RadioButtons.svelte +++ b/frontend/src/components/userform/inputs/RadioButtons.svelte @@ -2,10 +2,10 @@ export let options:string[] -
+
{#each options as data, index (data)} -
- +
+
{/each} diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 6c1a036..58469ad 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,15 +1,16 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ["./src/**/*.{html,js,svelte,ts}"], - theme: { - extend: { - colors: { - primary: "#08667C", - secondary: "#CED9DD", - content: "#121212", - bg: "#EEF0F3", - }, - }, - }, - plugins: [], + content: ["./src/**/*.{html,js,svelte,ts}"], + theme: { + extend: { + colors: { + primary: "#08667C", + secondary: "#CED9DD", + content: "#121212", + bg: "#EEF0F3", + error: "#964747", + }, + }, + }, + plugins: [], };