From eb31b8299b95a53bcaf593a6dbf4ef97fcc2db73 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 6 Feb 2026 16:28:00 +0700 Subject: [PATCH] Refine glass UI capsules and hub card --- app/assets/css/tailwind.css | 19 ++ app/components/catalog/HubCard.vue | 8 +- app/components/navigation/MainNavigation.vue | 216 ++++++++++--------- app/components/page/CatalogPage.vue | 16 +- 4 files changed, 143 insertions(+), 116 deletions(-) diff --git a/app/assets/css/tailwind.css b/app/assets/css/tailwind.css index 5bb8133..aa70775 100644 --- a/app/assets/css/tailwind.css +++ b/app/assets/css/tailwind.css @@ -36,6 +36,25 @@ --noise: 0; } +@layer components { + .glass-topfade { + background: linear-gradient( + 180deg, + rgba(255, 255, 255, 0.4) 0%, + rgba(255, 255, 255, 0.18) 45%, + rgba(255, 255, 255, 0) 100% + ); + } + + .glass-soft { + @apply bg-white/10 border border-white/10 backdrop-blur-md; + } + + .glass-bright { + @apply bg-white/30 border border-white/20 backdrop-blur-md; + } +} + @plugin "daisyui/theme" { name: "silk"; default: false; diff --git a/app/components/catalog/HubCard.vue b/app/components/catalog/HubCard.vue index d6999f7..89c0a82 100644 --- a/app/components/catalog/HubCard.vue +++ b/app/components/catalog/HubCard.vue @@ -19,14 +19,14 @@
{{ hub.name }} -
- {{ distanceLabel }} +
+ {{ distanceLabel }}
-
+
diff --git a/app/components/navigation/MainNavigation.vue b/app/components/navigation/MainNavigation.vue index aec07e1..e1891c7 100644 --- a/app/components/navigation/MainNavigation.vue +++ b/app/components/navigation/MainNavigation.vue @@ -4,77 +4,81 @@ :class="headerClasses" :style="{ height: `${height}px` }" > -
+
-
- - Optovia - +
+
+ + Optovia + +
- + +
@@ -84,7 +88,7 @@