From 5a410c8755934fe941d6898f9415dd065e51a892 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 5 Jul 2026 20:39:01 +0200 Subject: [PATCH 1/3] change starting page --- src/lib/types.ts | 2 + src/routes/+page.svelte | 109 +++++++++++++++-------- src/signup-form/at/smallTexts_unused.yml | 2 + src/signup-form/de/smallTexts_unused.yml | 2 + src/signup-form/us/smallTexts.yml | 2 + 5 files changed, 78 insertions(+), 39 deletions(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index 32805613..f68f69dd 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -280,6 +280,8 @@ export type Microcopy = { theme?: string chooseLocation?: string register?: string + currentStatsTitle?: string + mediatedStatsTitle?: string boxes?: { locationsNumber?: number locationsName?: string diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e2ed693d..71c46742 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -33,41 +33,52 @@ {@html $microcopy?.indexPage?.theme} -
-
- {data.chapters.filter((ch) => ch.acceptsSignups).length} - - - {$microcopy?.indexPage?.boxes?.locationsName} +
+
+

{$microcopy?.indexPage?.currentStatsTitle ?? `Wir sind aktuell`}

+
+
+ {data.chapters.filter((ch) => ch.acceptsSignups).length} + + + {$microcopy?.indexPage?.boxes?.locationsName} +
+
+ {$microcopy?.indexPage?.boxes?.organizationMemberNumber} + + + {@html $microcopy?.indexPage?.boxes?.organizationMemberName} + +
+
-
- {$microcopy?.indexPage?.boxes?.studentsNumber} - - - {$microcopy?.indexPage?.boxes?.studentsName} -
-
- {$microcopy?.indexPage?.boxes?.pupilsNumber} - - - {$microcopy?.indexPage?.boxes?.pupilsName} -
-
- {$microcopy?.indexPage?.boxes?.scholarshipNumber} - - - {@html $microcopy?.indexPage?.boxes?.scholarshipName} - -
-
- {$microcopy?.indexPage?.boxes?.organizationMemberNumber} - - - {@html $microcopy?.indexPage?.boxes?.organizationMemberName} - + +
+

{$microcopy?.indexPage?.mediatedStatsTitle ?? `Wir vermittelten seit 2020:`}

+
+
+ {$microcopy?.indexPage?.boxes?.studentsNumber} + + + {$microcopy?.indexPage?.boxes?.studentsName} +
+
+ {$microcopy?.indexPage?.boxes?.pupilsNumber} + + + {$microcopy?.indexPage?.boxes?.pupilsName} +
+
+ {$microcopy?.indexPage?.boxes?.scholarshipNumber} + + + {@html $microcopy?.indexPage?.boxes?.scholarshipName} + +
+
@@ -100,25 +111,45 @@ text-align: center; font-weight: lighter; } - section { + .stat-groups { display: flex; padding: 1em; place-content: center; + gap: 2.25em; + flex-direction: column; + color: white; + } + + .stat-group { + color: var(--text-color); + } + + .stat-group h2 { + margin: 0 0 0.75em; + text-decoration: underline; + text-underline-offset: 0.2em; + } + + .stat-row { + display: flex; gap: 2em; flex-wrap: wrap; - color: white; + justify-content: center; + white-space: nowrap; } - section div { + + .stat-box { + color: white; font-size: 2ex; text-align: center; - flex: 0 1 10%; + flex: 0 1 10em; padding: 1ex; border-radius: 1ex; font-weight: bold; display: flex; flex-direction: column; } - section div span { + .stat-box span { font-size: 3ex; display: block; } diff --git a/src/signup-form/at/smallTexts_unused.yml b/src/signup-form/at/smallTexts_unused.yml index 35e56570..3e81c8c6 100644 --- a/src/signup-form/at/smallTexts_unused.yml +++ b/src/signup-form/at/smallTexts_unused.yml @@ -12,6 +12,8 @@ indexPage: 'Oder melde dich direkt bei uns an. ' + currentStatsTitle: Wir sind aktuell + mediatedStatsTitle: 'Wir vermittelten seit 2020:' boxes: locationsName: Standorte studentsName: Studierende diff --git a/src/signup-form/de/smallTexts_unused.yml b/src/signup-form/de/smallTexts_unused.yml index 9c660217..98e3be22 100644 --- a/src/signup-form/de/smallTexts_unused.yml +++ b/src/signup-form/de/smallTexts_unused.yml @@ -11,6 +11,8 @@ indexPage: register: 'Oder melde dich direkt bei uns an. ' + currentStatsTitle: Wir sind aktuell + mediatedStatsTitle: 'Wir vermittelten seit 2020:' boxes: locationsName: Standorte studentsName: Studierende diff --git a/src/signup-form/us/smallTexts.yml b/src/signup-form/us/smallTexts.yml index 5ea1307a..59edc493 100644 --- a/src/signup-form/us/smallTexts.yml +++ b/src/signup-form/us/smallTexts.yml @@ -10,6 +10,8 @@ indexPage: register: 'Or just register on our website. ' + currentStatsTitle: We are currently + mediatedStatsTitle: 'Since 2020, we have facilitated:' boxes: locationsName: locations studentsName: students From b483bb9a3a9f36bc54970cef561a38dd4e5e6feb Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 20 Jul 2026 17:53:31 +0200 Subject: [PATCH 2/3] Make changes for start page only active by choice --- src/lib/types.ts | 1 + src/routes/+page.svelte | 128 +++++++++++++++-------- src/signup-form/at/smallTexts_unused.yml | 2 - src/signup-form/de/smallTexts_unused.yml | 1 + src/signup-form/us/smallTexts.yml | 2 - 5 files changed, 86 insertions(+), 48 deletions(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index f68f69dd..bc7b529a 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -280,6 +280,7 @@ export type Microcopy = { theme?: string chooseLocation?: string register?: string + statsLayout?: `default` | `grouped` currentStatsTitle?: string mediatedStatsTitle?: string boxes?: { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 71c46742..160152ba 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -33,54 +33,94 @@ {@html $microcopy?.indexPage?.theme} -
-
-

{$microcopy?.indexPage?.currentStatsTitle ?? `Wir sind aktuell`}

-
-
- {data.chapters.filter((ch) => ch.acceptsSignups).length} - - - {$microcopy?.indexPage?.boxes?.locationsName} -
-
- {$microcopy?.indexPage?.boxes?.organizationMemberNumber} - - - {@html $microcopy?.indexPage?.boxes?.organizationMemberName} - +{#if $microcopy?.indexPage?.statsLayout === `grouped`} +
+
+

{$microcopy?.indexPage?.currentStatsTitle ?? `Wir sind aktuell`}

+
+
+ {data.chapters.filter((ch) => ch.acceptsSignups).length} + + + {$microcopy?.indexPage?.boxes?.locationsName} +
+
+ {$microcopy?.indexPage?.boxes?.organizationMemberNumber} + + + {@html $microcopy?.indexPage?.boxes?.organizationMemberName} + +
-
- -
-

{$microcopy?.indexPage?.mediatedStatsTitle ?? `Wir vermittelten seit 2020:`}

-
-
- {$microcopy?.indexPage?.boxes?.studentsNumber} - - - {$microcopy?.indexPage?.boxes?.studentsName} -
-
- {$microcopy?.indexPage?.boxes?.pupilsNumber} - - - {$microcopy?.indexPage?.boxes?.pupilsName} -
-
- {$microcopy?.indexPage?.boxes?.scholarshipNumber} - - - {@html $microcopy?.indexPage?.boxes?.scholarshipName} - + +
+

{$microcopy?.indexPage?.mediatedStatsTitle ?? `Wir vermittelten seit 2020:`}

+
+
+ {$microcopy?.indexPage?.boxes?.studentsNumber} + + + {$microcopy?.indexPage?.boxes?.studentsName} +
+
+ {$microcopy?.indexPage?.boxes?.pupilsNumber} + + + {$microcopy?.indexPage?.boxes?.pupilsName} +
+
+ {$microcopy?.indexPage?.boxes?.scholarshipNumber} + + + {@html $microcopy?.indexPage?.boxes?.scholarshipName} + +
-
-
+
+{:else} +
+
+ {data.chapters.filter((ch) => ch.acceptsSignups).length} + + + {$microcopy?.indexPage?.boxes?.locationsName} +
+
+ {$microcopy?.indexPage?.boxes?.studentsNumber} + + + {$microcopy?.indexPage?.boxes?.studentsName} +
+
+ {$microcopy?.indexPage?.boxes?.pupilsNumber} + + + {$microcopy?.indexPage?.boxes?.pupilsName} +
+
+ {$microcopy?.indexPage?.boxes?.scholarshipNumber} + + + {@html $microcopy?.indexPage?.boxes?.scholarshipName} + +
+
+ {$microcopy?.indexPage?.boxes?.organizationMemberNumber} + + + {@html $microcopy?.indexPage?.boxes?.organizationMemberName} + +
+
+{/if}

diff --git a/src/signup-form/at/smallTexts_unused.yml b/src/signup-form/at/smallTexts_unused.yml index 3e81c8c6..35e56570 100644 --- a/src/signup-form/at/smallTexts_unused.yml +++ b/src/signup-form/at/smallTexts_unused.yml @@ -12,8 +12,6 @@ indexPage: 'Oder melde dich direkt bei uns an. ' - currentStatsTitle: Wir sind aktuell - mediatedStatsTitle: 'Wir vermittelten seit 2020:' boxes: locationsName: Standorte studentsName: Studierende diff --git a/src/signup-form/de/smallTexts_unused.yml b/src/signup-form/de/smallTexts_unused.yml index 98e3be22..42fed589 100644 --- a/src/signup-form/de/smallTexts_unused.yml +++ b/src/signup-form/de/smallTexts_unused.yml @@ -11,6 +11,7 @@ indexPage: register: 'Oder melde dich direkt bei uns an. ' + statsLayout: grouped currentStatsTitle: Wir sind aktuell mediatedStatsTitle: 'Wir vermittelten seit 2020:' boxes: diff --git a/src/signup-form/us/smallTexts.yml b/src/signup-form/us/smallTexts.yml index 59edc493..5ea1307a 100644 --- a/src/signup-form/us/smallTexts.yml +++ b/src/signup-form/us/smallTexts.yml @@ -10,8 +10,6 @@ indexPage: register: 'Or just register on our website. ' - currentStatsTitle: We are currently - mediatedStatsTitle: 'Since 2020, we have facilitated:' boxes: locationsName: locations studentsName: students From 00f6eb5353699acb7227f0b7f108101ef744732c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 15:54:53 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/lib/types.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index bc7b529a..c28c77ab 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -170,19 +170,9 @@ export type SignupStore = { } export type StandardTypes = - | `text` - | `email` - | `number` - | `date` - | `tel` - | `checkbox` + `text` | `email` | `number` | `date` | `tel` | `checkbox` export type CustomTypes = - | `select` - | `toggle` - | `singleRange` - | `doubleRange` - | `placeSelect` - | `radio` + `select` | `toggle` | `singleRange` | `doubleRange` | `placeSelect` | `radio` export type FormFieldType = StandardTypes | CustomTypes export type FormFieldProps = {