-

+
+
+ {{description}}
+ {{value}}
+
`,
- styles: [],
+ styles: [`
+ .lp-card {
+ --lp-c: var(--gh-btn);
+ position: relative;
+ height: 120px;
+ margin: 10px 1px 0 0;
+ padding: 16px 18px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ overflow: hidden;
+ border: 1px solid color-mix(in srgb, var(--lp-c) 22%, var(--gh-tb));
+ border-radius: 12px;
+ background: linear-gradient(135deg,
+ color-mix(in srgb, var(--lp-c) 10%, var(--gh-tb)) 0%,
+ color-mix(in srgb, var(--lp-c) 22%, var(--gh-tb)) 100%);
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--lp-c) 12%, transparent);
+ transition: transform .15s ease, box-shadow .15s ease;
+ }
+ .lp-card::after {
+ content: "";
+ position: absolute;
+ right: -28px;
+ bottom: -38px;
+ width: 120px;
+ height: 120px;
+ border-radius: 50%;
+ background: color-mix(in srgb, var(--lp-c) 10%, transparent);
+ pointer-events: none;
+ }
+ .lp-card:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 8px 18px color-mix(in srgb, var(--lp-c) 22%, transparent);
+ }
+ .lp-text {
+ position: relative;
+ z-index: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ min-width: 0;
+ }
+ .lp-label {
+ font-size: calc(var(--gh-fz) * 15 / 14);
+ font-weight: 600;
+ line-height: 1.3;
+ color: color-mix(in srgb, var(--lp-c) 45%, var(--gh-ht));
+ }
+ .lp-value {
+ font-size: 1.75em;
+ font-weight: 700;
+ line-height: 1.15;
+ color: color-mix(in srgb, var(--lp-c) 70%, var(--gh-ht));
+ overflow-wrap: anywhere;
+ }
+ .lp-icon {
+ position: relative;
+ z-index: 1;
+ flex: 0 0 52px;
+ height: 52px;
+ border-radius: 14px;
+ display: grid;
+ place-items: center;
+ background: var(--lp-c);
+ box-shadow: 0 4px 10px color-mix(in srgb, var(--lp-c) 35%, transparent);
+ }
+ .lp-glyph {
+ width: 28px;
+ height: 28px;
+ background: var(--gh-tb);
+ -webkit-mask: var(--lp-icon) center / contain no-repeat;
+ mask: var(--lp-icon) center / contain no-repeat;
+ }
+ `],
changeDetection: ChangeDetectionStrategy.Eager,
- standalone: false,
+ standalone: false,
})
export class LandingPageCardComponent {
@@ -25,4 +100,4 @@ export class LandingPageCardComponent {
@Input() iconSrc: string;
@Input() color1: string;
@Input() color2: string;
-}
\ No newline at end of file
+}
diff --git a/HRM.UI/ClientApp/src/app/ess/landing-page/landing-page.component.html b/HRM.UI/ClientApp/src/app/ess/landing-page/landing-page.component.html
index b3c8c55..62c7982 100644
--- a/HRM.UI/ClientApp/src/app/ess/landing-page/landing-page.component.html
+++ b/HRM.UI/ClientApp/src/app/ess/landing-page/landing-page.component.html
@@ -79,46 +79,46 @@
@if (dashboardData?.liveEmployee >= 0) {
+ [iconSrc]="'assets/hrm-card-icons/Live Employee.svg'" [color2]="'var(--gh-btn)'" [color1]="'var(--gh-btn)'">
}
@if (dashboardData?.leftEmployee >= 0) {
+ [iconSrc]="'assets/hrm-card-icons/Left.svg'" [color1]="'var(--gh-muted)'" [color2]="'var(--gh-muted)'">
}
@if (dashboardData?.newJoiner >= 0) {
+ [iconSrc]="'assets/hrm-card-icons/New Joiner.svg'" [color1]="'var(--gh-ok)'" [color2]="'var(--gh-ok)'">
}
@if (dashboardData?.postingMissing >= 0) {
+ [iconSrc]="'assets/hrm-card-icons/Posting Missing.svg'" [color1]="'var(--gh-warn)'" [color2]="'var(--gh-warn)'">
}
@if (dashboardData?.confirmationWaiting >= 0) {
+ [iconSrc]="'assets/hrm-card-icons/Confirmation Waiting.svg'" [color1]="'var(--gh-info)'" [color2]="'var(--gh-info)'">
}
@if (dashboardData?.nextSalaryDate != undefined) {
-
+
+ [iconSrc]="'assets/hrm-card-icons/Next Pay Date.svg'" [color1]="'var(--gh-sb)'" [color2]="'var(--gh-sb)'">
-
Expected Disbursement Date:
+ Expected Disbursement Date:
{{expectedSalaryDatestring}}