Skip to content

Commit 3929c9d

Browse files
committed
feat: update and standardize tag styling across blog components with new visual enhancements and hover effects.
1 parent fa545ad commit 3929c9d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/archive/card.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const buttonLabel = computed(() =>
107107
<div class="flex items-center gap-2 flex-wrap" role="list" aria-label="Tags de l'article">
108108
<LogoTag />
109109
<template v-for="tag in visibleTags" :key="tag">
110-
<span class="bg-hoppr-purple text-white px-2 py-1 rounded-full tracking-wider" role="listitem">{{ tag }}</span>
110+
<span class="inline-flex items-center justify-center bg-hoppr-purple text-white rounded-md px-2 pb-0 text-[0.65rem] font-bold uppercase tracking-widest shadow-sm leading-normal" role="listitem" style="padding-top: 0.25em">{{ tag }}</span>
111111
</template>
112112
<button
113113
v-if="props.tags.length > 2"

components/blog/Header.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ import { formatDate } from '@/utils/helper'
6565
<div class="flex items-start gap-2 flex-wrap w-full">
6666
<LogoTag class="flex-shrink-0 mt-0.5" />
6767
<template v-for="tag in props.tags" :key="tag">
68-
<NuxtLink :to="`/tags/${tag}`" class="text-lg font-extrabold tracking-wider hover:scale-110">
69-
<span class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 tracking-wide">{{ tag }}</span>
68+
<NuxtLink :to="`/tags/${tag}`" class="group">
69+
<span class="inline-flex items-center justify-center bg-hoppr-purple text-white rounded-md px-2 pb-0 text-[0.65rem] font-bold uppercase tracking-widest shadow-sm transition-all duration-300 ease-out group-hover:scale-105 group-hover:bg-opacity-90 leading-normal" style="padding-top: 0.25em">{{ tag }}</span>
7070
</NuxtLink>
7171
</template>
7272
</div>

components/blog/card.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const buttonLabel = computed(() =>
101101
<div class="flex items-center gap-2 flex-wrap mt-2" role="list" aria-label="Tags de l'article">
102102
<LogoTag />
103103
<template v-for="tag in visibleTags" :key="tag">
104-
<span class="bg-hoppr-purple text-white px-2 py-1 rounded-full tracking-wider" role="listitem">{{ tag }}</span>
104+
<span class="inline-flex items-center justify-center bg-hoppr-purple text-white rounded-md px-2 pb-0 text-[0.65rem] font-bold uppercase tracking-widest shadow-sm leading-normal" role="listitem" style="padding-top: 0.25em">{{ tag }}</span>
105105
</template>
106106
<button
107107
v-if="props.tags.length > 2"

0 commit comments

Comments
 (0)