aboutsummaryrefslogtreecommitdiff
path: root/src/components/ToolCard.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-04-20 20:49:28 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-04-20 20:57:38 +0200
commitf080933d2a6f03ef54d40b57175a1bea276df675 (patch)
treed4c0abf43da4ea910f13c1f5b4a765279d6491dc /src/components/ToolCard.vue
parentbb32513bd34948b0f0a3d739c41bda303d01cf89 (diff)
downloadit-tools-f080933d2a6f03ef54d40b57175a1bea276df675.tar.gz
it-tools-f080933d2a6f03ef54d40b57175a1bea276df675.tar.zst
it-tools-f080933d2a6f03ef54d40b57175a1bea276df675.zip
refactor(ui): replaced naive ui cards with custom ones
Diffstat (limited to 'src/components/ToolCard.vue')
-rw-r--r--src/components/ToolCard.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/ToolCard.vue b/src/components/ToolCard.vue
index d8a0910..c0f8581 100644
--- a/src/components/ToolCard.vue
+++ b/src/components/ToolCard.vue
@@ -1,6 +1,6 @@
<template>
<router-link :to="tool.path">
- <n-card class="tool-card">
+ <c-card class="tool-card">
<n-space justify="space-between" align="center">
<n-icon class="icon" size="40" :component="tool.icon" />
<n-space align="center">
@@ -29,7 +29,7 @@
<br />&nbsp;
</n-ellipsis>
</div>
- </n-card>
+ </c-card>
</router-link>
</template>
@@ -37,11 +37,14 @@
import type { Tool } from '@/tools/tools.types';
import { useThemeVars } from 'naive-ui';
import { toRefs } from 'vue';
+import { useAppTheme } from '@/ui/theme/themes';
import FavoriteButton from './FavoriteButton.vue';
const props = defineProps<{ tool: Tool & { category: string } }>();
const { tool } = toRefs(props);
const theme = useThemeVars();
+
+const appTheme = useAppTheme();
</script>
<style lang="less" scoped>
@@ -50,8 +53,11 @@ a {
}
.tool-card {
+ transition: border-color ease 0.5s;
+ border-width: 2px !important;
+
&:hover {
- border-color: var(--n-color-target);
+ border-color: v-bind('appTheme.primary.colorHover');
}
.icon {