Skip to content

Commit

Permalink
quick team card fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Jul 30, 2024
1 parent 03ed92f commit 585bfa3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/TeamCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const flipped = ref(false);
</script>
<template>
<div class="opacity-0 cursor-pointer select-none animate-fade-in" @click="flipped = !flipped">
<div class="relative w-full h-full overflow-hidden group rounded-card">
<div class="relative w-full aspect-square overflow-hidden group rounded-card">
<!-- Front of Team Card -->
<NuxtImg
v-if="person.image"
width="400"
height="400"
class="object-cover w-full h-full transition duration-300 grayscale group-hover:grayscale-0"
:src="person.image as string"
:alt="person.name ?? ''"
Expand All @@ -25,23 +27,21 @@ const flipped = ref(false);
class="absolute inset-0 p-2 -m-2 overflow-hidden bg-primary/80 backdrop-blur-sm"
:initial="{
opacity: 0,
y: 100,
x: 100,
y: 25,
x: 200,
scale: 0.9,
}"
:enter="{
opacity: 1,
scale: 1,
x: 0,
y: 0,
transformOrigin: 'bottom right',
}"
:leave="{
opacity: 0,
scale: 0.9,
x: 100,
y: 100,
transformOrigin: 'bottom right',
x: 200,
y: 25,
}"
>
<div class="relative p-4 space-y-2">
Expand Down Expand Up @@ -69,7 +69,7 @@ const flipped = ref(false);
<TypographyHeadline v-if="person.name" :content="person.name" size="sm" class="text-white drop-shadow">
{{ person?.name }}
</TypographyHeadline>
<TypographyTitle v-if="person.job_title">
<TypographyTitle v-if="person.job_title" class="text-white/50">
{{ person?.job_title }}
</TypographyTitle>
</div>
Expand Down

0 comments on commit 585bfa3

Please sign in to comment.