Skip to content

Commit

Permalink
Disable registration
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Feb 1, 2024
1 parent e4fc50b commit 442b6ae
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 27 deletions.
8 changes: 4 additions & 4 deletions public/locales/de/translation.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"dmRegistration": {
"title": "Registrierung für die Deutsche Meisterschaft 2023",
"requirements": "Der Online-Wettkampf und die Deutschen Meisterschaften werden von beiden Skills gemeinsam durchgeführt. Die Aufteilung des Nationalteams auf Skill&nbsp;08 und Skill&nbsp;09 erfolgt erst im Februar&nbsp;2024 im Rahmen eines Wettkampfes, also vor dem internationalen Albert-Einstein-Cup.<br /><br />Um teilzunehmen solltest du mindestens eine Programmiersprache beherrschen, Android-Apps programmieren können, grundlegende Kenntnisse in UML und Datenbanken besitzen und englischsprachige Aufgabenstellungen verstehen können.",
"ageDisclaimer": "Bitte beachte, dass du im Wettkampfjahr 2023 nicht älter als 22&nbsp;Jahre werden darfst, d.&thinsp;h. Jahrgänge 01.01.2002 und aufwärts.",
"title": "Registrierung für die Deutsche Meisterschaft 2025",
"requirements": "Die Registrierung startet Anfang 2025.",
"ageDisclaimer": "Bitte beachte, dass du im Wettkampfjahr 2026 nicht älter als 22&nbsp;Jahre werden darfst, d.&thinsp;h. Jahrgänge 01.01.2004 und aufwärts.",
"form": {
"personalInformation": {
"title": "Persönliche Informationen",
Expand Down Expand Up @@ -70,7 +70,7 @@
},
"cta": {
"title": "Werde Teil unseres Nationalteams",
"subtitle": "Wolltest du schon immer an einem Wettbewerb im Bereich der Softwareentwicklung teilnehmen und dich mit den Besten der Besten messen? Dann registriere dich jetzt für die Online-Qualifikation und erhalte eine Chance, Teil unseres Nationalteams zu werden.",
"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 Anfang 2025.",
"button": "Registriere dich jetzt"
}
},
Expand Down
6 changes: 3 additions & 3 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dmRegistration": {
"title": "Registration for the German Nationals 2023",
"requirements": "The online competition and German championship are shared between both Skills. The national team will be divided up into Skill&nbsp;08 and Skill&nbsp;09 in February&nbsp;2024 (before the international Albert Einstein Cup).<br /><br />To participate, you should be confident in at least one programming language, be able to program Android apps, have basic knowledge of UML and databases, and be able to understand tasks written in English.",
"title": "Registration for the German Nationals 2025",
"requirements": "The registration opens in the beginning of 2025.",
"ageDisclaimer": "Please note that you must not be older than 22&nbsp;years in the competition year 2023, i.e., born 01&nbsp;January 2002 or later.",
"form": {
"personalInformation": {
Expand Down Expand Up @@ -70,7 +70,7 @@
},
"cta": {
"title": "Become part of our national team",
"subtitle": "Have you always wanted to take part in a software development competition and compete with the best of the best? Then register now for the online qualification and get a chance to be part of our national team.",
"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 the beginning of 2025.",
"button": "Register now"
}
},
Expand Down
21 changes: 13 additions & 8 deletions src/components/Cta.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Action {
export interface Props {
title: string;
subtitle?: string | null;
action: Action;
action: Action | null;
}
const { title, subtitle, action } = Astro.props;
Expand All @@ -27,11 +27,16 @@ const { title, subtitle, action } = Astro.props;
</p>
)
}
<div class="mt-16">
<a
href={action.url}
class="rounded-md bg-white px-12 py-3 text-base sm:text-lg font-semibold leading-7 text-wsi-blue-300 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
>{action.label}</a
>
</div>
{
action && (
<div class="mt-16">
<a
href={action.url}
class="rounded-md bg-white px-12 py-3 text-base sm:text-lg font-semibold leading-7 text-wsi-blue-300 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
>
{action.label}
</a>
</div>
)
}
</div>
4 changes: 2 additions & 2 deletions src/components/skill/SkillInformation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const { skillNumber } = Astro.props;
<Headline>{t(`skills.${skillNumber}.requirementsTitle`)}</Headline>
<p set:html={t(`skills.${skillNumber}.requirements`)} />
<br />
<Trans i18nKey={"skills.general.interested"}>
<!-- <Trans i18nKey={"skills.general.interested"}>
You are interested?{" "}
<Link href={buildLink("dm-registration")}>Apply now!</Link>
</Trans>
</Trans> -->
</div>
<div class="flex-1 xl:pl-12 mt-20 xl:mt-0">
<iframe
Expand Down
8 changes: 4 additions & 4 deletions src/layouts/SkillPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const {
<SkillRoadmap />
</div>
</WavedSection>
<WavedSection type={"bottom"} title={t("skills.nationalTeam.title")}>
<!-- <WavedSection type={"bottom"} title={t("skills.nationalTeam.title")}>
{
nationalTeam.length ? (
<Team members={nationalTeam} />
Expand All @@ -66,11 +66,11 @@ const {
</div>
)
}
</WavedSection>
<WavedSection type={"top"} title={t("skills.history")}>
</WavedSection> -->
<WavedSection type={"bottom"} title={t("skills.history")}>
<TimeLine entries={timelineEntries} />
</WavedSection>
<WavedSection type={"bottom"} title={t("skills.additionalLinks")}>
<WavedSection type={"top"} title={t("skills.additionalLinks")}>
<dl class="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-2">
{additionalLinks.map((link) => <LinkCard {...link} />)}
</dl>
Expand Down
7 changes: 3 additions & 4 deletions src/pages/[lang]/dm-registration.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import { t } from "i18next";
import DmRegistrationForm from "../../forms/dm-registration-form";
import Layout from "../../layouts/Layout.astro";
import { getStaticLangPaths, updateLang } from "../../routing/lang";
Expand All @@ -20,13 +19,13 @@ updateLang(Astro.url.pathname);
class="mt-8 text-sm"
set:html={t("dmRegistration.requirements")}
/>
<div class="rounded-md mt-8 p-4 bg-blue-50">
<!-- <div class="rounded-md mt-8 p-4 bg-blue-50">
<p
class="text-sm text-center text-blue-700"
set:html={t("dmRegistration.ageDisclaimer")}
/>
</div>
<DmRegistrationForm client:only />
</div> -->
<!-- <DmRegistrationForm client:only /> -->
</div>
</div>
</Layout>
4 changes: 2 additions & 2 deletions src/pages/[lang]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ updateLang(Astro.url.pathname);
<Cta
title={t("home.cta.title")}
subtitle={t("home.cta.subtitle")}
action={{
action={null/* {
label: t("home.cta.button"),
url: buildLink("dm-registration"),
}}
} */}
/>
</WavedSection>
</Layout>

0 comments on commit 442b6ae

Please sign in to comment.