From f8f1580fc785fcb3667c91289afb09117fa3b996 Mon Sep 17 00:00:00 2001 From: efim Date: Fri, 14 Jul 2023 05:03:18 +0000 Subject: [PATCH] feat(15): making fragments, loading based on step --- 15-multi-step-form/src/main/resources/public/out.css | 4 ++++ .../src/main/resources/templates/index.html | 9 ++++++--- .../src/main/resources/templates/step1.html | 1 + .../src/main/resources/templates/step2.html | 5 +++-- .../src/main/resources/templates/step3.html | 5 +++-- .../src/main/resources/templates/step4.html | 5 +++-- .../src/main/resources/templates/step5.html | 1 + .../src/main/scala/multistepform/Models.scala | 5 ++++- .../src/main/scala/multistepform/Routes.scala | 9 +++++++++ 9 files changed, 34 insertions(+), 10 deletions(-) diff --git a/15-multi-step-form/src/main/resources/public/out.css b/15-multi-step-form/src/main/resources/public/out.css index bc64c84..53795a2 100644 --- a/15-multi-step-form/src/main/resources/public/out.css +++ b/15-multi-step-form/src/main/resources/public/out.css @@ -665,6 +665,10 @@ video { height: 100vh; } +.h-40 { + height: 10rem; +} + .w-11\/12 { width: 91.666667%; } diff --git a/15-multi-step-form/src/main/resources/templates/index.html b/15-multi-step-form/src/main/resources/templates/index.html index e1683c8..417fba0 100644 --- a/15-multi-step-form/src/main/resources/templates/index.html +++ b/15-multi-step-form/src/main/resources/templates/index.html @@ -33,15 +33,18 @@
- -
+
+ loading...
-
Challenge by
-
- +
diff --git a/15-multi-step-form/src/main/resources/templates/step3.html b/15-multi-step-form/src/main/resources/templates/step3.html index af32ad8..57d7482 100644 --- a/15-multi-step-form/src/main/resources/templates/step3.html +++ b/15-multi-step-form/src/main/resources/templates/step3.html @@ -36,9 +36,10 @@
-
Next Step -
+
diff --git a/15-multi-step-form/src/main/resources/templates/step4.html b/15-multi-step-form/src/main/resources/templates/step4.html index e7d3555..81c2874 100644 --- a/15-multi-step-form/src/main/resources/templates/step4.html +++ b/15-multi-step-form/src/main/resources/templates/step4.html @@ -36,9 +36,10 @@
-
Confirm -
+
diff --git a/15-multi-step-form/src/main/resources/templates/step5.html b/15-multi-step-form/src/main/resources/templates/step5.html index 972d20d..f770e57 100644 --- a/15-multi-step-form/src/main/resources/templates/step5.html +++ b/15-multi-step-form/src/main/resources/templates/step5.html @@ -39,6 +39,7 @@
"text/html;charset=UTF-8") + ) } @cask.staticResources("/public")