From a827001796780a671c0c6dbb937ec77cd86891a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krys=CC=8Ctof=20Korb?= Date: Mon, 9 Oct 2023 16:55:51 +0200 Subject: [PATCH] Add subscribe form to Slovak home --- frontend/src/routes/index/IndexPage.vue | 50 +++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/index/IndexPage.vue b/frontend/src/routes/index/IndexPage.vue index e11a1dc6b..ac0e4ad54 100644 --- a/frontend/src/routes/index/IndexPage.vue +++ b/frontend/src/routes/index/IndexPage.vue @@ -44,7 +44,7 @@ const posting = ref(); const success = ref(); const message = ref(); -const handleSubmit = async () => { +const handleSubscribe = async () => { console.log('handleSubmit'); if (email.value === '') { emailError.value = t('routes.index.IndexPage.empty-email-error'); @@ -199,6 +199,51 @@ const handleSubmit = async () => { +
+ + + Chcete vedieť o nových kalkulačkách? + + + Zanechajte nám váš e-mail a dáme vám vedieť vždy, keď spustíme novú + kalkulačku. + + + {{ message }} + +
+ + + + Odeslat + + +
+ {{ + $t('routes.index.IndexPage.disclaimer') + }} +
+
Ako vzniká kalkulačka? @@ -414,8 +459,7 @@ const handleSubmit = async () => { } .subscribe { - padding-top: 1rem; - padding-bottom: 1rem; + padding-top: 40px; display: grid; align-content: center; justify-content: center;