Skip to content

Commit e9d6990

Browse files
committed
Localized Meetup URL
1 parent 3dd0fea commit e9d6990

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/index.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import LanguagePicker from '../components/LanguagePicker.astro';
99
const { lang = 'en' } = Astro.props;
1010
const t = useTranslations(lang);
1111
12+
const meetupUrl = lang === 'ja'
13+
? 'https://www.meetup.com/ja-JP/kyoto-tech-meetup/'
14+
: 'https://www.meetup.com/kyoto-tech-meetup/';
15+
1216
type ActivityContent =
1317
| {
1418
type: "paragraph";
@@ -101,7 +105,7 @@ const activities: Activity[] = [
101105
</p>
102106
<a
103107
class="mt-8 inline-flex items-center justify-center rounded-full bg-(--accent) px-6 py-3 text-base font-semibold text-white! shadow-xl shadow-black/30 transition hover:-translate-y-0.5 hover:bg-(--accent-dark) hover:text-white!"
104-
href="https://www.meetup.com/kyoto-tech-meetup/"
108+
href={meetupUrl}
105109
target="_blank"
106110
rel="noreferrer"
107111
>
@@ -190,7 +194,7 @@ const activities: Activity[] = [
190194
<li>
191195
<a
192196
class="flex items-center gap-2 transition hover:text-white"
193-
href="https://www.meetup.com/kyoto-tech-meetup/"
197+
href={meetupUrl}
194198
target="_blank"
195199
rel="noreferrer"
196200
>

0 commit comments

Comments
 (0)