From ca7ec09683ef957a6aa6b805acf806e050482269 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Sun, 23 Jun 2024 10:35:31 +0300 Subject: [PATCH] style: Improved styling and functionality of application cards display - Introduced a new component called 'ApplicationCards' to manage the display of application cards. - Implemented dynamic card height adjustment based on the tallest card to ensure consistent appearance. - Added functionality to detect the current viewport size (mobile or desktop) and adjust card heights accordingly for better responsiveness and user experience. --- packages/playground/src/utils/types.ts | 9 +++ .../src/views/orchestrators_view.vue | 55 +++-------------- .../playground/src/views/solutions_view.vue | 59 +++---------------- packages/playground/src/views/vms_view.vue | 56 +++--------------- 4 files changed, 32 insertions(+), 147 deletions(-) diff --git a/packages/playground/src/utils/types.ts b/packages/playground/src/utils/types.ts index 881c7398fa..49a04d9a18 100644 --- a/packages/playground/src/utils/types.ts +++ b/packages/playground/src/utils/types.ts @@ -14,3 +14,12 @@ export interface IPublicConfig { gw6?: string; domain?: string; } + +export interface ApplicationCard { + title: string; + excerpt: string; + icon: string; + route: string; + flare?: string; + tags?: string[]; +} diff --git a/packages/playground/src/views/orchestrators_view.vue b/packages/playground/src/views/orchestrators_view.vue index f62e96691a..b9c0b3d784 100644 --- a/packages/playground/src/views/orchestrators_view.vue +++ b/packages/playground/src/views/orchestrators_view.vue @@ -1,49 +1,20 @@ - - diff --git a/packages/playground/src/views/solutions_view.vue b/packages/playground/src/views/solutions_view.vue index 1b89bd283c..d39ea62de6 100644 --- a/packages/playground/src/views/solutions_view.vue +++ b/packages/playground/src/views/solutions_view.vue @@ -1,56 +1,25 @@ - - diff --git a/packages/playground/src/views/vms_view.vue b/packages/playground/src/views/vms_view.vue index a60cce9865..73989fcfab 100644 --- a/packages/playground/src/views/vms_view.vue +++ b/packages/playground/src/views/vms_view.vue @@ -1,49 +1,21 @@ - -