WEB-563 feat(login): modernize login UI with Material Design 3 and production mode (#3061)
improve improve improve
This commit is contained in:
@@ -80,13 +80,6 @@
|
||||
<mat-spinner [diameter]="20" class="button-spinner"></mat-spinner>
|
||||
}
|
||||
</mifosx-m3-button>
|
||||
|
||||
<!-- Forgot Password Link -->
|
||||
<div class="login-actions">
|
||||
<a href="#" class="forgot-password-link">
|
||||
{{ 'labels.links.Forgot Password?' | translate }}
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#login-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
gap: 0.5rem;
|
||||
animation: slide-in 0.4s ease-out;
|
||||
flex: 1;
|
||||
}
|
||||
@@ -71,7 +71,7 @@
|
||||
}
|
||||
|
||||
.mat-mdc-form-field-icon-prefix {
|
||||
padding-right: 0.75rem;
|
||||
padding: 0 0.75rem 0 0.5rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
|
||||
fa-icon {
|
||||
@@ -122,7 +122,8 @@
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
padding: 0.875rem 0.75rem;
|
||||
padding: 0.875rem 0;
|
||||
margin-left: 0;
|
||||
|
||||
&::placeholder {
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
@@ -134,11 +135,12 @@
|
||||
.mat-mdc-floating-label {
|
||||
font-size: 1rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
// Prefix icon
|
||||
.mat-mdc-form-field-icon-prefix {
|
||||
padding-right: 0.75rem;
|
||||
padding: 0 0.75rem 0 0.5rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
|
||||
fa-icon {
|
||||
@@ -147,6 +149,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Form field infix - align label with input
|
||||
.mat-mdc-form-field-infix {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
// Suffix button (password toggle)
|
||||
.mat-mdc-form-field-icon-suffix {
|
||||
button {
|
||||
@@ -216,33 +223,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Login Actions =====
|
||||
.login-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.forgot-password-link {
|
||||
font-size: 0.875rem;
|
||||
color: var(--md-sys-color-primary, #1074b9);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 20px;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #1074b914;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 2px solid var(--md-sys-color-primary, #1074b9);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== OIDC Login =====
|
||||
.oidc-login-container {
|
||||
width: 100%;
|
||||
@@ -370,14 +350,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.forgot-password-link {
|
||||
color: var(--md-sys-color-primary, #5ba2ec);
|
||||
|
||||
&:hover {
|
||||
background: #5ba2ec1f;
|
||||
}
|
||||
}
|
||||
|
||||
.oidc-description {
|
||||
color: var(--md-sys-color-on-surface-variant, #c4c6d0);
|
||||
}
|
||||
@@ -444,7 +416,7 @@
|
||||
}
|
||||
|
||||
.mat-mdc-form-field-icon-prefix {
|
||||
padding-right: 0.5rem;
|
||||
padding: 0 0.5rem 0 0.35rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -454,15 +426,6 @@
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
|
||||
.login-actions {
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
|
||||
.forgot-password-link {
|
||||
font-size: 0.8125rem;
|
||||
padding: 0.35rem 0.65rem;
|
||||
}
|
||||
|
||||
.oidc-actions {
|
||||
flex-direction: column;
|
||||
|
||||
|
||||
@@ -8,41 +8,55 @@
|
||||
<!-- Modern Material Design 3 Login Layout -->
|
||||
<div class="login-wrapper">
|
||||
<!-- Left Panel - Hero Section (Hidden on mobile) -->
|
||||
<div class="hero-panel hide-lt-md">
|
||||
<div class="hero-panel hide-lt-md" [class.production-mode]="productionMode">
|
||||
<div class="hero-overlay"></div>
|
||||
<div class="hero-content">
|
||||
<div class="hero-text">
|
||||
<h1 class="hero-title">{{ 'APP_NAME' | translate }}</h1>
|
||||
<p class="hero-subtitle">
|
||||
{{ 'labels.text.A' | translate }}
|
||||
<span class="hero-highlight">{{ 'labels.text.global community' | translate }}</span>
|
||||
{{ 'labels.text.elimination of poverty' | translate }}
|
||||
</p>
|
||||
<div class="hero-features">
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="shield-alt" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Secure & Reliable' | translate }}</span>
|
||||
<!-- Default Mode: Full content -->
|
||||
@if (!productionMode) {
|
||||
<div class="hero-text">
|
||||
<h1 class="hero-title">{{ 'APP_NAME' | translate }}</h1>
|
||||
<p class="hero-subtitle">
|
||||
{{ 'labels.text.A' | translate }}
|
||||
<span class="hero-highlight">{{ 'labels.text.global community' | translate }}</span>
|
||||
{{ 'labels.text.elimination of poverty' | translate }}
|
||||
</p>
|
||||
<div class="hero-features">
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="shield-alt" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Secure & Reliable' | translate }}</span>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="users" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Community Driven' | translate }}</span>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="globe" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Global Impact' | translate }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="users" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Community Driven' | translate }}</span>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<fa-icon icon="globe" class="feature-icon"></fa-icon>
|
||||
<span class="feature-text">{{ 'labels.heading.Global Impact' | translate }}</span>
|
||||
<div class="hero-links">
|
||||
<a [href]="'mifosHome' | documentationLink" target="_blank" rel="noopener noreferrer" class="hero-link">
|
||||
{{ 'labels.text.Mifos Initiative' | translate }}
|
||||
<fa-icon icon="external-link-alt" size="sm"></fa-icon>
|
||||
</a>
|
||||
<a
|
||||
[href]="'mifosVolunteer' | documentationLink"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="hero-link"
|
||||
>
|
||||
{{ 'labels.text.Get involved' | translate }}
|
||||
<fa-icon icon="external-link-alt" size="sm"></fa-icon>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-links">
|
||||
<a [href]="'mifosHome' | documentationLink" target="_blank" rel="noopener noreferrer" class="hero-link">
|
||||
{{ 'labels.text.Mifos Initiative' | translate }}
|
||||
<fa-icon icon="external-link-alt" size="sm"></fa-icon>
|
||||
</a>
|
||||
<a [href]="'mifosVolunteer' | documentationLink" target="_blank" rel="noopener noreferrer" class="hero-link">
|
||||
{{ 'labels.text.Get involved' | translate }}
|
||||
<fa-icon icon="external-link-alt" size="sm"></fa-icon>
|
||||
</a>
|
||||
}
|
||||
<!-- Production Mode: Minimal branding at bottom -->
|
||||
@if (productionMode) {
|
||||
<div class="hero-branding-bottom">
|
||||
<h1 class="hero-title-minimal">{{ 'APP_NAME' | translate }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -69,7 +83,6 @@
|
||||
} @else {
|
||||
<img src="assets/images/white-mifos.png" alt="{{ 'APP_NAME' | translate }} Logo" class="logo-image" />
|
||||
}
|
||||
<h2 class="welcome-text">{{ 'labels.heading.Welcome to Mifos' | translate }}</h2>
|
||||
</div>
|
||||
|
||||
<!-- Form Section -->
|
||||
@@ -95,61 +108,64 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<!-- Version Info Table -->
|
||||
<!-- Version Info Section -->
|
||||
<div class="login-version-info" *ngIf="displayBackendInfo">
|
||||
<table class="login-version-table">
|
||||
<tr>
|
||||
<td class="version-label">{{ 'labels.version.Tenant' | translate }}</td>
|
||||
<td class="version-value">{{ versions?.tenant || 'Default' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="version-label">{{ 'labels.version.Mifos WebApp' | translate }}</td>
|
||||
<td class="version-value">{{ versions?.mifos }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="version-label">{{ 'labels.version.Apache Fineract' | translate }}</td>
|
||||
<td class="version-value">{{ versions?.fineract?.version }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="version-label">{{ 'labels.version.Server' | translate }}</td>
|
||||
<td class="version-value">{{ server }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="version-info-container">
|
||||
<div class="version-item">
|
||||
<span class="version-label">{{ 'labels.version.Tenant' | translate }}</span>
|
||||
<span class="version-value">{{ tenantDisplayName }}</span>
|
||||
</div>
|
||||
<div class="version-item">
|
||||
<span class="version-label">{{ 'labels.version.Mifos WebApp' | translate }}</span>
|
||||
<span class="version-value">{{ versions?.mifos }}</span>
|
||||
</div>
|
||||
<div class="version-item">
|
||||
<span class="version-label">{{ 'labels.version.Apache Fineract' | translate }}</span>
|
||||
<span class="version-value">{{ versions?.fineract?.version }}</span>
|
||||
</div>
|
||||
<div class="version-item">
|
||||
<span class="version-label">{{ 'labels.version.Server' | translate }}</span>
|
||||
<span class="version-value">{{ server }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Resources Links -->
|
||||
<div class="resources-section">
|
||||
<div class="resources-divider">
|
||||
<span class="divider-text">{{ 'labels.links.Resources' | translate }}</span>
|
||||
<!-- Resources Links (hidden in production mode) -->
|
||||
@if (!productionMode) {
|
||||
<div class="resources-section">
|
||||
<div class="resources-branding">
|
||||
<span class="branding-text"
|
||||
>{{ 'labels.text.Powered by' | translate }}
|
||||
<a href="https://mifos.org" target="_blank" rel="noopener noreferrer">{{
|
||||
'labels.text.Mifos Initiative' | translate
|
||||
}}</a></span
|
||||
>
|
||||
</div>
|
||||
<div class="resources-links">
|
||||
<button mat-button [matMenuTriggerFor]="resourcesMenu" class="resource-button">
|
||||
<fa-icon icon="book" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Resources' | translate }}
|
||||
</button>
|
||||
<button mat-button [matMenuTriggerFor]="communityMenu" class="resource-button">
|
||||
<fa-icon icon="users" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Community' | translate }}
|
||||
</button>
|
||||
<button mat-button [matMenuTriggerFor]="contributeMenu" class="resource-button">
|
||||
<fa-icon icon="heart" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Contribute' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="resources-links">
|
||||
<button mat-button [matMenuTriggerFor]="resourcesMenu" class="resource-button">
|
||||
<fa-icon icon="book" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Resources' | translate }}
|
||||
</button>
|
||||
<button mat-button [matMenuTriggerFor]="communityMenu" class="resource-button">
|
||||
<fa-icon icon="users" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Community' | translate }}
|
||||
</button>
|
||||
<button mat-button [matMenuTriggerFor]="contributeMenu" class="resource-button">
|
||||
<fa-icon icon="heart" size="sm"></fa-icon>
|
||||
{{ 'labels.links.Contribute' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="login-footer">
|
||||
<div class="layout-column copy-label">
|
||||
<p class="footer-content align-center">
|
||||
{{ 'APP_NAME' | translate }} {{ 'labels.text.by' | translate }} Mifos
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="reloadSettings()"
|
||||
class="reload-button"
|
||||
title="Reload Settings"
|
||||
matTooltip="Reload Settings"
|
||||
attr.aria-label="Reload Settings"
|
||||
>
|
||||
|
||||
+227
-142
@@ -5,45 +5,143 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
// Version Info Table
|
||||
.login-version-table {
|
||||
|
||||
// ===== Version Info Section - Modern Card Style =====
|
||||
.login-version-info {
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
margin: 0 5px;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
background: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login-version-table td {
|
||||
padding: 0.4rem 0.7rem;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
.version-info-container {
|
||||
width: 100%;
|
||||
background: var(--md-sys-color-surface-container, #f3f3f6);
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--md-sys-color-outline-variant, #c4c6d0);
|
||||
}
|
||||
|
||||
.version-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.4rem 0;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant, #e0e0e0);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.version-label {
|
||||
font-weight: 500;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
width: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.version-value {
|
||||
font-weight: 400;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
width: 50%;
|
||||
word-break: break-all;
|
||||
text-align: right;
|
||||
word-break: break-word;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
// Responsive
|
||||
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
|
||||
@media (max-width: 768px) {
|
||||
.login-version-table {
|
||||
font-size: 0.85rem;
|
||||
max-width: 100%;
|
||||
// ===== Resources Branding =====
|
||||
.resources-branding {
|
||||
text-align: center;
|
||||
margin-bottom: 0.75rem;
|
||||
|
||||
.branding-text {
|
||||
font-size: 0.8rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
font-weight: 400;
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary, #1074b9);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Dark Mode Support =====
|
||||
:host-context(.dark-theme),
|
||||
:host-context([data-theme='dark']) {
|
||||
.version-info-container {
|
||||
background: var(--md-sys-color-surface-container-low, #2a2a2a);
|
||||
border-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.login-version-table td {
|
||||
padding: 0.3rem 0.4rem;
|
||||
.version-item {
|
||||
border-bottom-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.version-label {
|
||||
color: var(--md-sys-color-on-surface-variant, #c4c6cf);
|
||||
}
|
||||
|
||||
.version-value {
|
||||
color: var(--md-sys-color-on-surface, #e2e2e5);
|
||||
}
|
||||
|
||||
.resources-branding {
|
||||
.branding-text {
|
||||
color: var(--md-sys-color-on-surface-variant, #c4c6cf);
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary, #a8c8ff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.resource-button {
|
||||
color: var(--md-sys-color-primary, #a8c8ff);
|
||||
|
||||
&:hover {
|
||||
background: rgb(168 200 255 / 12%);
|
||||
}
|
||||
}
|
||||
|
||||
.login-card {
|
||||
border: 1px solid var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.login-header {
|
||||
::ng-deep mifosx-theme-toggle button,
|
||||
::ng-deep mifosx-server-selector,
|
||||
::ng-deep mifosx-language-selector {
|
||||
color: var(--md-sys-color-on-surface, #e2e2e5);
|
||||
}
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
border-bottom-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive for version info
|
||||
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
|
||||
@media (max-width: 768px) {
|
||||
.version-info-container {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
.version-item {
|
||||
padding: 0.35rem 0;
|
||||
}
|
||||
|
||||
.version-label,
|
||||
.version-value {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +156,7 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: var(--md-sys-color-background, #fafafa);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
// ===== Hero Panel (Left Side) =====
|
||||
@@ -68,7 +167,7 @@
|
||||
background-size: cover;
|
||||
overflow: hidden;
|
||||
|
||||
// Dark overlay for better text contrast
|
||||
// Overlay removed for clean image view
|
||||
.hero-overlay {
|
||||
position: absolute;
|
||||
/* stylelint-disable declaration-block-no-redundant-longhand-properties -- Safari compatibility */
|
||||
@@ -77,7 +176,7 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
|
||||
background: linear-gradient(135deg, #1074b99e 0%, #004989a6 100%);
|
||||
background: transparent;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -93,10 +192,16 @@
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
max-width: 600px;
|
||||
max-width: 550px;
|
||||
color: #fff;
|
||||
animation: fade-in-up 0.8s ease-out;
|
||||
flex: 0 1 auto;
|
||||
// Minimal backdrop - more image visibility
|
||||
background: rgb(0 0 0 / 35%);
|
||||
border-radius: 20px;
|
||||
padding: 2rem;
|
||||
border: 1px solid rgb(255 255 255 / 15%);
|
||||
box-shadow: 0 4px 24px rgb(0 0 0 / 20%);
|
||||
}
|
||||
|
||||
// Footer in hero panel
|
||||
@@ -142,65 +247,66 @@
|
||||
margin: 0 0 1.5rem;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.02em;
|
||||
background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
0 2px 4px rgb(0 0 0 / 30%),
|
||||
0 4px 12px rgb(0 0 0 / 15%);
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6;
|
||||
margin: 0 0 3rem;
|
||||
opacity: 0.95;
|
||||
margin: 0 0 2rem;
|
||||
font-weight: 400;
|
||||
color: rgb(255 255 255 / 95%);
|
||||
text-shadow: 0 1px 3px rgb(0 0 0 / 40%);
|
||||
}
|
||||
|
||||
.hero-highlight {
|
||||
font-weight: 600;
|
||||
color: #b4d575;
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
|
||||
}
|
||||
|
||||
.hero-features {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
background: #ffffff1a;
|
||||
border-radius: 12px;
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0;
|
||||
background: transparent;
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #ffffff26;
|
||||
transform: translateX(8px);
|
||||
transform: translateX(4px);
|
||||
}
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.25rem;
|
||||
color: #b4d575;
|
||||
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 30%));
|
||||
}
|
||||
|
||||
.feature-text {
|
||||
font-size: 1rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
color: rgb(255 255 255 / 95%);
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
|
||||
}
|
||||
|
||||
.hero-links {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.hero-link {
|
||||
@@ -211,20 +317,54 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: 2px solid #ffffff4d;
|
||||
border: 1px solid rgb(255 255 255 / 30%);
|
||||
border-radius: 24px;
|
||||
background: rgb(255 255 255 / 10%);
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
backdrop-filter: blur(4px);
|
||||
transition: all 0.3s ease;
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
|
||||
|
||||
&:hover {
|
||||
background: #ffffff1a;
|
||||
border-color: #fff;
|
||||
background: rgb(255 255 255 / 20%);
|
||||
border-color: rgb(255 255 255 / 50%);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 16px rgb(0 0 0 / 15%);
|
||||
}
|
||||
|
||||
fa-icon {
|
||||
opacity: 0.7;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Production Mode Styles =====
|
||||
&.production-mode {
|
||||
.hero-content {
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hero-branding-bottom {
|
||||
animation: fade-in-up 0.8s ease-out;
|
||||
}
|
||||
|
||||
.hero-title-minimal {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
0 2px 8px rgb(0 0 0 / 40%),
|
||||
0 4px 16px rgb(0 0 0 / 20%);
|
||||
letter-spacing: -0.01em;
|
||||
margin: 0;
|
||||
padding: 1.5rem 2rem;
|
||||
background: rgb(0 0 0 / 30%);
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgb(255 255 255 / 15%);
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Login Panel (Right Side) =====
|
||||
@@ -234,19 +374,21 @@
|
||||
flex-direction: column;
|
||||
background: var(--md-sys-color-surface, #fff);
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available; // Safari fix: use available height
|
||||
overflow-y: auto;
|
||||
min-height: 100vh;
|
||||
overflow: hidden auto;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: transparent;
|
||||
flex-shrink: 0; // Safari fix: prevent header from growing
|
||||
max-height: 76px; // Safari fix: constrain header height
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
.header-control {
|
||||
opacity: 0.8;
|
||||
@@ -282,7 +424,8 @@
|
||||
|
||||
// Language Selector Outlined Styles
|
||||
::ng-deep mifosx-language-selector {
|
||||
width: 20%;
|
||||
min-width: 80px;
|
||||
max-width: 100px;
|
||||
flex-shrink: 0; // Safari fix
|
||||
|
||||
#language-selector.outlined-variant {
|
||||
@@ -318,8 +461,9 @@
|
||||
|
||||
// Server Selector Outlined Styles
|
||||
::ng-deep mifosx-server-selector {
|
||||
width: 70%;
|
||||
flex-shrink: 0; // Safari fix
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 250px;
|
||||
|
||||
#server-selector.outlined-variant {
|
||||
width: 100%;
|
||||
@@ -360,7 +504,7 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start; // Safari fix: avoid center calculation issues
|
||||
padding: 1rem;
|
||||
padding: 0 1rem 1rem;
|
||||
min-height: 0; // Safari fix: allows flex item to shrink below content size
|
||||
animation: fade-in 0.6s ease-out;
|
||||
}
|
||||
@@ -388,31 +532,23 @@
|
||||
// ===== Logo Section =====
|
||||
.logo-section {
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant, #e8eaed);
|
||||
flex-shrink: 0;
|
||||
animation: fade-in-down 0.6s ease-out 0.2s both;
|
||||
animation: fade-in 0.5s ease-out 0.1s both;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 180px;
|
||||
height: auto;
|
||||
margin-bottom: 1rem;
|
||||
filter: drop-shadow(0 2px 8px #0000001a);
|
||||
}
|
||||
height: 130px;
|
||||
width: auto;
|
||||
margin: 8px 24px;
|
||||
opacity: 0.95;
|
||||
transition: opacity 0.3s ease;
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 600;
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.welcome-subtitle {
|
||||
font-size: 0.95rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Form Section =====
|
||||
@@ -429,15 +565,6 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// ===== Version Info Section =====
|
||||
.login-version-info {
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
// ===== Resources Section =====
|
||||
.resources-section {
|
||||
margin-top: auto;
|
||||
@@ -446,34 +573,6 @@
|
||||
animation: fade-in-up 0.6s ease-out 0.4s both;
|
||||
}
|
||||
|
||||
.resources-divider {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: var(--md-sys-color-outline-variant, #c4c6d0);
|
||||
}
|
||||
|
||||
.divider-text {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0 1rem;
|
||||
background: var(--md-sys-color-surface-container-low, #fff);
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
}
|
||||
|
||||
.resources-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -504,19 +603,13 @@
|
||||
.login-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem 1.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
position: relative;
|
||||
margin-top: auto;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
|
||||
mifosx-footer {
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.reload-button {
|
||||
color: var(--mat-app-text-color, #c4c6d0);
|
||||
opacity: 0.6;
|
||||
@@ -652,7 +745,7 @@
|
||||
}
|
||||
|
||||
.login-card-container {
|
||||
padding: 1rem;
|
||||
padding: 0 1rem 1rem;
|
||||
justify-content: center;
|
||||
height: auto;
|
||||
min-height: calc(100vh - 56px); // 56px for header
|
||||
@@ -700,16 +793,14 @@
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 140px;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.5rem;
|
||||
height: 100px;
|
||||
width: auto;
|
||||
margin: 8px 20px;
|
||||
}
|
||||
|
||||
// Hide resources section on medium and small screens
|
||||
@@ -755,7 +846,7 @@
|
||||
}
|
||||
|
||||
.login-card-container {
|
||||
padding: 0.5rem;
|
||||
padding: 0 0.5rem 0.5rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@@ -764,20 +855,14 @@
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
margin-bottom: 0.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 110px;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.welcome-subtitle {
|
||||
font-size: 0.875rem;
|
||||
height: 80px;
|
||||
width: auto;
|
||||
margin: 4px 16px;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
|
||||
@@ -75,6 +75,8 @@ import { VersionService } from '../system/version.service';
|
||||
export class LoginComponent implements OnInit, OnDestroy {
|
||||
/** Show version info table if env allows */
|
||||
displayBackendInfo = environment.displayBackEndInfo !== 'false';
|
||||
/** Production mode - minimal hero with branding only */
|
||||
productionMode = environment.productionMode === true;
|
||||
|
||||
private alertService = inject(AlertService);
|
||||
private settingsService = inject(SettingsService);
|
||||
@@ -90,6 +92,12 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
/** Server info for display */
|
||||
server: string = '';
|
||||
|
||||
/** Get tenant display name with first letter capitalized */
|
||||
get tenantDisplayName(): string {
|
||||
const tenant = this.versions?.tenant || this.settingsService.tenantIdentifier || 'default';
|
||||
return tenant.charAt(0).toUpperCase() + tenant.slice(1).toLowerCase();
|
||||
}
|
||||
|
||||
/** True if password requires a reset. */
|
||||
resetPassword = false;
|
||||
/** True if user requires two factor authentication. */
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="sticky">
|
||||
<form [formGroup]="form" (ngSubmit)="addNewServer()">
|
||||
<div class="actions">
|
||||
<mat-form-field class="ml align-start">
|
||||
<mat-form-field class="add-server-field" appearance="outline">
|
||||
<span matPrefix><mat-icon>language</mat-icon></span>
|
||||
<mat-label>{{ 'labels.placeholders.Add new server' | translate }}</mat-label>
|
||||
<input matInput type="text" autocomplete="off" formControlName="url" />
|
||||
@@ -31,7 +31,7 @@
|
||||
</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
<button type="submit" [disabled]="form.invalid" class="ml" mat-raised-button color="primary">
|
||||
<button type="submit" [disabled]="form.invalid" mat-raised-button color="primary">
|
||||
{{ 'labels.buttons.Add' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -142,12 +142,22 @@
|
||||
// ===== Common Styles =====
|
||||
.actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
|
||||
.ml {
|
||||
margin-left: 10px;
|
||||
.mat-mdc-form-field {
|
||||
flex: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
flex-shrink: 0;
|
||||
height: 40px;
|
||||
min-width: 60px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.sticky {
|
||||
@@ -156,8 +166,10 @@
|
||||
top: 0; // fix at the top
|
||||
background-color: var(--md-sys-color-surface-container, white); // don't see mat-option when scrolling
|
||||
box-shadow: 1px -2px 10px 0 rgb(0 0 0 / 10%); // shadow at the bottom
|
||||
padding-bottom: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
mat-form-field {
|
||||
width: 96%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<mat-select [formControl]="tenantSelector" (selectionChange)="setTenantIdentifier()" class="tenantselector">
|
||||
@for (tenant of tenants; track tenant) {
|
||||
<mat-option [value]="tenant">
|
||||
{{ tenant }}
|
||||
{{ tenant | titlecase }}
|
||||
</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
|
||||
Reference in New Issue
Block a user