Skip to content

Commit

Permalink
feat: shows not available overlay on disabled badges
Browse files Browse the repository at this point in the history
  • Loading branch information
lfelipessilva committed Oct 6, 2023
1 parent a1552b4 commit eadadc9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/app/components/atoms/AchievementCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@ const badges: Record<availableBadges, badgeState> = {
</script>

<template>
<div class="group rounded-md p-4 text-sm">
<div
v-if="disabled"
class="w-full h-full min-h-[190px] flex items-center justify-center"
>
<p
class="px-[10px] py-[2px] bg-zinc-200 font-medium text-zinc-900 text-xs rounded-3xl"
>
Não disponível
</p>
</div>
<div class="group rounded-md p-4 text-sm" v-if="!disabled">
<div class="mb-3 aspect-square w-full rounded relative">
<div
v-if="!disabled"
Expand Down

0 comments on commit eadadc9

Please sign in to comment.