From 59a53cb8e603ef22c0e675cc4f902b32f8a41278 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Sun, 23 Jun 2024 10:35:31 +0300 Subject: [PATCH 1/4] 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. --- .../applications/ApplicationCards.vue | 81 +++++++++++++++++++ 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 ++----------- 5 files changed, 113 insertions(+), 147 deletions(-) create mode 100644 packages/playground/src/components/applications/ApplicationCards.vue diff --git a/packages/playground/src/components/applications/ApplicationCards.vue b/packages/playground/src/components/applications/ApplicationCards.vue new file mode 100644 index 0000000000..ad14566ab0 --- /dev/null +++ b/packages/playground/src/components/applications/ApplicationCards.vue @@ -0,0 +1,81 @@ + + + + + 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..cc87a6e51a 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..e6abf394ee 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..881f58ffdb 100644 --- a/packages/playground/src/views/vms_view.vue +++ b/packages/playground/src/views/vms_view.vue @@ -1,49 +1,21 @@ - - From cde0ec2be7c6e64ef1dc13b48eb812c13f797565 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Mon, 24 Jun 2024 09:22:54 +0300 Subject: [PATCH 2/4] style: Adjust card heights dynamically - Dynamically set card heights based on the length of the tallest card to ensure a consistent layout. - Modify the flex system to make the 'md' view span the full width of the container for improved responsiveness and visual appeal. --- .../src/components/applications/ApplicationCards.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playground/src/components/applications/ApplicationCards.vue b/packages/playground/src/components/applications/ApplicationCards.vue index ad14566ab0..e132637f12 100644 --- a/packages/playground/src/components/applications/ApplicationCards.vue +++ b/packages/playground/src/components/applications/ApplicationCards.vue @@ -1,12 +1,12 @@