Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

portico: Style sign up as a button paired with view-without-account.

Alya Abbott36587c4dcb8c
diff --git a/templates/zerver/login.html b/templates/zerver/login.html
index bb3345bea03..7ab15799c41 100644
--- a/templates/zerver/login.html
+++ b/templates/zerver/login.html
@@ -137,8 +137,14 @@ page can be easily identified in it's respective JavaScript file. -->
</div>
{% endfor %}
+ {% endif %}
+
+ {% set show_signup_button = not register_link_disabled and not no_auth_enabled %}
+ {% if realm_web_public_access_enabled or show_signup_button %}
+ {% if not no_auth_enabled %}
+ <div class="or"><span>{{ _('OR') }}</span></div>
+ {% endif %}
<div class="actions signup-link-wrapper">
- <div class="signup-link-text">{{ _("Don't have an account?") }}</div>
{% if realm_web_public_access_enabled %}
<form class="anonymous_access_form form-inline" action="/" method="post">
{{ csrf_input }}
@@ -149,8 +155,14 @@ page can be easily identified in it's respective JavaScript file. -->
</button>
</form>
{% endif %}
- {% if not register_link_disabled %}
- <a class="register-link" href="/register/{% if next %}?next={{ next|urlencode }}{% endif %}">{{ _('Or sign up') }}</a>
+ {% if show_signup_button %}
+ <form class="signup-form form-inline" action="/register/" method="get">
+ {% if next %}<input type="hidden" name="next" value="{{ next }}" />{% endif %}
+ <button class="full-width anonymous-access-button">
+ <i class="zulip-icon zulip-icon-user-plus" aria-hidden="true"></i>
+ {{ _('Sign up') }}
+ </button>
+ </form>
{% endif %}
</div>
{% endif %}
diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css
index a2b6af63d7c..a4a4c68c92d 100644
--- a/web/styles/portico/portico_signin.css
+++ b/web/styles/portico/portico_signin.css
@@ -964,18 +964,13 @@ button#register_auth_button_gitlab {
}
&.signup-link-wrapper {
- font-weight: normal;
display: flex;
flex-direction: column;
- align-items: center;
gap: 12px;
- text-align: center;
-
- .register-link {
- font-size: 1rem;
- }
+ margin: 0;
- .anonymous_access_form {
+ .anonymous_access_form,
+ .signup-form {
width: 100%;
& button {