From 44ec85609155ed36bc11fbc93fb2843014487269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 10 Jan 2023 13:45:46 +0800 Subject: [PATCH] Make invitation page prettier when it's empty --- app/components/main_simple_component.html.erb | 2 +- app/views/invitations/index.html.erb | 15 +++++++++++---- .../img/illustrations/undraw_loading_re_5axr.svg | 1 + 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 public/img/illustrations/undraw_loading_re_5axr.svg diff --git a/app/components/main_simple_component.html.erb b/app/components/main_simple_component.html.erb index b72b31d..beacf7b 100644 --- a/app/components/main_simple_component.html.erb +++ b/app/components/main_simple_component.html.erb @@ -1,5 +1,5 @@
-
+
<%= content %>
diff --git a/app/views/invitations/index.html.erb b/app/views/invitations/index.html.erb index a606b1c..5517a47 100644 --- a/app/views/invitations/index.html.erb +++ b/app/views/invitations/index.html.erb @@ -27,10 +27,17 @@ <% end %> <% else %> -

- You do not have any invitations to give away yet. We will notify you, - as soon as you can invite others. -

+
+

+ <%= image_tag("/img/illustrations/undraw_loading_re_5axr.svg", class: 'h-48') %> +

+

+ No invitations available yet +

+

+ We will notify you, as soon as you can invite others. +

+
<% end %> diff --git a/public/img/illustrations/undraw_loading_re_5axr.svg b/public/img/illustrations/undraw_loading_re_5axr.svg new file mode 100644 index 0000000..a5ce075 --- /dev/null +++ b/public/img/illustrations/undraw_loading_re_5axr.svg @@ -0,0 +1 @@ + \ No newline at end of file