From 34319ed2c6e1aa5fd94df828ce26f156e277723c Mon Sep 17 00:00:00 2001 From: Mohaimen Hasan Date: Mon, 23 Nov 2026 12:12:38 +0600 Subject: [PATCH] initial Design done --- .../authorized-persons.component.html | 6 +- .../holiday-calendar.component.css | 86 +++++++++++++++++++ .../holiday-calendar.component.html | 26 +++++- 3 files changed, 112 insertions(+), 6 deletions(-) diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-persons.component.html b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-persons.component.html index ea63e97..3e38ad3 100644 --- a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-persons.component.html +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-persons.component.html @@ -2,15 +2,15 @@
-
- -
+ + + diff --git a/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.css b/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.css index e69de29..7e31487 100644 --- a/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.css +++ b/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.css @@ -0,0 +1,86 @@ +/* "Current Leave Year" header above the holiday grid — every colour comes from the GoHR palette */ +.hc-year { + display: flex; + align-items: center; + gap: 14px; + margin-bottom: 12px; + padding: 12px 16px; + background: var(--gh-tb); + border: 1px solid var(--gh-bo); + border-left: 4px solid var(--gh-btn); + border-radius: 10px; + box-shadow: 0 1px 3px color-mix(in srgb, var(--gh-sb) 8%, transparent); +} + +.hc-year__icon { + display: inline-flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + flex-shrink: 0; + border-radius: 10px; + background: var(--gh-th); + color: var(--gh-btn); +} + +.hc-year__icon i { + font-size: 18px; +} + +.hc-year__text { + display: flex; + flex-direction: column; + gap: 4px; + min-width: 0; +} + +.hc-year__label { + font-size: 11px; + font-weight: 600; + letter-spacing: 0.05em; + text-transform: uppercase; + color: var(--gh-muted); +} + +.hc-year__value { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 10px; +} + +.hc-year__name { + font-size: 16px; + font-weight: 700; + color: var(--gh-ht); +} + +.hc-year__range { + display: inline-flex; + align-items: center; + gap: 8px; + color: var(--gh-muted); +} + +.hc-year__range i { + font-size: 11px; +} + +.hc-year__date { + padding: 2px 10px; + border-radius: 999px; + font-size: 13px; + font-weight: 600; + color: var(--gh-lk); + background: var(--gh-th); +} + +.hc-year__missing { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 14px; + font-weight: 600; + color: var(--gh-warn); +} diff --git a/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.html b/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.html index 21a27ec..d234a5b 100644 --- a/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.html +++ b/HRM.UI/ClientApp/src/app/leave/holiday-calendar/holiday-calendar.component.html @@ -4,7 +4,28 @@
- Current Leave Year {{ this.leaveYearstring}} {{leaveyear.startDate | date: 'dd-MMM-yyyy'}} to {{leaveyear.endDate | date: 'dd-MMM-yyyy'}} +
+ +
+ Current Leave Year + @if (leaveyear) { +
+ @if (leaveyear.name) { + {{ leaveyear.name }} + } + + {{ leaveyear.startDate | date: 'dd-MMM-yyyy' }} + + {{ leaveyear.endDate | date: 'dd-MMM-yyyy' }} + +
+ } @else if (leaveYearstring) { + + Current Leave Year{{ leaveYearstring }} + + } +
+
@@ -68,8 +89,7 @@ (close)="onPopUpClose()" title="National Holiday " [width]="700" - [height]="550" - [maxHeight]="900" + [maxHeight]="550" [maxWidth]="500" >