From 7f5b8c22b7ce064a3caeb18912d940e8cf47ef9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 10 Jan 2023 13:56:17 +0800 Subject: [PATCH] Make empty donations page prettier --- .../contributions/donations/index.html.erb | 26 ++++++++++++------- .../illustrations/undraw_savings_re_eq4w.svg | 1 + 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 public/img/illustrations/undraw_savings_re_eq4w.svg diff --git a/app/views/contributions/donations/index.html.erb b/app/views/contributions/donations/index.html.erb index 6217149..e885055 100644 --- a/app/views/contributions/donations/index.html.erb +++ b/app/views/contributions/donations/index.html.erb @@ -2,11 +2,11 @@ <%= render MainWithTabnavComponent.new(tabnav_partial: "shared/tabnav_contributions") do %>
-

- Your financial contributions to the development and upkeep of Kosmos - software and services. -

<% if @donations.any? %> +

+ Your financial contributions to the development and upkeep of Kosmos + software and services. +

<% else %> -

- The donation process is not automated yet. Please - contact us - if you'd like to contribute this way right now. -

+
+

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

+

+ No donations yet +

+

+ The donation process is not automated yet.
Please + contact us + if you'd like to contribute this way right now. +

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