Skip to content

Commit

Permalink
fix: registration links
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed Oct 28, 2024
1 parent 91323d2 commit 3411226
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
17 changes: 13 additions & 4 deletions src/components/skill/SkillInformation.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
import { getRelativeLocaleUrl } from "astro:i18n";
import { getLangFromUrl, useTranslations } from "~/i18n";
import Link from "../Link.astro";
import Headline from "../typography/Headline.astro";
interface Props {
Expand Down Expand Up @@ -31,10 +33,17 @@ const t = useTranslations(lang);
}
</Headline>
<p set:html={requirements} />
<!-- <Trans i18nKey={"skills.general.interested"}>
You are interested?{" "}
<Link href={buildLink("dm-registration")}>Apply now!</Link>
</Trans> -->
<p class="mt-4">
{
t({
de: "Du bist interessiert?",
en: "You are interested?",
})
}
<Link href={getRelativeLocaleUrl(lang, "anmeldung")}>
{t({ de: "Jetzt bewerben!", en: "Apply now!" })}
</Link>
</p>
</div>
<div class="mt-20 flex-1 xl:mt-0 xl:pl-12">
<iframe
Expand Down
6 changes: 3 additions & 3 deletions src/components/skill/SkillRoadmap.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const t = useTranslations(lang);
de: "25. Januar – 24. Februar 2023",
en: "25 January – 24 February 2023",
})}
link={getRelativeLocaleUrl(lang, "dm-registration")}
link={getRelativeLocaleUrl(lang, "anmeldung")}
className="xl:mt-0"
hoverTextColor="white"
/>
Expand All @@ -54,7 +54,7 @@ const t = useTranslations(lang);
de: "28. Februar – 27. März 2023",
en: "28 February – 27 March 2023",
})}
link={getRelativeLocaleUrl(lang, "dm-registration")}
link={getRelativeLocaleUrl(lang, "anmeldung")}
className="md:float-right md:mt-[-4rem]"
hoverTextColor="white"
/>
Expand Down Expand Up @@ -86,7 +86,7 @@ const t = useTranslations(lang);

<ol class="list-decimal space-y-4 text-left sm:pt-8 md:pt-16">
<li>
<Link href={getRelativeLocaleUrl(lang, "dm-registration")}>
<Link href={getRelativeLocaleUrl(lang, "anmeldung")}>
{t({ de: "Du registrierst dich", en: "You register yourself" })}
</Link>
{
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/SkillPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const t = useTranslations(lang);
<div>
<Trans i18nKey={"skills.nationalTeam.noTeam"}>
There is currently no national team.{" "}
<Link href={buildLink("dm-registration")}>Apply now!</Link>
<Link href={buildLink("anmeldung")}>Apply now!</Link>
</Trans>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const lang = (Astro.currentLocale || defaultLang) as Language;
subtitle="Have you always wanted to take part in a software development competition and compete with the best of the best? The next registration starts in November."
action={{
label: "Register now",
url: getRelativeLocaleUrl(lang, "dm-registration"),
url: getRelativeLocaleUrl(lang, "anmeldung"),
}}
/>
</WavedSection>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const lang = (Astro.currentLocale || defaultLang) as Language;
subtitle="Wolltest du schon immer an einem Wettbewerb im Bereich der Softwareentwicklung teilnehmen und dich mit den Besten der Besten messen? Die nächste Registrierung startet im November."
action={{
label: "Registriere dich jetzt",
url: getRelativeLocaleUrl(lang, "dm-registration"),
url: getRelativeLocaleUrl(lang, "anmeldung"),
}}
/>
</WavedSection>
Expand Down

0 comments on commit 3411226

Please sign in to comment.