Skip to content

Commit d7b96f7

Browse files
committed
chore: update booth info; remove extra metadata
1 parent 749be4a commit d7b96f7

4 files changed

Lines changed: 35 additions & 62 deletions

File tree

public/img/booth/Hackrail.png

75 KB
Loading

src/components/Booth.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const { t } = useI18n(Astro.url.pathname)
66
const locale = getLocaleFromPath(Astro.url.pathname)
77
88
const getBoothType = (type: string) => {
9-
if (type === '贊助攤位') return 'venue.sponsor_booth'
9+
if (type === 'sponsor') return 'venue.sponsor_booth'
1010
else return 'venue.community_booth'
1111
}
1212
---
1313

1414
<div class="booth-card tranition-all flex h-fit cursor-pointer gap-2 rounded-lg group" data-booth={booth.id}>
15-
<img src={booth.image || `./img/booth/${booth.name_en}.png`} alt={booth.name} class="h-16 w-16 rounded-md bg-neutral-100 object-contain p-2 group-hover:p-1 transition-all duration-300 shrink-0" />
15+
<img src={booth.image || `./img/booth/${booth.name_en}.png`} alt={locale === 'en' ? booth.name_en : booth.name} class="h-16 w-16 rounded-md bg-neutral-100 object-contain p-2 group-hover:p-1 transition-all duration-300 shrink-0" />
1616
<div class="p-1 group-hover:ps-2 transition-all duration-300">
1717
<h5 class="text-pretty">{locale === 'en' ? booth.name_en : booth.name}</h5>
1818
<p class="m-0 text-sm text-neutral-500">{t(getBoothType(booth.type))} {booth.floor} #{booth.id}</p>

0 commit comments

Comments
 (0)