From 5c74f048a527f8995118bcad131d211fde326113 Mon Sep 17 00:00:00 2001 From: Meghna <11170663+MeghnaAJ@users.noreply.github.com> Date: Sun, 9 Jan 2022 10:21:42 +0530 Subject: [PATCH] UX: updated "accept invite" error page (#15490) --- app/assets/stylesheets/common/base/login.scss | 10 ++++++++++ app/views/invites/show.html.erb | 9 +++++++-- config/locales/server.en.yml | 2 +- public/images/crying-face.svg | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 public/images/crying-face.svg diff --git a/app/assets/stylesheets/common/base/login.scss b/app/assets/stylesheets/common/base/login.scss index e0f7e1ed37d..bb84c7ac7dc 100644 --- a/app/assets/stylesheets/common/base/login.scss +++ b/app/assets/stylesheets/common/base/login.scss @@ -387,3 +387,13 @@ button#new-account-link { color: var(--tertiary); } } + +.invite-error { + box-shadow: 0 1px 10px 1px rgba(var(--primary-low-rgb), 1.25); + border-radius: 10px; + padding: 1em 2.5em 1em 2.5em; + .error-image { + text-align: center; + padding-bottom: 1em; + } +} diff --git a/app/views/invites/show.html.erb b/app/views/invites/show.html.erb index 125a9c775ef..e403e247dba 100644 --- a/app/views/invites/show.html.erb +++ b/app/views/invites/show.html.erb @@ -1,7 +1,12 @@
<%if flash[:error]%> -
- <%=flash[:error].html_safe%> +
+
+ crying-face emoji +
+
+ <%=flash[:error].html_safe%> +
<%end%>
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 4b57bc8a5cd..2d1bdc13b0b 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -246,7 +246,7 @@ en:

Otherwise please Reset Password.

not_found_template_link: | -

The invitation to %{site_name} can no longer be redeemed. Please ask the person who invited you to send you a new invitation.

+

This invitation to %{site_name} can no longer be redeemed. Please ask the person who invited you to send you a new invitation.

user_exists: "There's no need to invite %{email}, they already have an account!" invite_exists: "You already invited %{email}." invalid_email: "%{email} isn't a valid email address." diff --git a/public/images/crying-face.svg b/public/images/crying-face.svg new file mode 100644 index 00000000000..c1482d41093 --- /dev/null +++ b/public/images/crying-face.svg @@ -0,0 +1 @@ +