From b75dbfdc80d7ea48441fdb76de752d9ee89bf1d7 Mon Sep 17 00:00:00 2001 From: Nick Kosarev Date: Fri, 5 Jul 2024 10:44:33 +0000 Subject: [PATCH] chore: some logic on form --- .../(website)/character/new/+page.svelte | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/src/routes/[lang]/(website)/character/new/+page.svelte b/src/routes/[lang]/(website)/character/new/+page.svelte index e85cf051..1c4b873f 100644 --- a/src/routes/[lang]/(website)/character/new/+page.svelte +++ b/src/routes/[lang]/(website)/character/new/+page.svelte @@ -1,16 +1,34 @@ -

Создание нового персонажа

-

Не торопись. Заполни все поля и нажми "Создать".

+

Не торопись. Заполни все поля и ознакомься с правилами.

- +
@@ -22,12 +40,12 @@
- +
-
@@ -120,7 +138,7 @@ width: 100%; padding: 0.75em 1em; border: 2px solid var(--bronze-7); - background-color: var(--green-9); + background-color: var(--gray-9); color: var(--bronze-3); font-family: inherit; font-size: 1.2rem; @@ -141,6 +159,14 @@ font-size: 0.9rem; text-transform: none; } + + &[data-ready=true] { + background-color: var(--green-9); + } + + &:disabled { + cursor: not-allowed; + } } .terms {