Skip to content

Commit a4972c6

Browse files
committed
Clean up html structure.
1 parent 3645fb4 commit a4972c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pages/speakers.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,20 @@ const description = "Our conference speakers organized alphabetically";
7878
href={`/speaker/${speaker.id}`}
7979
class="flex flex-col items-center group"
8080
>
81-
<div class="w-full aspect-square rounded-full overflow-hidden mb-3 border-2 border-transparent group-hover:border-primary transition-all">
8281
{speaker.data.avatar ? (
8382

8483
<Image
8584
src={speaker.data.avatar}
8685
alt={`${speaker.data.name}'s profile picture`}
8786
height={250}
8887
width={250}
89-
class="w-full h-full object-cover "
88+
class="w-full aspect-square rounded-full overflow-hidden mb-3 border-2 border-transparent group-hover:border-primary transition-all h-full object-cover "
9089
/>
9190
) : (
92-
<div class="w-full h-full bg-[#f7efe6] flex items-center justify-center text-gray-500 text-xl">
91+
<div class="w-full h-full bg-[#f7efe6] flex items-center justify-center text-gray-500 text-xl aspect-square rounded-full overflow-hidden mb-3 border-2 border-transparent ">
9392
{speaker.data.name.charAt(0)}
9493
</div>
9594
)}
96-
</div>
9795
<h3 class="text-center font-medium group-hover:text-primary text-sm md:text-base">
9896
{speaker.data.name}
9997
</h3>

0 commit comments

Comments
 (0)