From 8c27e36c84edde14cb19bd090fcbf7ad9203e2f9 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 8 Sep 2024 23:04:52 -0500 Subject: [PATCH] Website: Update login page layout. (#21735) Changes: - Updated the layout of the login page to match the /signup page. --- .../assets/styles/pages/entrance/login.less | 158 ++++++++++++++---- website/views/pages/entrance/login.ejs | 125 ++++++++++---- 2 files changed, 225 insertions(+), 58 deletions(-) diff --git a/website/assets/styles/pages/entrance/login.less b/website/assets/styles/pages/entrance/login.less index 42cadfb9be..46ffa53c30 100644 --- a/website/assets/styles/pages/entrance/login.less +++ b/website/assets/styles/pages/entrance/login.less @@ -1,45 +1,74 @@ #login { - - padding-top: 80px; - h1 { - font-size: 28px; - line-height: 38px; + font-size: 32px; + line-height: 120%; } a { + line-height: 150%; color: @core-fleet-black-75; text-decoration: underline; text-underline-offset: 2px; + } + p { line-height: 150%; } - [purpose='customer-login-container'] { - max-width: 560px; - } - [purpose='login-container'] { - max-width: 560px; - [purpose='customer-portal-form'] { - max-width: 560px; - } + [purpose='page-container'] { + padding: 64px 128px 64px 128px; + max-width: 1200px; } + [purpose='page-heading'] { - padding-left: 30px; - padding-right: 30px; - text-align: center; - margin-bottom: 40px; + text-align: left; + margin-bottom: 48px; } - [purpose='register-link'] { - margin-bottom: 8px; - a { - float: right; + + [purpose='quote-and-logos'] { + max-width: 310px; + } + [purpose='quote'] { + margin-top: 8px; + } + [purpose='quote-text'] { + font-size: 14px; + line-height: 150%; + font-style: italic; + } + [purpose='quote-author-info'] { + display: inline-flex; + padding: 4px 16px 4px 4px; + border-radius: 28px; + width: fit-content; + margin-top: 8px; + margin-bottom: 48px; + [purpose='job-title'] { color: @core-fleet-black-75; - text-decoration: underline; - font-size: 14px; + font-size: 12px; + font-weight: 400; + line-height: 18px; + margin-bottom: 0px; } + [purpose='name'] { + font-size: 12px; + font-weight: 700; + line-height: 18px; + margin-bottom: 0px; + } + [purpose='profile-picture'] { + margin-right: 16px; + img { + height: 32px; + width: 32px; + } + } + } + [purpose='logos'] { + max-width: 310px; + } + [purpose='login-form'] { + width: 528px; } [purpose='customer-portal-form'] { - max-width: 560px; border-radius: 16px; - margin-bottom: 40px; padding: 20px 32px 32px 32px; label { color: @core-fleet-black; @@ -50,8 +79,36 @@ height: 40px; border-radius: 6px; } - .card-body { - padding: 2em; + .selectbox { + + position: relative; + } + .selectbox::after { + content: url('/images/chevron-12x8@2x.png'); + right: 14px; + transform: scale(0.5); + top: 14px; + position: absolute; + pointer-events: none; + } + .selectbox select { + border-radius: 6px; + height: 48px; + appearance: none; + -webkit-appearance: none; + } + .small { + font-size: 12px; + } + } + + [purpose='register-link'] { + margin-bottom: 4px; + a { + float: right; + color: @core-fleet-black-75; + text-decoration: underline; + font-size: 14px; } } @@ -74,23 +131,64 @@ font-weight: 700; } } + @media (max-width: 1200px) { + [purpose='page-container'] { + padding: 64px; + } + } + @media (max-width: 991px) { + [purpose='signup-form'] { + max-width: 528px; + } + [purpose='quote-and-logos'] { + max-width: 528px; + margin-top: 48px; + } + [purpose='logos'] { + max-width: 528px; + } + [purpose='page-heading'] { + text-align: center; + margin-left: auto; + margin-right: auto; + margin-bottom: 48px; + max-width: 528px; + } + [purpose='page-container'] { + padding: 64px 32px; + } + + } @media (max-width: 768px) { - padding-top: 60px; [purpose='customer-portal-form'] { max-width: unset; } + [purpose='signup-form'] { + width: 100%; + } + [purpose='quote-and-logos'] { + width: 100%; + } + [purpose='logos'] { + width: 100%; + } } @media (max-width: 576px) { - padding-top: 40px; [purpose='page-heading'] { padding-left: 0px; padding-right: 0px; } + [purpose='page-container'] { + padding: 48px 24px; + } + [purpose='login-link'] { + margin-bottom: 12px; + } [purpose='customer-portal-form'] { .card-body { - padding: 1em; + padding: 1.5em 1em; } } } diff --git a/website/views/pages/entrance/login.ejs b/website/views/pages/entrance/login.ejs index 7ed6d7b471..4d55f0a281 100644 --- a/website/views/pages/entrance/login.ejs +++ b/website/views/pages/entrance/login.ejs @@ -1,38 +1,107 @@
-
-
+
+

Welcome to Fleet

We just need a few details in order to get started.

-
-

Welcome to Fleet

-

Sign in to your Fleet account.

-
-
-
- Create an account +
+
+
+ + + Forgot your password? +
-
<%- /* Expose locals as `window.SAILS_LOCALS` :: */ exposeLocalsToBrowser() %>