From 03dae173483da6625db46e95f6008230f5114bf6 Mon Sep 17 00:00:00 2001 From: timurgordon Date: Wed, 26 Oct 2022 12:46:13 +0300 Subject: [PATCH] add registrations endpoint and mobile view fix --- index.html | 111 +++++++++++++++++++++------------------- templates/emailreq.html | 2 +- templates/exists.html | 2 +- templates/invalid.html | 2 +- templates/register.html | 3 ++ ticket.v | 19 ++++++- 6 files changed, 81 insertions(+), 58 deletions(-) diff --git a/index.html b/index.html index f3ede40..d3df13e 100644 --- a/index.html +++ b/index.html @@ -18,62 +18,65 @@
26 October 2022 @@6PM
-

- Join us at Mbweni Ruins, Jungle Paradise Resort to celebrate - with music, artists & food - our collective effort to pave the way towards a regenerative, inclusive and empowering digital future in Africa. Shuttles available from conference center. -

-
-
-
-
- - +
+

+ Join us at Mbweni Ruins, Jungle Paradise Resort to celebrate - with music, artists & food - our collective effort to pave the way towards a regenerative, inclusive and empowering digital future in Africa. Shuttles available from conference center. +

+
+ +
+
+
+ + +
+
+ +
+
+ + http:// + +
+ +
-
- -
-
- - http:// - +
+
+
+ + +
+
+
+ +
+
- -
-
-
-
-
- - -
-
-
- -
- -
-
-
- -
- -
- -

- We care about the protection of your data. Read our - Privacy Policy. -

+
+
+ +
+ +
+ +

+ We won't share your data. Read our + Privacy Policy. +

+
diff --git a/templates/emailreq.html b/templates/emailreq.html index 8f4cec7..b757f97 100644 --- a/templates/emailreq.html +++ b/templates/emailreq.html @@ -7,7 +7,7 @@
- +
diff --git a/templates/exists.html b/templates/exists.html index daa4f43..6f9fb5c 100644 --- a/templates/exists.html +++ b/templates/exists.html @@ -7,7 +7,7 @@
- +
diff --git a/templates/invalid.html b/templates/invalid.html index 00922dc..9629d1f 100644 --- a/templates/invalid.html +++ b/templates/invalid.html @@ -7,7 +7,7 @@
- +
diff --git a/templates/register.html b/templates/register.html index dcc6244..6248b91 100644 --- a/templates/register.html +++ b/templates/register.html @@ -1,4 +1,7 @@ +

+ Join us at Mbweni Ruins, Jungle Paradise Resort to celebrate - with music, artists & food - our collective effort to pave the way towards a regenerative, inclusive and empowering digital future in Africa. Shuttles available from conference center. +

Successfully registered to event!
diff --git a/ticket.v b/ticket.v index 0114aa8..0d49ba5 100644 --- a/ticket.v +++ b/ticket.v @@ -57,7 +57,7 @@ pub fn (mut app App) register(name string, email string, org_website string, plu if files.len > 1000 { return app.full() } - if email.len < 5 && !email.contains('@') && !email.contains('.') { + if email.len < 5 || !email.contains('@') || !email.contains('.') { return app.emailreq() } if email.len > 100 || name.len > 100 || org_website.len > 200 || email.contains('