From 09cbf17ed95cc2491cb74ac970aa733893f3858a Mon Sep 17 00:00:00 2001 From: Matus Kosut Date: Sun, 7 Jul 2024 15:55:28 +0200 Subject: [PATCH] improve cards --- pages/.vitepress/components/CardElement.vue | 10 ++++++++-- pages/en/organizations/index.md | 20 ++++++++++---------- pages/index.md | 4 ++-- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/pages/.vitepress/components/CardElement.vue b/pages/.vitepress/components/CardElement.vue index 1eb5d96..be37ae1 100644 --- a/pages/.vitepress/components/CardElement.vue +++ b/pages/.vitepress/components/CardElement.vue @@ -6,6 +6,7 @@ export default { subtitle: { type: String, required: false, default: "" }, text: { type: String, required: true, default: "" }, href: { type: String, required: false, default: "" }, + link: { type: Boolean, required: false, default: false }, }, data() { return { @@ -23,6 +24,11 @@ export default { computed: { // TODO }, + methods: { + hoverIcon (isHovering: Boolean) { + return isHovering ? 'mdi-chevron-triple-right' : 'mdi-chevron-right' + }, + }, } @@ -38,8 +44,8 @@ export default { :title="title" :subtitle="subtitle" :href="href" - link - :append-icon="isHovering ? 'mdi-chevron-triple-right' : 'mdi-chevron-right'" + :link="link ? true : false" + :append-icon="link ? hoverIcon(isHovering) : ''" > diff --git a/pages/en/organizations/index.md b/pages/en/organizations/index.md index cd8f18c..da3e030 100644 --- a/pages/en/organizations/index.md +++ b/pages/en/organizations/index.md @@ -73,16 +73,16 @@ sidebar: false - - - - - - - - - - + + + + + + + + + + diff --git a/pages/index.md b/pages/index.md index 5709118..33cc1e7 100644 --- a/pages/index.md +++ b/pages/index.md @@ -102,8 +102,8 @@ contact: https://docs.hdc.ntnu.no/about/contact/ Explore, collaborate, and create while knowing that your data is secure within flexible and ISO-certified cloud environments. - - + +