initial Design done

This commit is contained in:
Mohaimen Hasan 2026-11-23 12:12:38 +06:00
parent 9f48305060
commit 34319ed2c6
3 changed files with 112 additions and 6 deletions

View File

@ -2,15 +2,15 @@
<form [formGroup]="autorizedPersonsForm">
<div class="card card-w-title">
<div class="grid">
<div class="col-12">
<button [svgIcon]="apiService.KendoSVGIcon['plus']" kendoButton themeColor="primary" class="btn btn-sm btn-primary gh-add" (click)="new()" style="width: 200px;margin-left:6px;margin-top:3px;">New</button>
</div>
<div class="col-12">
<kendo-grid [data]="gridView"
[pageSize]="10" [skip]="gridState.skip"
[pageable]="true"
[resizable]="false"
(dataStateChange)="dataStateChange($event)">
<ng-template kendoGridToolbarTemplate>
<button [svgIcon]="apiService.KendoSVGIcon['plus']" kendoButton themeColor="primary" class="btn btn-sm btn-primary gh-add" (click)="new()">New</button>
</ng-template>
<kendo-grid-column field="name" title="Name">
</kendo-grid-column>
<kendo-grid-column field="designation" title="Designation">

View File

@ -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);
}

View File

@ -4,7 +4,28 @@
<app-loading-panel> </app-loading-panel>
<div class="card-w-title">
<span style="font-weight: bold;">Current Leave Year {{ this.leaveYearstring}} {{leaveyear.startDate | date: 'dd-MMM-yyyy'}} to {{leaveyear.endDate | date: 'dd-MMM-yyyy'}} </span>
<div class="hc-year">
<span class="hc-year__icon"><i class="pi pi-calendar"></i></span>
<div class="hc-year__text">
<span class="hc-year__label">Current Leave Year</span>
@if (leaveyear) {
<div class="hc-year__value">
@if (leaveyear.name) {
<span class="hc-year__name">{{ leaveyear.name }}</span>
}
<span class="hc-year__range">
<span class="hc-year__date">{{ leaveyear.startDate | date: 'dd-MMM-yyyy' }}</span>
<i class="pi pi-arrow-right"></i>
<span class="hc-year__date">{{ leaveyear.endDate | date: 'dd-MMM-yyyy' }}</span>
</span>
</div>
} @else if (leaveYearstring) {
<span class="hc-year__missing">
<i class="pi pi-exclamation-triangle"></i>Current Leave Year{{ leaveYearstring }}
</span>
}
</div>
</div>
<kendo-grid [data]="nationalHolidayList" (add)="addHandler()">
<ng-template kendoGridToolbarTemplate>
<button [svgIcon]="apiService.KendoSVGIcon['plus']" themeColor="primary" kendoGridAddCommand>Add National Holiday</button>
@ -68,8 +89,7 @@
(close)="onPopUpClose()"
title="National Holiday "
[width]="700"
[height]="550"
[maxHeight]="900"
[maxHeight]="550"
[maxWidth]="500"
>
<app-holiday-calendar-edit