From 46caa71549e463022ca43bb914742608cc023074 Mon Sep 17 00:00:00 2001 From: Igor Propisnov Date: Tue, 10 Sep 2024 14:49:52 +0200 Subject: [PATCH] added animations --- .../layout/main-layout/layout.component.html | 248 +++++++++++++++--- .../layout/main-layout/layout.component.ts | 23 +- 2 files changed, 227 insertions(+), 44 deletions(-) diff --git a/frontend/src/app/layout/main-layout/layout.component.html b/frontend/src/app/layout/main-layout/layout.component.html index 8af729a..b83a5ed 100644 --- a/frontend/src/app/layout/main-layout/layout.component.html +++ b/frontend/src/app/layout/main-layout/layout.component.html @@ -12,36 +12,89 @@ @@ -79,15 +132,116 @@ [routerLink]="item.route" [class.active]="item.active" class="flex items-center w-full px-4 py-3 transition-colors duration-200 ease-in-out focus:outline-none hover:bg-base-300 hover:text-primary" - [class.bg-base-100]="item.active" - [class.text-base-content]="item.active" - [class.text-primary]="item.active" - [class.font-semibold]="item.active" + [ngClass]="{ + 'bg-base-100': item.active, + 'text-base-content': item.active, + 'text-primary': item.active, + 'font-semibold': item.active, + 'justify-center': isCompact, + 'px-4': !isCompact + }" role="menuitem" tabindex="0" (click)="onLinkClick()"> + + {{ item.name }} + + + + +
+ + + {{ item.name }} + + + + +
+ +
+ + +
-
-