From a7b48ac74eb0c3c887a58950ddebdcd1fecc5991 Mon Sep 17 00:00:00 2001
From: albaintor <118518828+albaintor@users.noreply.github.com>
Date: Tue, 22 Oct 2024 08:57:36 +0200
Subject: [PATCH] Improved rendering of dashboard
---
.../activity-player.component.css | 63 +++++++++++++++----
.../activity-player.component.html | 2 +-
2 files changed, 52 insertions(+), 13 deletions(-)
diff --git a/src/app/activity-player/activity-player.component.css b/src/app/activity-player/activity-player.component.css
index 4ed0287..b8d204e 100644
--- a/src/app/activity-player/activity-player.component.css
+++ b/src/app/activity-player/activity-player.component.css
@@ -1,29 +1,49 @@
-.widget-dialog {
+.activity-player-header {
padding: 0 !important;
- transition: width 1s, height 1s;
+ opacity: 0.7;
+ transition: width 1s ease-in-out, height 1s ease-in-out, opacity 0.5s ease, background-color 0.5s ease;
+ transition-delay: 5s;
+ animation: blur-out 500ms 0s forwards;
+}
+
+.activity-player-header:hover {
+ opacity: 1;
+ transition-delay: 0s;
+ animation: blur-in 500ms 0s forwards;
}
-.widget-header {
+.activity-player-dialog {
padding: 0 !important;
- opacity: 0.7;
- transition: width 1s ease-in-out, height 1s ease-in-out, opacity 0.5s ease;
- transition-delay: 5s;
+ transition: width 1s ease-in-out, height 1s ease-in-out, opacity 0.5s ease, background-color 0.5s ease;
+ animation: blur-out 500ms 0s forwards;
+}
+
+.activity-player-dialog:hover {
+ opacity: 1;
+ transition-delay: 0s;
+ background: transparent !important;
+ animation: blur-in 500ms 0s forwards;
}
-.widget-header .p-dialog-header
+.activity-player-header > div {
+ background: rgba(31, 41, 55, 0.7);
+}
+
+.activity-player-header:hover > div {
+ background: rgba(0, 0, 0, 0);
+}
+
+.activity-player-header .p-dialog-header
{
padding: 6px !important;
}
-.widget {
+.activity-player {
padding: 0.1rem !important;
transition: width 1s, height 1s;
}
-.widget-header:hover {
- opacity: 1;
- transition-delay: 0s;
-}
+
.grid-pagination {
position: absolute;
@@ -42,3 +62,22 @@
height: 2rem !important;
padding: 0;
}
+
+
+@keyframes blur-in {
+ from {
+ backdrop-filter: blur(0px);
+ }
+ to {
+ backdrop-filter: blur(30px);
+ }
+}
+
+@keyframes blur-out {
+ from {
+ backdrop-filter: blur(30px);
+ }
+ to {
+ backdrop-filter: blur(0px);
+ }
+}
diff --git a/src/app/activity-player/activity-player.component.html b/src/app/activity-player/activity-player.component.html
index d6cc909..656befd 100644
--- a/src/app/activity-player/activity-player.component.html
+++ b/src/app/activity-player/activity-player.component.html
@@ -1,6 +1,6 @@