From 1144a11ae8ea4049026920c7da892cebbab2621c Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 28 Oct 2026 12:37:11 +0000 Subject: [PATCH 01/12] fix: header flicker on transition --- AGENTS.md | 6 ++++++ src/components/Divider.astro | 17 +++++++++++++++-- src/layouts/Shell.astro | 7 ++++++- src/layouts/Shell.css | 4 ++++ 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..1f2d9c41 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,6 @@ +# Agents + +## Verification + +1. Run the checks with `pnpm run check`. +2. Fix formatting and linting issues with `pnpm run fix`. diff --git a/src/components/Divider.astro b/src/components/Divider.astro index be78a5bc..09aa14d6 100644 --- a/src/components/Divider.astro +++ b/src/components/Divider.astro @@ -20,18 +20,31 @@ const { firstSegmentColor = '', secondSegmentColor = '', height = '', + ...attributes } = Astro.props; const style = `transform: scaleX(${flipHorizontal ? -1 : 1}) scaleY(${flipVertical ? -1 : 1})${fixAntialiasingTop ? '; margin-block-start: -1.1px;' : ''}${fixAntialiasingBottom ? '; margin-block-end: -1.1px;' : ''}`; --- {kind === 'single' ? ( - + ) : null} {kind === 'multi' ? ( - +
- +
diff --git a/src/layouts/Shell.css b/src/layouts/Shell.css index 256e0246..c8569e8d 100644 --- a/src/layouts/Shell.css +++ b/src/layouts/Shell.css @@ -140,6 +140,10 @@ body > :is(header, footer) { z-index: 10; } +::view-transition-group(header-divider) { + z-index: 5; +} + #ribbon ::selection, body > :is(header, footer) ::selection { background-color: var(--color-white); From 445e6ed2894971bb23bf023a42160cd0ea64314a Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 28 Oct 2026 15:39:44 +0000 Subject: [PATCH 02/12] feat: split projects and products and reference companies --- .changeset/moody-rules-stop.md | 5 + package.json | 4 +- pnpm-lock.yaml | 20 +-- pnpm-workspace.yaml | 3 + src/content.config.ts | 156 ++++++++++-------- src/content/products/placeholder.png | Bin 0 -> 17340 bytes .../projects => products}/timelet.de.mdx | 0 .../projects => products}/timelet.en.mdx | 0 .../projects => products}/timelet.svg | 0 .../{innenausbau.de.md => sto.de.md} | 0 .../{innenausbau.en.md => sto.en.md} | 0 .../references/projects/certification.de.mdx | 1 + .../references/projects/certification.en.mdx | 1 + .../references/projects/vialibera.de.mdx | 1 + .../references/projects/vialibera.en.mdx | 1 + 15 files changed, 111 insertions(+), 81 deletions(-) create mode 100644 .changeset/moody-rules-stop.md create mode 100644 src/content/products/placeholder.png rename src/content/{references/projects => products}/timelet.de.mdx (100%) rename src/content/{references/projects => products}/timelet.en.mdx (100%) rename src/content/{references/projects => products}/timelet.svg (100%) rename src/content/references/companies/{innenausbau.de.md => sto.de.md} (100%) rename src/content/references/companies/{innenausbau.en.md => sto.en.md} (100%) diff --git a/.changeset/moody-rules-stop.md b/.changeset/moody-rules-stop.md new file mode 100644 index 00000000..edacf930 --- /dev/null +++ b/.changeset/moody-rules-stop.md @@ -0,0 +1,5 @@ +--- +'openscript-ch-website': patch +--- + +Add strengths collection as interlude between references and services diff --git a/package.json b/package.json index aa35441f..95f6a2a1 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,8 @@ "@nanostores/i18n": "^1.3.3", "@openscript/svg-sprite-ng": "^4.0.0", "astro": "^7.4.2", - "astro-loader-i18n": "^1.0.2", - "astro-nanostores-i18n": "^1.0.2", + "astro-loader-i18n": "^1.1.0", + "astro-nanostores-i18n": "^1.0.3", "embla-carousel": "^8.6.0", "embla-carousel-autoplay": "^8.6.0", "embla-carousel-class-names": "^8.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fabd5b45..5bab7df8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -338,11 +338,11 @@ importers: specifier: ^7.4.2 version: 7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) astro-loader-i18n: - specifier: ^1.0.2 - version: 1.0.2(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)) + specifier: ^1.1.0 + version: 1.1.0(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)) astro-nanostores-i18n: - specifier: ^1.0.2 - version: 1.0.2(@nanostores/i18n@1.3.3(nanostores@1.5.5))(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(nanostores@1.5.5) + specifier: ^1.0.3 + version: 1.0.3(@nanostores/i18n@1.3.3(nanostores@1.5.5))(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(nanostores@1.5.5) embla-carousel: specifier: ^8.6.0 version: 8.6.0 @@ -1906,13 +1906,13 @@ packages: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true - astro-loader-i18n@1.0.2: - resolution: {integrity: sha512-rXxA29ObEr8Z25lg9jk4IXxiSIrXWnRfj+zKil5uuLp9MAeUP93vaaGB7vp8JGxkuKEc54omD5rQ/CMKyZSwGg==} + astro-loader-i18n@1.1.0: + resolution: {integrity: sha512-vpe1mPtxslh7WKncOvbRNs/Rk7WtvKicGdPaLTmaB/svzvysgEbgZqSUrBF61zRoQ6yTEDNxavS0eko8cy1+cg==} peerDependencies: astro: ^5.5.0 || ^6.0.0 || ^7.0.0 - astro-nanostores-i18n@1.0.2: - resolution: {integrity: sha512-20+ct1TawFYW678InjbOoye6YV7pQMuBLc3qBtr37V8aZ+ocLszkQZzk+rBXvHEIpR+GXivIaX/ptKS8mjAjFw==} + astro-nanostores-i18n@1.0.3: + resolution: {integrity: sha512-DWCssDjyVSgJd9kA82I2x60Qbv46Knz4HYQ8Gi6+3FIzQvtZ2JuDV9kNIYpDnyvD5O/asDDM1ookTc9ZTKt6Qw==} hasBin: true peerDependencies: '@nanostores/i18n': ^1.2.0 @@ -4970,11 +4970,11 @@ snapshots: astring@1.9.0: {} - astro-loader-i18n@1.0.2(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)): + astro-loader-i18n@1.1.0(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)): dependencies: astro: 7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - astro-nanostores-i18n@1.0.2(@nanostores/i18n@1.3.3(nanostores@1.5.5))(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(nanostores@1.5.5): + astro-nanostores-i18n@1.0.3(@nanostores/i18n@1.3.3(nanostores@1.5.5))(astro@7.4.2(@astrojs/markdown-remark@7.3.4)(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(nanostores@1.5.5): dependencies: '@astrojs/compiler': 4.0.0 '@nanostores/i18n': 1.3.3(nanostores@1.5.5) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6aeb0ef8..09056aae 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,8 @@ +# yaml-language-server: $schema=https://json.schemastore.org/pnpm-workspace.json allowBuilds: esbuild: true sharp: true minimumReleaseAgeExclude: - '@openscript/svg-sprite-ng' + - 'astro-loader-i18n' + - 'astro-nanostores-i18n' diff --git a/src/content.config.ts b/src/content.config.ts index 158e90cf..0b411a8c 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -3,6 +3,7 @@ import { i18nContentLoader, i18nFileLoader, i18nLoader, + i18nReference, localized as localizedSchema, } from 'astro-loader-i18n'; import { defineCollection, type ImageFunction } from 'astro:content'; @@ -30,7 +31,38 @@ const createNavigationItem = (image: ImageFunction) => { }); }; -const navigationCollection = defineCollection({ +const formation = defineCollection({ + loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/formation' }), + schema: extendI18nLoaderSchema( + z.object({ + items: localized( + z.array( + z.object({ + title: z.string(), + text: z.string(), + }), + ), + ), + }), + ), +}); + +const galleries = defineCollection({ + loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/galleries' }), + schema: ({ image }) => + extendI18nLoaderSchema( + z.object({ + items: z.array( + z.object({ + photo: image(), + label: localized(z.string()), + }), + ), + }), + ), +}); + +const navigation = defineCollection({ loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/navigation' }), schema: ({ image }) => extendI18nLoaderSchema( @@ -40,7 +72,7 @@ const navigationCollection = defineCollection({ ), }); -const pagesCollection = defineCollection({ +const pages = defineCollection({ loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/pages' }), schema: extendI18nLoaderSchema( z.object({ @@ -51,28 +83,8 @@ const pagesCollection = defineCollection({ ), }); -const sectionsCollection = defineCollection({ - loader: glob({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/sections' }), - schema: z.object({}), -}); - -const referenceCompaniesCollection = defineCollection({ - loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/references/companies' }), - schema: ({ image }) => - extendI18nLoaderSchema( - z.object({ - id: z.string(), - companyName: z.string(), - logo: image(), - url: z.url().optional(), - archived: z.boolean().optional().default(false), - details: z.string().optional(), - }), - ), -}); - -const referenceProjectsCollection = defineCollection({ - loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/references/projects' }), +const products = defineCollection({ + loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/products' }), schema: ({ image }) => extendI18nLoaderSchema( z.object({ @@ -86,7 +98,7 @@ const referenceProjectsCollection = defineCollection({ ), }); -const questionsCollection = defineCollection({ +const questions = defineCollection({ loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/questions' }), schema: extendI18nLoaderSchema( z.object({ @@ -103,71 +115,77 @@ const questionsCollection = defineCollection({ ), }); -const technologiesCollection = defineCollection({ - loader: i18nFileLoader('./src/content/technologies/index.yaml'), - schema: extendI18nLoaderSchema( - z.object({ - id: z.string(), - label: localized(z.string()), - logo: z.string(), - url: z.url(), - }), - ), +const referenceCompanies = defineCollection({ + loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/references/companies' }), + schema: ({ image }) => + extendI18nLoaderSchema( + z.object({ + id: z.string(), + companyName: z.string(), + logo: image(), + url: z.url().optional(), + archived: z.boolean().optional().default(false), + details: z.string().optional(), + }), + ), }); -const teamCollection = defineCollection({ - loader: i18nFileLoader('./src/content/team/index.yaml'), +const referenceProjects = defineCollection({ + loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/references/projects' }), schema: ({ image }) => extendI18nLoaderSchema( z.object({ - id: z.string(), - name: z.string(), - avatar: image(), - role: localized(z.string()), + softwareName: z.string(), + title: z.string(), + summary: z.string(), + logo: image(), + path: z.url().optional(), + featured: z.boolean().optional().default(false), + company: i18nReference('referenceCompanies'), }), ), }); -const galleriesCollection = defineCollection({ - loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/galleries' }), +const sections = defineCollection({ + loader: glob({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/sections' }), + schema: z.object({}), +}); + +const team = defineCollection({ + loader: i18nFileLoader('./src/content/team/index.yaml'), schema: ({ image }) => extendI18nLoaderSchema( z.object({ - items: z.array( - z.object({ - photo: image(), - label: localized(z.string()), - }), - ), + id: z.string(), + name: z.string(), + avatar: image(), + role: localized(z.string()), }), ), }); -const formationCollection = defineCollection({ - loader: i18nContentLoader({ pattern: '**/[^_]*.yaml', base: './src/content/formation' }), +const technologies = defineCollection({ + loader: i18nFileLoader('./src/content/technologies/index.yaml'), schema: extendI18nLoaderSchema( z.object({ - items: localized( - z.array( - z.object({ - title: z.string(), - text: z.string(), - }), - ), - ), + id: z.string(), + label: localized(z.string()), + logo: z.string(), + url: z.url(), }), ), }); export const collections = { - navigation: navigationCollection, - pages: pagesCollection, - sections: sectionsCollection, - referenceCompanies: referenceCompaniesCollection, - referenceProjects: referenceProjectsCollection, - questions: questionsCollection, - technologies: technologiesCollection, - team: teamCollection, - galleries: galleriesCollection, - formation: formationCollection, + formation, + galleries, + navigation, + pages, + products, + questions, + referenceCompanies, + referenceProjects, + sections, + team, + technologies, }; diff --git a/src/content/products/placeholder.png b/src/content/products/placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..0458f6128a3ef356d1f937429071aafce399853a GIT binary patch literal 17340 zcmeHvc~n#9+OMs()KaAmHFYAjmV>QBYEjXG$=9PC>YUsYXOiVuoF{ zN+oI(ho~s&!CI^wOs%C63E2WN$q5#;o{o`9DUCc>d!NBc40*(u?rQwuRxRMvPdtcg6A# z)`*@PyfO0ow>~*pZKs4ohiV%Nwk4!q-rV-vAOC%MFz@8wHF@tvy*cFDsr_o#k6AJ4 zEgIgnt>x=?w5&}^q5p6(_ucyQXLx}+dhvgI^T4w=UCd{Pkn-#hAW5Db!m~s8vuZx8 z3D432HPL4^;n^Ylf2j#nB3EiU=F6&Cx;wacWcU}7bOl55 zO9tIB;_tuf>>cr+PU3dlyvW2mAAM_QFcF7^mti#!`h@^D1w0aonv{#M7b*oJB9}XSm#e% z+54=9>gqij>LJVWfwsK?JDF)=*{0(5Hlm78F2txXWolWtXv61M^BCBb8pk$P;I6J? zKtHK~t2W{FRmRK0biKdOmc#Oy*1M?IH0eEy zGYcCoAQI$ui~Q_^e_J@sYNAh#UW_Cj8J8YTYu_0|<%Dp&lX#8@-q|E^Pg3`5{H{$t z>$cWM9@_v;CKD}uYAzfBbp!t_HMKlJe^cSi*4Vb`n$qzXV`AE1kC`7Z=B#J>F|HkKs`}L{^V9 z>2m4Nrl!0z)w$!PWM{?X|PNSkfX!I-YPNt5MLsn)D1M5r5Ff8>rm_64AF83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i_*OdiN&dg3^SUO-ktQ&Ds_U6?N-^jR-n&;gFeOs7y&@u zh1EM&P>EfL-c{LZ9yAUWLFYjl6@2vvMh}s+MCPB!ANHxMVCk1A6{=zuFj%ih?=Ym3 zWJV{y=S+GN*ox#nl#ZAZtuaaNV{9YfV6K7~;-D>$$0u{aVPB!P-9dO{3iTR2K;e-a zgguuE$@8+#03I!{_X;YoebLgrtvzOrd!|=uvt=zk&hq6OHn4N;>Oo-na3u2i$VCR1 z4y~mR*{evYdJ_>p@@m|OHw@qd6_?|rLd2udvV5tH1&tPRmq5>T9&NSGpLehAWqW0^<|b0TC^nMYDK6^ZOC zm&2$jnk;|^`!}vqv#YR^@k{&1!EBX$33>z+u>JGaU;8I4FdaM(l1Yq{Lq$ADeSwCD zE7{#aabv4!A&h|rqouPst|*QH`#~$Z8r{2>^H>J>3?^HfIe`TIliB+HsO7+9YuNSE z+~5yNb5|HPD=A1hR)Sdv)41d-tOgd*u0*6sIUELlzTO6+t7ND|Ma^pEW7E}+70i0Y zQsgkBu%C_lr+UvBVMcCdSxsr#1Z$9ItzMh-++)yiAm2Pl>6Jf;l%Fwr4;eoPTy4#8 zHby(v3G6@W`f_#Spuk|iAr6lu9!nU|E1ySnB1t}~!vo4FZM7zST-1v6-B=DefzvoN z6hRgtuMPsR;{Y9ImnilBEv+Zh*n;Ul%Cx}rDv^ASEz3p|K9(Y5f1_992vbU)H~L@< ziQtf(-q0rgnP`|I*#IN}#^~n#v1i^l!1mDy z5-OqdS4{}}wd6`Cem4AhtfBG}LKz+F8e||=9E`RpsvqPZ6 Date: Wed, 28 Oct 2026 16:05:22 +0000 Subject: [PATCH 03/12] feat: create strengths and services --- src/content.config.ts | 23 +++++++++++++++++++ src/content/services/consulting.de.md | 4 ++++ src/content/services/consulting.en.md | 4 ++++ src/content/services/education.de.md | 4 ++++ src/content/services/education.en.md | 4 ++++ .../services/software-development.de.md | 4 ++++ .../services/software-development.en.md | 4 ++++ .../strengths/calendaring-solutions.de.md | 5 ++++ .../strengths/calendaring-solutions.en.md | 5 ++++ src/content/strengths/code-reviews.de.md | 5 ++++ src/content/strengths/code-reviews.en.md | 5 ++++ src/content/strengths/courses.de.md | 5 ++++ src/content/strengths/courses.en.md | 5 ++++ src/content/strengths/custom-apis.de.md | 5 ++++ src/content/strengths/custom-apis.en.md | 5 ++++ .../strengths/devops-and-hosting.de.md | 5 ++++ .../strengths/devops-and-hosting.en.md | 5 ++++ .../identity-and-access-management.de.md | 5 ++++ .../identity-and-access-management.en.md | 5 ++++ .../strengths/mobile-applications.de.md | 5 ++++ .../strengths/mobile-applications.en.md | 5 ++++ src/content/strengths/presentations.de.md | 5 ++++ src/content/strengths/presentations.en.md | 5 ++++ .../strengths/system-architecture.de.md | 5 ++++ .../strengths/system-architecture.en.md | 5 ++++ .../strengths/technical-strategy.de.md | 5 ++++ .../strengths/technical-strategy.en.md | 5 ++++ src/content/strengths/web-applications.de.md | 5 ++++ src/content/strengths/web-applications.en.md | 5 ++++ src/content/strengths/workshops.de.md | 5 ++++ src/content/strengths/workshops.en.md | 5 ++++ 31 files changed, 167 insertions(+) create mode 100644 src/content/services/consulting.de.md create mode 100644 src/content/services/consulting.en.md create mode 100644 src/content/services/education.de.md create mode 100644 src/content/services/education.en.md create mode 100644 src/content/services/software-development.de.md create mode 100644 src/content/services/software-development.en.md create mode 100644 src/content/strengths/calendaring-solutions.de.md create mode 100644 src/content/strengths/calendaring-solutions.en.md create mode 100644 src/content/strengths/code-reviews.de.md create mode 100644 src/content/strengths/code-reviews.en.md create mode 100644 src/content/strengths/courses.de.md create mode 100644 src/content/strengths/courses.en.md create mode 100644 src/content/strengths/custom-apis.de.md create mode 100644 src/content/strengths/custom-apis.en.md create mode 100644 src/content/strengths/devops-and-hosting.de.md create mode 100644 src/content/strengths/devops-and-hosting.en.md create mode 100644 src/content/strengths/identity-and-access-management.de.md create mode 100644 src/content/strengths/identity-and-access-management.en.md create mode 100644 src/content/strengths/mobile-applications.de.md create mode 100644 src/content/strengths/mobile-applications.en.md create mode 100644 src/content/strengths/presentations.de.md create mode 100644 src/content/strengths/presentations.en.md create mode 100644 src/content/strengths/system-architecture.de.md create mode 100644 src/content/strengths/system-architecture.en.md create mode 100644 src/content/strengths/technical-strategy.de.md create mode 100644 src/content/strengths/technical-strategy.en.md create mode 100644 src/content/strengths/web-applications.de.md create mode 100644 src/content/strengths/web-applications.en.md create mode 100644 src/content/strengths/workshops.de.md create mode 100644 src/content/strengths/workshops.en.md diff --git a/src/content.config.ts b/src/content.config.ts index 0b411a8c..ba8ce77b 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -151,6 +151,27 @@ const sections = defineCollection({ schema: z.object({}), }); +const services = defineCollection({ + loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/services' }), + schema: extendI18nLoaderSchema( + z.object({ + serviceName: z.string(), + sprite: z.string(), + }), + ), +}); + +const strengths = defineCollection({ + loader: i18nLoader({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/strengths' }), + schema: extendI18nLoaderSchema( + z.object({ + strengthName: z.string(), + sprite: z.string(), + service: i18nReference('services'), + }), + ), +}); + const team = defineCollection({ loader: i18nFileLoader('./src/content/team/index.yaml'), schema: ({ image }) => @@ -186,6 +207,8 @@ export const collections = { referenceCompanies, referenceProjects, sections, + services, + strengths, team, technologies, }; diff --git a/src/content/services/consulting.de.md b/src/content/services/consulting.de.md new file mode 100644 index 00000000..f9b0f913 --- /dev/null +++ b/src/content/services/consulting.de.md @@ -0,0 +1,4 @@ +--- +serviceName: Beratung +sprite: consulting +--- diff --git a/src/content/services/consulting.en.md b/src/content/services/consulting.en.md new file mode 100644 index 00000000..2e09c83d --- /dev/null +++ b/src/content/services/consulting.en.md @@ -0,0 +1,4 @@ +--- +serviceName: Consulting +sprite: consulting +--- diff --git a/src/content/services/education.de.md b/src/content/services/education.de.md new file mode 100644 index 00000000..5ecfedb6 --- /dev/null +++ b/src/content/services/education.de.md @@ -0,0 +1,4 @@ +--- +serviceName: Bildung +sprite: education +--- diff --git a/src/content/services/education.en.md b/src/content/services/education.en.md new file mode 100644 index 00000000..abab76d1 --- /dev/null +++ b/src/content/services/education.en.md @@ -0,0 +1,4 @@ +--- +serviceName: Education +sprite: education +--- diff --git a/src/content/services/software-development.de.md b/src/content/services/software-development.de.md new file mode 100644 index 00000000..42ba5562 --- /dev/null +++ b/src/content/services/software-development.de.md @@ -0,0 +1,4 @@ +--- +serviceName: Softwareentwicklung +sprite: software-development +--- diff --git a/src/content/services/software-development.en.md b/src/content/services/software-development.en.md new file mode 100644 index 00000000..fb4fa326 --- /dev/null +++ b/src/content/services/software-development.en.md @@ -0,0 +1,4 @@ +--- +serviceName: Software development +sprite: software-development +--- diff --git a/src/content/strengths/calendaring-solutions.de.md b/src/content/strengths/calendaring-solutions.de.md new file mode 100644 index 00000000..aef58076 --- /dev/null +++ b/src/content/strengths/calendaring-solutions.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Kalenderlösungen +sprite: calendar +service: software-development +--- diff --git a/src/content/strengths/calendaring-solutions.en.md b/src/content/strengths/calendaring-solutions.en.md new file mode 100644 index 00000000..f8dfde51 --- /dev/null +++ b/src/content/strengths/calendaring-solutions.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Calendaring solutions +sprite: calendar +service: software-development +--- diff --git a/src/content/strengths/code-reviews.de.md b/src/content/strengths/code-reviews.de.md new file mode 100644 index 00000000..da421499 --- /dev/null +++ b/src/content/strengths/code-reviews.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Code-Reviews +sprite: review +service: consulting +--- diff --git a/src/content/strengths/code-reviews.en.md b/src/content/strengths/code-reviews.en.md new file mode 100644 index 00000000..43355edc --- /dev/null +++ b/src/content/strengths/code-reviews.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Code reviews +sprite: review +service: consulting +--- diff --git a/src/content/strengths/courses.de.md b/src/content/strengths/courses.de.md new file mode 100644 index 00000000..378ab39b --- /dev/null +++ b/src/content/strengths/courses.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Kurse +sprite: course +service: education +--- diff --git a/src/content/strengths/courses.en.md b/src/content/strengths/courses.en.md new file mode 100644 index 00000000..3b575889 --- /dev/null +++ b/src/content/strengths/courses.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Courses +sprite: course +service: education +--- diff --git a/src/content/strengths/custom-apis.de.md b/src/content/strengths/custom-apis.de.md new file mode 100644 index 00000000..32b4fa43 --- /dev/null +++ b/src/content/strengths/custom-apis.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Individuelle APIs +sprite: api +service: software-development +--- diff --git a/src/content/strengths/custom-apis.en.md b/src/content/strengths/custom-apis.en.md new file mode 100644 index 00000000..1acf0c4e --- /dev/null +++ b/src/content/strengths/custom-apis.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Custom APIs +sprite: api +service: software-development +--- diff --git a/src/content/strengths/devops-and-hosting.de.md b/src/content/strengths/devops-and-hosting.de.md new file mode 100644 index 00000000..5207c35b --- /dev/null +++ b/src/content/strengths/devops-and-hosting.de.md @@ -0,0 +1,5 @@ +--- +strengthName: DevOps- und Hosting-Lösungen +sprite: server +service: software-development +--- diff --git a/src/content/strengths/devops-and-hosting.en.md b/src/content/strengths/devops-and-hosting.en.md new file mode 100644 index 00000000..92784dcc --- /dev/null +++ b/src/content/strengths/devops-and-hosting.en.md @@ -0,0 +1,5 @@ +--- +strengthName: DevOps and hosting solutions +sprite: server +service: software-development +--- diff --git a/src/content/strengths/identity-and-access-management.de.md b/src/content/strengths/identity-and-access-management.de.md new file mode 100644 index 00000000..fb5b5871 --- /dev/null +++ b/src/content/strengths/identity-and-access-management.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Identity- und Access-Management-Systeme +sprite: iam +service: software-development +--- diff --git a/src/content/strengths/identity-and-access-management.en.md b/src/content/strengths/identity-and-access-management.en.md new file mode 100644 index 00000000..da9782ed --- /dev/null +++ b/src/content/strengths/identity-and-access-management.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Identity and access management systems +sprite: iam +service: software-development +--- diff --git a/src/content/strengths/mobile-applications.de.md b/src/content/strengths/mobile-applications.de.md new file mode 100644 index 00000000..fe5d32f4 --- /dev/null +++ b/src/content/strengths/mobile-applications.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Mobile Anwendungen +sprite: mobile +service: software-development +--- diff --git a/src/content/strengths/mobile-applications.en.md b/src/content/strengths/mobile-applications.en.md new file mode 100644 index 00000000..c2da4160 --- /dev/null +++ b/src/content/strengths/mobile-applications.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Mobile applications +sprite: mobile +service: software-development +--- diff --git a/src/content/strengths/presentations.de.md b/src/content/strengths/presentations.de.md new file mode 100644 index 00000000..92558a12 --- /dev/null +++ b/src/content/strengths/presentations.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Präsentationen +sprite: presentation +service: education +--- diff --git a/src/content/strengths/presentations.en.md b/src/content/strengths/presentations.en.md new file mode 100644 index 00000000..f19c5e55 --- /dev/null +++ b/src/content/strengths/presentations.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Presentations +sprite: presentation +service: education +--- diff --git a/src/content/strengths/system-architecture.de.md b/src/content/strengths/system-architecture.de.md new file mode 100644 index 00000000..7adb507e --- /dev/null +++ b/src/content/strengths/system-architecture.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Systemarchitektur +sprite: architecture +service: consulting +--- diff --git a/src/content/strengths/system-architecture.en.md b/src/content/strengths/system-architecture.en.md new file mode 100644 index 00000000..722300a0 --- /dev/null +++ b/src/content/strengths/system-architecture.en.md @@ -0,0 +1,5 @@ +--- +strengthName: System architecture +sprite: architecture +service: consulting +--- diff --git a/src/content/strengths/technical-strategy.de.md b/src/content/strengths/technical-strategy.de.md new file mode 100644 index 00000000..4d15a696 --- /dev/null +++ b/src/content/strengths/technical-strategy.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Technische Strategie +sprite: strategy +service: consulting +--- diff --git a/src/content/strengths/technical-strategy.en.md b/src/content/strengths/technical-strategy.en.md new file mode 100644 index 00000000..02a6123f --- /dev/null +++ b/src/content/strengths/technical-strategy.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Technical strategy +sprite: strategy +service: consulting +--- diff --git a/src/content/strengths/web-applications.de.md b/src/content/strengths/web-applications.de.md new file mode 100644 index 00000000..ff94550b --- /dev/null +++ b/src/content/strengths/web-applications.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Webanwendungen +sprite: web +service: software-development +--- diff --git a/src/content/strengths/web-applications.en.md b/src/content/strengths/web-applications.en.md new file mode 100644 index 00000000..d22ee102 --- /dev/null +++ b/src/content/strengths/web-applications.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Web applications +sprite: web +service: software-development +--- diff --git a/src/content/strengths/workshops.de.md b/src/content/strengths/workshops.de.md new file mode 100644 index 00000000..6b25673e --- /dev/null +++ b/src/content/strengths/workshops.de.md @@ -0,0 +1,5 @@ +--- +strengthName: Workshops +sprite: workshop +service: education +--- diff --git a/src/content/strengths/workshops.en.md b/src/content/strengths/workshops.en.md new file mode 100644 index 00000000..6b25673e --- /dev/null +++ b/src/content/strengths/workshops.en.md @@ -0,0 +1,5 @@ +--- +strengthName: Workshops +sprite: workshop +service: education +--- From 549ba8f1f10662e1c0492273dbc16b704cf6d6bf Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 3 Nov 2026 19:43:52 +0000 Subject: [PATCH 04/12] chore: refactor project name --- src/content.config.ts | 4 ++-- src/content/products/timelet.de.mdx | 2 +- src/content/products/timelet.en.mdx | 2 +- src/content/references/projects/certification.de.mdx | 2 +- src/content/references/projects/certification.en.mdx | 2 +- src/content/references/projects/vialibera.de.mdx | 2 +- src/content/references/projects/vialibera.en.mdx | 2 +- src/layouts/sections/FeaturedSection.astro | 2 +- src/layouts/sections/ReferencesSection.astro | 8 ++++---- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/content.config.ts b/src/content.config.ts index ba8ce77b..3be8683f 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -88,7 +88,7 @@ const products = defineCollection({ schema: ({ image }) => extendI18nLoaderSchema( z.object({ - softwareName: z.string(), + projectName: z.string(), title: z.string(), summary: z.string(), logo: image(), @@ -135,7 +135,7 @@ const referenceProjects = defineCollection({ schema: ({ image }) => extendI18nLoaderSchema( z.object({ - softwareName: z.string(), + projectName: z.string(), title: z.string(), summary: z.string(), logo: image(), diff --git a/src/content/products/timelet.de.mdx b/src/content/products/timelet.de.mdx index 1e60fc84..beee20b1 100644 --- a/src/content/products/timelet.de.mdx +++ b/src/content/products/timelet.de.mdx @@ -1,5 +1,5 @@ --- -softwareName: Timelet +projectName: Timelet title: Minimales Open-Source Zeiterfassungstool logo: ./timelet.svg summary: Dieses Produkt ist ein minimalistisches, einfach zu bedienendes Open-Source-Tool zur effizienten Zeiterfassung. Da es völlig kostenlos ist, bietet es jedem die Möglichkeit, sein Zeitmanagement professionell zu gestalten. diff --git a/src/content/products/timelet.en.mdx b/src/content/products/timelet.en.mdx index 02e1a01a..77867c66 100644 --- a/src/content/products/timelet.en.mdx +++ b/src/content/products/timelet.en.mdx @@ -1,5 +1,5 @@ --- -softwareName: Timelet +projectName: Timelet title: Minimal opensource time tracking tool logo: ./timelet.svg summary: This product is a minimalist, easy-to-use, opensource tool to track time efficiently. By it being completely free to use it gives everyone the change to handle their time management professionally. diff --git a/src/content/references/projects/certification.de.mdx b/src/content/references/projects/certification.de.mdx index a195fda8..9223e8b1 100644 --- a/src/content/references/projects/certification.de.mdx +++ b/src/content/references/projects/certification.de.mdx @@ -1,5 +1,5 @@ --- -softwareName: Zertifizierungstool +projectName: Zertifizierungstool title: Unbeaufsichtigtes Online-Zertifizierungstool für eine internationale Organisation logo: ./certification.svg summary: Mit diesem Tool können Sie Ihren Zertifizierungsprozess organisieren. Es ermöglicht Personen periodisch zur Zertifizierung einzuladen, es führt den Zertifizierungsprozess durch und übergibt Ihnen nach erfolgreicher Zertifizierung schön formatierte PDF-Dokumente. diff --git a/src/content/references/projects/certification.en.mdx b/src/content/references/projects/certification.en.mdx index 0c770476..6a64c065 100644 --- a/src/content/references/projects/certification.en.mdx +++ b/src/content/references/projects/certification.en.mdx @@ -1,5 +1,5 @@ --- -softwareName: Certification Tool +projectName: Certification Tool title: Unattended online certification tool for an international organization logo: ./certification.svg summary: With this tool you can organize your certification process. It lets you invite people periodically to get certified, runs the certification process and hands you nicely designed PDF documents upon successful certification. diff --git a/src/content/references/projects/vialibera.de.mdx b/src/content/references/projects/vialibera.de.mdx index 30442b2d..e0bca83e 100644 --- a/src/content/references/projects/vialibera.de.mdx +++ b/src/content/references/projects/vialibera.de.mdx @@ -1,5 +1,5 @@ --- -softwareName: ViaLibera +projectName: ViaLibera title: Mobiles Protokollmanagement-Tool für eine Regierungsorganisation logo: ./vialibera.svg summary: Es handelt sich um eine progressive Webanwendung, die offlinefähig ist. Nachdem das Gerät, auf dem die Anwendung läuft, wieder online ist, werden die Daten synchronisiert. Es hilft dabei, den Strassenzustand zu protokollieren und daraus Statistiken zu erstellen. diff --git a/src/content/references/projects/vialibera.en.mdx b/src/content/references/projects/vialibera.en.mdx index 3187c4d0..5edc623e 100644 --- a/src/content/references/projects/vialibera.en.mdx +++ b/src/content/references/projects/vialibera.en.mdx @@ -1,5 +1,5 @@ --- -softwareName: ViaLibera +projectName: ViaLibera title: Mobile protocol management tool for a government organization logo: ./vialibera.svg summary: It's a progressive web application, which has offline capabilities. After the device which runs the application comes back online the data is synchronized. It helps you to log street condition and makes statistics out of it. diff --git a/src/layouts/sections/FeaturedSection.astro b/src/layouts/sections/FeaturedSection.astro index e72bc353..b7df355a 100644 --- a/src/layouts/sections/FeaturedSection.astro +++ b/src/layouts/sections/FeaturedSection.astro @@ -22,7 +22,7 @@ const projects = await getCollection(
{projects.map((p) => (
- {p.data.softwareName} + {p.data.projectName}

{p.data.title}

{p.data.summary}

diff --git a/src/layouts/sections/ReferencesSection.astro b/src/layouts/sections/ReferencesSection.astro index f186d5cd..4a5ce560 100644 --- a/src/layouts/sections/ReferencesSection.astro +++ b/src/layouts/sections/ReferencesSection.astro @@ -26,18 +26,18 @@ const projects = await Promise.all( {projects.map(({ id, data, Content }, i) => ( - +
- {data.softwareName} + {data.projectName}
- {data.softwareName} + {data.projectName}
{data.summary}
- {data.softwareName} + {data.projectName}
From 3e781fdf2d8bdf548901871abe928febceee92b7 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 11 Nov 2026 10:45:23 +0000 Subject: [PATCH 05/12] chore: remove reference companies ids --- src/content.config.ts | 1 - src/content/references/companies/astra.de.md | 1 - src/content/references/companies/astra.en.md | 1 - src/content/references/companies/dogli.de.md | 1 - src/content/references/companies/dogli.en.md | 1 - src/content/references/companies/haslerrail.de.md | 1 - src/content/references/companies/haslerrail.en.md | 1 - src/content/references/companies/hydrowatt.de.md | 1 - src/content/references/companies/hydrowatt.en.md | 1 - src/content/references/companies/schalthalle.de.md | 1 - src/content/references/companies/schalthalle.en.md | 1 - src/content/references/companies/sto.de.md | 1 - src/content/references/companies/sto.en.md | 1 - src/content/references/companies/uzh.de.md | 1 - src/content/references/companies/uzh.en.md | 1 - src/content/references/companies/wagner.de.md | 1 - src/content/references/companies/wagner.en.md | 1 - src/content/references/companies/wiegand.de.md | 1 - src/content/references/companies/wiegand.en.md | 1 - src/content/references/companies/yaver.de.md | 1 - src/content/references/companies/yaver.en.md | 1 - src/content/references/companies/zli.de.md | 1 - src/content/references/companies/zli.en.md | 1 - 23 files changed, 23 deletions(-) diff --git a/src/content.config.ts b/src/content.config.ts index 3be8683f..42a8797d 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -120,7 +120,6 @@ const referenceCompanies = defineCollection({ schema: ({ image }) => extendI18nLoaderSchema( z.object({ - id: z.string(), companyName: z.string(), logo: image(), url: z.url().optional(), diff --git a/src/content/references/companies/astra.de.md b/src/content/references/companies/astra.de.md index 0e5ce7c6..a33cfce1 100644 --- a/src/content/references/companies/astra.de.md +++ b/src/content/references/companies/astra.de.md @@ -1,5 +1,4 @@ --- -id: astra companyName: Bundesamt für Strassen ASTRA logo: ./astra.svg url: https://www.astra.admin.ch diff --git a/src/content/references/companies/astra.en.md b/src/content/references/companies/astra.en.md index 7fa05409..13293c0d 100644 --- a/src/content/references/companies/astra.en.md +++ b/src/content/references/companies/astra.en.md @@ -1,5 +1,4 @@ --- -id: astra companyName: Bundesamt für Strassen ASTRA logo: ./astra.svg url: https://www.astra.admin.ch diff --git a/src/content/references/companies/dogli.de.md b/src/content/references/companies/dogli.de.md index 53f23566..8b08f09e 100644 --- a/src/content/references/companies/dogli.de.md +++ b/src/content/references/companies/dogli.de.md @@ -1,5 +1,4 @@ --- -id: dogli companyName: DOGLi GmbH logo: ./dogli.svg url: https://dogli.app diff --git a/src/content/references/companies/dogli.en.md b/src/content/references/companies/dogli.en.md index 3ff72d2e..38175095 100644 --- a/src/content/references/companies/dogli.en.md +++ b/src/content/references/companies/dogli.en.md @@ -1,5 +1,4 @@ --- -id: dogli companyName: DOGLi GmbH logo: ./dogli.svg url: https://dogli.app diff --git a/src/content/references/companies/haslerrail.de.md b/src/content/references/companies/haslerrail.de.md index 365706c6..39e8e2ca 100644 --- a/src/content/references/companies/haslerrail.de.md +++ b/src/content/references/companies/haslerrail.de.md @@ -1,5 +1,4 @@ --- -id: haslerrail companyName: HaslerRail AG logo: ./haslerrail.svg url: https://www.haslerrail.com diff --git a/src/content/references/companies/haslerrail.en.md b/src/content/references/companies/haslerrail.en.md index 56198ee3..52d568b2 100644 --- a/src/content/references/companies/haslerrail.en.md +++ b/src/content/references/companies/haslerrail.en.md @@ -1,5 +1,4 @@ --- -id: haslerrail companyName: HaslerRail AG logo: ./haslerrail.svg url: https://www.haslerrail.com diff --git a/src/content/references/companies/hydrowatt.de.md b/src/content/references/companies/hydrowatt.de.md index 9c4cf5d3..d86553e5 100644 --- a/src/content/references/companies/hydrowatt.de.md +++ b/src/content/references/companies/hydrowatt.de.md @@ -1,5 +1,4 @@ --- -id: hydrowatt companyName: Hydrowatt AG logo: ./hydrowatt.svg url: https://www.hydrowatt.com diff --git a/src/content/references/companies/hydrowatt.en.md b/src/content/references/companies/hydrowatt.en.md index 4092ebb7..c58deeb4 100644 --- a/src/content/references/companies/hydrowatt.en.md +++ b/src/content/references/companies/hydrowatt.en.md @@ -1,5 +1,4 @@ --- -id: hydrowatt companyName: Hydrowatt AG logo: ./hydrowatt.svg url: https://www.hydrowatt.com diff --git a/src/content/references/companies/schalthalle.de.md b/src/content/references/companies/schalthalle.de.md index d35e1dfc..27bb673c 100644 --- a/src/content/references/companies/schalthalle.de.md +++ b/src/content/references/companies/schalthalle.de.md @@ -1,5 +1,4 @@ --- -id: schalthalle companyName: Verein Schalthalle logo: ./schalthalle.svg url: https://www.schalthalle.ch diff --git a/src/content/references/companies/schalthalle.en.md b/src/content/references/companies/schalthalle.en.md index d35e1dfc..27bb673c 100644 --- a/src/content/references/companies/schalthalle.en.md +++ b/src/content/references/companies/schalthalle.en.md @@ -1,5 +1,4 @@ --- -id: schalthalle companyName: Verein Schalthalle logo: ./schalthalle.svg url: https://www.schalthalle.ch diff --git a/src/content/references/companies/sto.de.md b/src/content/references/companies/sto.de.md index 00849aa0..df4afb07 100644 --- a/src/content/references/companies/sto.de.md +++ b/src/content/references/companies/sto.de.md @@ -1,5 +1,4 @@ --- -id: sto companyName: STO Innenausbau AG logo: ./sto.svg url: https://sto-innenausbau.ch diff --git a/src/content/references/companies/sto.en.md b/src/content/references/companies/sto.en.md index 00849aa0..df4afb07 100644 --- a/src/content/references/companies/sto.en.md +++ b/src/content/references/companies/sto.en.md @@ -1,5 +1,4 @@ --- -id: sto companyName: STO Innenausbau AG logo: ./sto.svg url: https://sto-innenausbau.ch diff --git a/src/content/references/companies/uzh.de.md b/src/content/references/companies/uzh.de.md index 4f0afd64..5695b01e 100644 --- a/src/content/references/companies/uzh.de.md +++ b/src/content/references/companies/uzh.de.md @@ -1,5 +1,4 @@ --- -id: uzh companyName: Universität Zürich logo: ./uzh.svg url: https://www.uzh.ch diff --git a/src/content/references/companies/uzh.en.md b/src/content/references/companies/uzh.en.md index bd51f2e5..5ab7a110 100644 --- a/src/content/references/companies/uzh.en.md +++ b/src/content/references/companies/uzh.en.md @@ -1,5 +1,4 @@ --- -id: uzh companyName: Universität Zürich logo: ./uzh.svg url: https://www.uzh.ch diff --git a/src/content/references/companies/wagner.de.md b/src/content/references/companies/wagner.de.md index b4904b29..79146105 100644 --- a/src/content/references/companies/wagner.de.md +++ b/src/content/references/companies/wagner.de.md @@ -1,5 +1,4 @@ --- -id: wagner companyName: Wagner Unternehmungen AG logo: ./wagner.svg url: https://wagner-rohbau.ch diff --git a/src/content/references/companies/wagner.en.md b/src/content/references/companies/wagner.en.md index 2546ba41..28ca3927 100644 --- a/src/content/references/companies/wagner.en.md +++ b/src/content/references/companies/wagner.en.md @@ -1,5 +1,4 @@ --- -id: wagner companyName: Wagner Unternehmungen AG logo: ./wagner.svg url: https://wagner-rohbau.ch diff --git a/src/content/references/companies/wiegand.de.md b/src/content/references/companies/wiegand.de.md index 1fc1e844..d2e131ba 100644 --- a/src/content/references/companies/wiegand.de.md +++ b/src/content/references/companies/wiegand.de.md @@ -1,5 +1,4 @@ --- -id: wiegand companyName: Wiegand AG logo: ./wiegand.png url: https://wiegand.ch diff --git a/src/content/references/companies/wiegand.en.md b/src/content/references/companies/wiegand.en.md index 1fc1e844..d2e131ba 100644 --- a/src/content/references/companies/wiegand.en.md +++ b/src/content/references/companies/wiegand.en.md @@ -1,5 +1,4 @@ --- -id: wiegand companyName: Wiegand AG logo: ./wiegand.png url: https://wiegand.ch diff --git a/src/content/references/companies/yaver.de.md b/src/content/references/companies/yaver.de.md index 1b95ec86..34fd932e 100644 --- a/src/content/references/companies/yaver.de.md +++ b/src/content/references/companies/yaver.de.md @@ -1,5 +1,4 @@ --- -id: yaver companyName: YAVER Infrastructure & Services GmbH logo: ./yaver.svg url: https://yaver.ch diff --git a/src/content/references/companies/yaver.en.md b/src/content/references/companies/yaver.en.md index 1b95ec86..34fd932e 100644 --- a/src/content/references/companies/yaver.en.md +++ b/src/content/references/companies/yaver.en.md @@ -1,5 +1,4 @@ --- -id: yaver companyName: YAVER Infrastructure & Services GmbH logo: ./yaver.svg url: https://yaver.ch diff --git a/src/content/references/companies/zli.de.md b/src/content/references/companies/zli.de.md index 69b55215..ff334809 100644 --- a/src/content/references/companies/zli.de.md +++ b/src/content/references/companies/zli.de.md @@ -1,5 +1,4 @@ --- -id: zli companyName: Zürcher Lehrbetriebsverband ICT logo: ./zli.svg url: https://zli.ch diff --git a/src/content/references/companies/zli.en.md b/src/content/references/companies/zli.en.md index f5c95ab1..3933a2c3 100644 --- a/src/content/references/companies/zli.en.md +++ b/src/content/references/companies/zli.en.md @@ -1,5 +1,4 @@ --- -id: zli companyName: Zürcher Lehrbetriebsverband ICT logo: ./zli.svg url: https://zli.ch From f79fcdb3228aaed25d051a70b077d79e3958a65c Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 11 Nov 2026 11:21:49 +0000 Subject: [PATCH 06/12] chore: refactor service section --- .devcontainer.json | 3 +- src/components/Tabs.astro | 5 +- src/components/TabsList.astro | 5 +- src/components/TabsPanel.astro | 5 +- src/components/TabsTab.astro | 5 +- src/content.config.ts | 2 + src/content/sections/de/Services.mdx | 118 ------------------ src/content/sections/en/Services.mdx | 118 ------------------ src/content/services/consulting.de.md | 2 + src/content/services/consulting.en.md | 2 + src/content/services/education.de.md | 2 + src/content/services/education.en.md | 2 + .../services/software-development.de.md | 2 + .../services/software-development.en.md | 2 + src/layouts/sections/ServicesSection.astro | 56 ++++++++- src/pages/[...locale]/index.astro | 4 +- src/translations/de.json | 3 + src/translations/en.json | 3 + 18 files changed, 89 insertions(+), 250 deletions(-) delete mode 100644 src/content/sections/de/Services.mdx delete mode 100644 src/content/sections/en/Services.mdx diff --git a/.devcontainer.json b/.devcontainer.json index 3bd91c5a..0d640be6 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -19,6 +19,7 @@ } }, "containerEnv": { - "ASTRO_TELEMETRY_DISABLED": "1" + "ASTRO_TELEMETRY_DISABLED": "1", + "ASTRO_DEV_BACKGROUND": "0" } } diff --git a/src/components/Tabs.astro b/src/components/Tabs.astro index 3af941f9..f057fcd3 100644 --- a/src/components/Tabs.astro +++ b/src/components/Tabs.astro @@ -1,4 +1,6 @@ --- +import type { HTMLAttributes } from 'astro/types'; + /** * Tabs Component * @@ -13,8 +15,7 @@ type Props = { /** * HTML attributes to spread on the tabs container */ - [key: string]: string | number | boolean | undefined; -}; +} & HTMLAttributes<'div'>; const { class: className, ...rest } = Astro.props; --- diff --git a/src/components/TabsList.astro b/src/components/TabsList.astro index f9d82ab5..5c8b4007 100644 --- a/src/components/TabsList.astro +++ b/src/components/TabsList.astro @@ -1,4 +1,6 @@ --- +import type { HTMLAttributes } from 'astro/types'; + /** * TabsList Component * @@ -13,8 +15,7 @@ type Props = { /** * HTML attributes to spread on the tabs list */ - [key: string]: string | number | boolean | undefined; -}; +} & HTMLAttributes<'div'>; const { class: className, ...rest } = Astro.props; --- diff --git a/src/components/TabsPanel.astro b/src/components/TabsPanel.astro index b09082cc..91eb6b64 100644 --- a/src/components/TabsPanel.astro +++ b/src/components/TabsPanel.astro @@ -1,4 +1,6 @@ --- +import type { HTMLAttributes } from 'astro/types'; + /** * TabsPanel Component * @@ -26,8 +28,7 @@ type Props = { /** * HTML attributes to spread on the panel */ - [key: string]: string | number | boolean | undefined; -}; +} & HTMLAttributes<'div'>; const { class: className, id, labelledby, selected = false, ...rest } = Astro.props; --- diff --git a/src/components/TabsTab.astro b/src/components/TabsTab.astro index 999ba27d..d9d49249 100644 --- a/src/components/TabsTab.astro +++ b/src/components/TabsTab.astro @@ -1,4 +1,6 @@ --- +import type { HTMLAttributes } from 'astro/types'; + /** * TabsTab Component * @@ -26,8 +28,7 @@ type Props = { /** * HTML attributes to spread on the tab */ - [key: string]: string | number | boolean | undefined; -}; +} & HTMLAttributes<'button'>; const { class: className, id, controls, selected = false, ...rest } = Astro.props; --- diff --git a/src/content.config.ts b/src/content.config.ts index 42a8797d..da7af149 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -156,6 +156,8 @@ const services = defineCollection({ z.object({ serviceName: z.string(), sprite: z.string(), + description: z.string(), + order: z.number().int().nonnegative(), }), ), }); diff --git a/src/content/sections/de/Services.mdx b/src/content/sections/de/Services.mdx deleted file mode 100644 index 5dfd17b7..00000000 --- a/src/content/sections/de/Services.mdx +++ /dev/null @@ -1,118 +0,0 @@ -import ServicesSection from '../../../layouts/sections/ServicesSection.astro'; -import Tabs from '../../../components/Tabs.astro'; -import TabsList from '../../../components/TabsList.astro'; -import TabsTab from '../../../components/TabsTab.astro'; -import TabsPanel from '../../../components/TabsPanel.astro'; -import Sprite from '../../../components/Sprite.astro'; - - - -

Was wir anbieten

- - - - - -

Softwareentwicklung

-
- - -

Bildung

-
- - -

Beratung

-
-
- - -

Wir entwickeln robuste Softwarelösungen, die auf unterschiedliche Bedürfnisse zugeschnitten sind.

- -
- -

Wir teilen unser Wissen, um Ihre Lernreise zu unterstützen.

- -
- -

Wir begleiten Sie mit praxisnahen Ratschlägen durch technische Herausforderungen.

- -
- -
- -
diff --git a/src/content/sections/en/Services.mdx b/src/content/sections/en/Services.mdx deleted file mode 100644 index 33e4f0ff..00000000 --- a/src/content/sections/en/Services.mdx +++ /dev/null @@ -1,118 +0,0 @@ -import ServicesSection from '../../../layouts/sections/ServicesSection.astro'; -import Tabs from '../../../components/Tabs.astro'; -import TabsList from '../../../components/TabsList.astro'; -import TabsTab from '../../../components/TabsTab.astro'; -import TabsPanel from '../../../components/TabsPanel.astro'; -import Sprite from '../../../components/Sprite.astro'; - - - -

What we offer

- - - - - -

Software development

-
- - -

Education

-
- - -

Consulting

-
-
- - -

We build robust software solutions tailored to diverse needs.

- -
- -

We share our expertise to empower your learning journey.

- -
- -

We guide you through technical challenges with practical advice.

- -
- -
- -
diff --git a/src/content/services/consulting.de.md b/src/content/services/consulting.de.md index f9b0f913..891797d6 100644 --- a/src/content/services/consulting.de.md +++ b/src/content/services/consulting.de.md @@ -1,4 +1,6 @@ --- serviceName: Beratung +description: Wir begleiten Sie mit praxisnahen Ratschlägen durch technische Herausforderungen. +order: 2 sprite: consulting --- diff --git a/src/content/services/consulting.en.md b/src/content/services/consulting.en.md index 2e09c83d..c4fbb0c3 100644 --- a/src/content/services/consulting.en.md +++ b/src/content/services/consulting.en.md @@ -1,4 +1,6 @@ --- serviceName: Consulting +description: We guide you through technical challenges with practical advice. +order: 2 sprite: consulting --- diff --git a/src/content/services/education.de.md b/src/content/services/education.de.md index 5ecfedb6..1b9442eb 100644 --- a/src/content/services/education.de.md +++ b/src/content/services/education.de.md @@ -1,4 +1,6 @@ --- serviceName: Bildung +description: Wir teilen unser Wissen, um Ihre Lernreise zu unterstützen. +order: 1 sprite: education --- diff --git a/src/content/services/education.en.md b/src/content/services/education.en.md index abab76d1..2c0718e0 100644 --- a/src/content/services/education.en.md +++ b/src/content/services/education.en.md @@ -1,4 +1,6 @@ --- serviceName: Education +description: We share our expertise to empower your learning journey. +order: 1 sprite: education --- diff --git a/src/content/services/software-development.de.md b/src/content/services/software-development.de.md index 42ba5562..d7eb0820 100644 --- a/src/content/services/software-development.de.md +++ b/src/content/services/software-development.de.md @@ -1,4 +1,6 @@ --- serviceName: Softwareentwicklung +description: Wir entwickeln robuste Softwarelösungen, die auf unterschiedliche Bedürfnisse zugeschnitten sind. +order: 0 sprite: software-development --- diff --git a/src/content/services/software-development.en.md b/src/content/services/software-development.en.md index fb4fa326..0ad94fba 100644 --- a/src/content/services/software-development.en.md +++ b/src/content/services/software-development.en.md @@ -1,4 +1,6 @@ --- serviceName: Software development +description: We build robust software solutions tailored to diverse needs. +order: 0 sprite: software-development --- diff --git a/src/layouts/sections/ServicesSection.astro b/src/layouts/sections/ServicesSection.astro index 8c0414da..398703bc 100644 --- a/src/layouts/sections/ServicesSection.astro +++ b/src/layouts/sections/ServicesSection.astro @@ -1,8 +1,60 @@ +--- +import { currentLocale, useI18n } from 'astro-nanostores-i18n:runtime'; +import { getCollection } from 'astro:content'; +import type { ComponentProps } from 'astro/types'; +import Tabs from '../../components/Tabs.astro'; +import TabsList from '../../components/TabsList.astro'; +import TabsTab from '../../components/TabsTab.astro'; +import TabsPanel from '../../components/TabsPanel.astro'; +import Sprite from '../../components/Sprite.astro'; + +type SpriteName = ComponentProps['name']; + +const locale = currentLocale.get(); +const translations = useI18n('services.section', { title: 'Was wir anbieten' }); +const services = await getCollection('services', (entry) => entry.data.locale === locale); +const strengths = await getCollection('strengths', (entry) => entry.data.locale === locale); +strengths.sort((first, second) => + first.data.strengthName.localeCompare(second.data.strengthName, locale), +); +const tabs = services + .sort((first, second) => first.data.order - second.data.order) + .map((service) => ({ + id: service.data.sprite === 'software-development' ? 'software' : service.data.sprite, + service: service.data, + strengths: strengths.filter((strength) => strength.data.service.id === service.id), + })); +--- +
- +

{translations.title}

- + + + {tabs.map(({ id, service }, index) => ( + + +

{service.serviceName}

+
+ ))} +
+ {tabs.map(({ id, service, strengths: serviceStrengths }, index) => ( + +

{service.description}

+ +
+ ))} +
+ + + + + + + + + + + + \ No newline at end of file From ad12f8df2c6ccaa8e6a8faaacf7a605812e31c86 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 17 Nov 2026 16:24:15 +0000 Subject: [PATCH 08/12] content: dogli reference --- AGENTS.md | 3 +- src/content.config.ts | 2 +- .../references/projects/docportal.de.mdx | 23 +++++ .../references/projects/docportal.en.mdx | 23 +++++ src/content/references/projects/dogli.de.mdx | 23 +++++ src/content/references/projects/dogli.en.mdx | 23 +++++ src/content/references/projects/dogli.svg | 90 +++++++++++++++++++ src/layouts/sections/FeaturedSection.astro | 6 +- src/layouts/sections/ReferencesSection.astro | 4 +- 9 files changed, 189 insertions(+), 8 deletions(-) create mode 100644 src/content/references/projects/docportal.de.mdx create mode 100644 src/content/references/projects/docportal.en.mdx create mode 100644 src/content/references/projects/dogli.de.mdx create mode 100644 src/content/references/projects/dogli.en.mdx create mode 100644 src/content/references/projects/dogli.svg diff --git a/AGENTS.md b/AGENTS.md index 1f2d9c41..93f95856 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,5 +2,4 @@ ## Verification -1. Run the checks with `pnpm run check`. -2. Fix formatting and linting issues with `pnpm run fix`. +1. Fix, format, and linting issues with `pnpm run fix && pnpm run check`. diff --git a/src/content.config.ts b/src/content.config.ts index da7af149..40f77ca6 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -137,7 +137,7 @@ const referenceProjects = defineCollection({ projectName: z.string(), title: z.string(), summary: z.string(), - logo: image(), + logo: image().optional(), path: z.url().optional(), featured: z.boolean().optional().default(false), company: i18nReference('referenceCompanies'), diff --git a/src/content/references/projects/docportal.de.mdx b/src/content/references/projects/docportal.de.mdx new file mode 100644 index 00000000..02abb3e8 --- /dev/null +++ b/src/content/references/projects/docportal.de.mdx @@ -0,0 +1,23 @@ +--- +projectName: DocPortal +title: Kommunikationsportal für ein kantonales Ausbildungszentrum +summary: Im Basislehrjahr unterstützt das Kommunikationsportal den Informationsaustausch zwischen Ausbildungszentrum, Lernenden und Ausbildnern. Es ermöglicht eine strukturierte Kommunikation, das Erfassen von Ausbildungsberichten und die Nachverfolgung von Ereignissen. +featured: false +company: zli +--- + +import { Image } from 'astro:assets'; +import image from './placeholder.png'; + +

+ Das Kommunikationsportal unterstützt die Lernenden und Ausbildner im Basislehrjahr. Es ermöglicht + eine strukturierte Kommunikation, das Erfassen von Ausbildungsberichten und die Nachverfolgung von + Ereignissen. +

+ +Kommunikationsportal diff --git a/src/content/references/projects/docportal.en.mdx b/src/content/references/projects/docportal.en.mdx new file mode 100644 index 00000000..2480e5f7 --- /dev/null +++ b/src/content/references/projects/docportal.en.mdx @@ -0,0 +1,23 @@ +--- +projectName: DocPortal +title: Communication portal for a cantonal training center +summary: During the foundational apprenticeship year, the communication portal supports information exchange between the training center, apprentices, and instructors. It enables structured communication, the recording of training reports, and the tracking of events. +featured: false +company: zli +--- + +import { Image } from 'astro:assets'; +import image from './placeholder.png'; + +

+ The communication portal supports apprentices and instructors during the foundational + apprenticeship year. It enables structured communication, the recording of training reports, and + the tracking of events. +

+ +Communication portal diff --git a/src/content/references/projects/dogli.de.mdx b/src/content/references/projects/dogli.de.mdx new file mode 100644 index 00000000..0333d564 --- /dev/null +++ b/src/content/references/projects/dogli.de.mdx @@ -0,0 +1,23 @@ +--- +projectName: DOGLi +title: Android und iOS App für Enrichment und Beschäftigung von Hunden +logo: ./dogli.svg +summary: Die DOGLi App bietet Zugang zu einer Vielzahl von Beschäftigungsideen für Hunde, sowie einen Austausch innerhalb der Community. +featured: true +company: dogli +--- + +import { Image } from 'astro:assets'; +import image from './placeholder.png'; + +

+ Die DOGLi App bietet Zugang zu einer Vielzahl von Beschäftigungsideen für Hunde, sowie einen + Austausch innerhalb der Community. +

+ +DOGLi App diff --git a/src/content/references/projects/dogli.en.mdx b/src/content/references/projects/dogli.en.mdx new file mode 100644 index 00000000..3b6a879c --- /dev/null +++ b/src/content/references/projects/dogli.en.mdx @@ -0,0 +1,23 @@ +--- +projectName: DOGLi +title: Android and iOS app for dog enrichment and activities +logo: ./dogli.svg +summary: The DOGLi app offers a wide range of activity ideas for dogs, along with a space to connect with the community. +featured: true +company: dogli +--- + +import { Image } from 'astro:assets'; +import image from './placeholder.png'; + +

+ The DOGLi app offers a wide range of activity ideas for dogs, along with a space to connect with + the community. +

+ +DOGLi app diff --git a/src/content/references/projects/dogli.svg b/src/content/references/projects/dogli.svg new file mode 100644 index 00000000..42529e11 --- /dev/null +++ b/src/content/references/projects/dogli.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/layouts/sections/FeaturedSection.astro b/src/layouts/sections/FeaturedSection.astro index b7df355a..4cebc0c1 100644 --- a/src/layouts/sections/FeaturedSection.astro +++ b/src/layouts/sections/FeaturedSection.astro @@ -22,7 +22,7 @@ const projects = await getCollection(
{projects.map((p) => (
- {p.data.projectName} + {p.data.logo && {p.data.projectName}}

{p.data.title}

{p.data.summary}

@@ -30,12 +30,12 @@ const projects = await getCollection(
From f703f7adcd4701a275690f04348483d2291e5aa4 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 21 Nov 2026 09:15:39 +0000 Subject: [PATCH 09/12] docs: add architecture --- docs/ARCHITECTURE.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/ARCHITECTURE.md diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md new file mode 100644 index 00000000..f6a09a90 --- /dev/null +++ b/docs/ARCHITECTURE.md @@ -0,0 +1,17 @@ +# Architecture + +## Folders + +- `src/`: Contains the source code of the project. + - `components/`: Contains reusable and atomic UI components. + - `content/`: Contains static content fitting the content collections defined in `content.config.ts`. + - `integrations/`: Contains integration code for external or additional services. + - `layouts/`: Contains unique, specific and non-reusable components. + - `groups/`: Contains non-content components that represent a specific common area of each page (e.g., header, footer, sidebar). + - `sections/`: Contains content layout components that represent specific sections of a layout. + - `templates/`: Contains content wrapping components that define the overall structure of a page or layout. + - `views/`: Contains page-level components that represent entire views or pages within the application. + - `pages/`: Contains the top-level page components that serve as entry points for different routes within the application. + - `translations/`: Contains translation files for user interface text and messages. + - `types/`: Contains TypeScript type definitions used throughout the project. + - `utils/`: Contains utility functions and helper modules used throughout the project. From 11b746d255f2829f6ec31c9dd35749856d421c75 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 21 Nov 2026 17:25:00 +0000 Subject: [PATCH 10/12] feat: services page --- docs/ARCHITECTURE.md | 8 +++--- src/content/pages/de/future/services.mdx | 4 +++ src/content/pages/en/future/services.mdx | 4 +++ src/layouts/views/ServicesView.astro | 34 ++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 src/layouts/views/ServicesView.astro diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index f6a09a90..205c4cc4 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -7,10 +7,10 @@ - `content/`: Contains static content fitting the content collections defined in `content.config.ts`. - `integrations/`: Contains integration code for external or additional services. - `layouts/`: Contains unique, specific and non-reusable components. - - `groups/`: Contains non-content components that represent a specific common area of each page (e.g., header, footer, sidebar). - - `sections/`: Contains content layout components that represent specific sections of a layout. - - `templates/`: Contains content wrapping components that define the overall structure of a page or layout. - - `views/`: Contains page-level components that represent entire views or pages within the application. + - `groups/`: Contains non-content components that represent a specific common area of each page (e.g., header, footer, sidebar). + - `sections/`: Contains content layout components that represent specific sections of a layout. + - `templates/`: Contains content wrapping components that define the overall structure of a page or layout. + - `views/`: Contains page-level components that represent entire views or pages within the application. - `pages/`: Contains the top-level page components that serve as entry points for different routes within the application. - `translations/`: Contains translation files for user interface text and messages. - `types/`: Contains TypeScript type definitions used throughout the project. diff --git a/src/content/pages/de/future/services.mdx b/src/content/pages/de/future/services.mdx index 0eeded4a..0b6cc513 100644 --- a/src/content/pages/de/future/services.mdx +++ b/src/content/pages/de/future/services.mdx @@ -2,3 +2,7 @@ path: dienstleistungen title: Dienstleistungen --- + +import ServicesView from '../../../../layouts/views/ServicesView.astro'; + + diff --git a/src/content/pages/en/future/services.mdx b/src/content/pages/en/future/services.mdx index 8fef532e..5f8dc563 100644 --- a/src/content/pages/en/future/services.mdx +++ b/src/content/pages/en/future/services.mdx @@ -2,3 +2,7 @@ path: services title: Services --- + +import ServicesView from '../../../../layouts/views/ServicesView.astro'; + + diff --git a/src/layouts/views/ServicesView.astro b/src/layouts/views/ServicesView.astro new file mode 100644 index 00000000..a71bb232 --- /dev/null +++ b/src/layouts/views/ServicesView.astro @@ -0,0 +1,34 @@ +--- +import { currentLocale } from 'astro-nanostores-i18n:runtime'; +import { getCollection, render } from 'astro:content'; +import Divider from '../../components/Divider.astro'; + +const locale = currentLocale.get(); +const services = await getCollection('services', (entry) => entry.data.locale === locale); +services.sort((first, second) => first.data.order - second.data.order); + +const sections = await Promise.all( + services.map(async (service) => { + const { Content } = await render(service); + return { data: service.data, Content }; + }), +); +--- + +{sections.map(({ data, Content }, index) => ( + <> + {index > 0 && ( + + )} +
+

{data.serviceName}

+

{data.description}

+ +
+ +))} From 844e4d5121027f6e6be18700c32480e630519cdc Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 21 Nov 2026 17:30:40 +0000 Subject: [PATCH 11/12] fix: set company id --- src/layouts/sections/CompaniesSection.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/sections/CompaniesSection.astro b/src/layouts/sections/CompaniesSection.astro index 845bb744..9802beeb 100644 --- a/src/layouts/sections/CompaniesSection.astro +++ b/src/layouts/sections/CompaniesSection.astro @@ -13,7 +13,7 @@ const companies = await getCollection(
{companies.map((c) => ( - +
{c.data.companyName} From a27766402e75ef09254b9af08d4af8a109c61dfa Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 21 Nov 2026 17:52:16 +0000 Subject: [PATCH 12/12] feat: strength page --- src/content.config.ts | 1 + src/content/pages/de/present/strengths.mdx | 4 + src/content/pages/en/present/strengths.mdx | 4 + .../references/projects/certification.de.mdx | 2 + .../references/projects/certification.en.mdx | 2 + .../references/projects/docportal.de.mdx | 2 + .../references/projects/docportal.en.mdx | 2 + src/content/references/projects/dogli.de.mdx | 2 + src/content/references/projects/dogli.en.mdx | 2 + .../references/projects/vialibera.de.mdx | 2 + .../references/projects/vialibera.en.mdx | 2 + src/layouts/sections/ServicesSection.astro | 4 +- src/layouts/views/ServicesView.astro | 6 +- src/layouts/views/StrengthsView.astro | 178 ++++++++++++++++++ src/translations/de.json | 3 + src/translations/en.json | 3 + src/utils/paths.ts | 4 + 17 files changed, 221 insertions(+), 2 deletions(-) create mode 100644 src/layouts/views/StrengthsView.astro diff --git a/src/content.config.ts b/src/content.config.ts index 40f77ca6..b0b9c79e 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -141,6 +141,7 @@ const referenceProjects = defineCollection({ path: z.url().optional(), featured: z.boolean().optional().default(false), company: i18nReference('referenceCompanies'), + strengths: z.array(i18nReference('strengths')).default([]), }), ), }); diff --git a/src/content/pages/de/present/strengths.mdx b/src/content/pages/de/present/strengths.mdx index 7418f873..95d5019c 100644 --- a/src/content/pages/de/present/strengths.mdx +++ b/src/content/pages/de/present/strengths.mdx @@ -2,3 +2,7 @@ path: staerken title: Stärken --- + +import StrengthsView from '../../../../layouts/views/StrengthsView.astro'; + + diff --git a/src/content/pages/en/present/strengths.mdx b/src/content/pages/en/present/strengths.mdx index deacaaf5..efe12690 100644 --- a/src/content/pages/en/present/strengths.mdx +++ b/src/content/pages/en/present/strengths.mdx @@ -2,3 +2,7 @@ path: strengths title: Strengths --- + +import StrengthsView from '../../../../layouts/views/StrengthsView.astro'; + + diff --git a/src/content/references/projects/certification.de.mdx b/src/content/references/projects/certification.de.mdx index 9223e8b1..95da4aae 100644 --- a/src/content/references/projects/certification.de.mdx +++ b/src/content/references/projects/certification.de.mdx @@ -5,6 +5,8 @@ logo: ./certification.svg summary: Mit diesem Tool können Sie Ihren Zertifizierungsprozess organisieren. Es ermöglicht Personen periodisch zur Zertifizierung einzuladen, es führt den Zertifizierungsprozess durch und übergibt Ihnen nach erfolgreicher Zertifizierung schön formatierte PDF-Dokumente. featured: true company: haslerrail +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/certification.en.mdx b/src/content/references/projects/certification.en.mdx index 6a64c065..79e353a0 100644 --- a/src/content/references/projects/certification.en.mdx +++ b/src/content/references/projects/certification.en.mdx @@ -5,6 +5,8 @@ logo: ./certification.svg summary: With this tool you can organize your certification process. It lets you invite people periodically to get certified, runs the certification process and hands you nicely designed PDF documents upon successful certification. featured: true company: haslerrail +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/docportal.de.mdx b/src/content/references/projects/docportal.de.mdx index 02abb3e8..84ee5039 100644 --- a/src/content/references/projects/docportal.de.mdx +++ b/src/content/references/projects/docportal.de.mdx @@ -4,6 +4,8 @@ title: Kommunikationsportal für ein kantonales Ausbildungszentrum summary: Im Basislehrjahr unterstützt das Kommunikationsportal den Informationsaustausch zwischen Ausbildungszentrum, Lernenden und Ausbildnern. Es ermöglicht eine strukturierte Kommunikation, das Erfassen von Ausbildungsberichten und die Nachverfolgung von Ereignissen. featured: false company: zli +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/docportal.en.mdx b/src/content/references/projects/docportal.en.mdx index 2480e5f7..32db59a1 100644 --- a/src/content/references/projects/docportal.en.mdx +++ b/src/content/references/projects/docportal.en.mdx @@ -4,6 +4,8 @@ title: Communication portal for a cantonal training center summary: During the foundational apprenticeship year, the communication portal supports information exchange between the training center, apprentices, and instructors. It enables structured communication, the recording of training reports, and the tracking of events. featured: false company: zli +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/dogli.de.mdx b/src/content/references/projects/dogli.de.mdx index 0333d564..16aadd50 100644 --- a/src/content/references/projects/dogli.de.mdx +++ b/src/content/references/projects/dogli.de.mdx @@ -5,6 +5,8 @@ logo: ./dogli.svg summary: Die DOGLi App bietet Zugang zu einer Vielzahl von Beschäftigungsideen für Hunde, sowie einen Austausch innerhalb der Community. featured: true company: dogli +strengths: + - mobile-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/dogli.en.mdx b/src/content/references/projects/dogli.en.mdx index 3b6a879c..48b8b2d8 100644 --- a/src/content/references/projects/dogli.en.mdx +++ b/src/content/references/projects/dogli.en.mdx @@ -5,6 +5,8 @@ logo: ./dogli.svg summary: The DOGLi app offers a wide range of activity ideas for dogs, along with a space to connect with the community. featured: true company: dogli +strengths: + - mobile-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/vialibera.de.mdx b/src/content/references/projects/vialibera.de.mdx index e0bca83e..a76ebb46 100644 --- a/src/content/references/projects/vialibera.de.mdx +++ b/src/content/references/projects/vialibera.de.mdx @@ -5,6 +5,8 @@ logo: ./vialibera.svg summary: Es handelt sich um eine progressive Webanwendung, die offlinefähig ist. Nachdem das Gerät, auf dem die Anwendung läuft, wieder online ist, werden die Daten synchronisiert. Es hilft dabei, den Strassenzustand zu protokollieren und daraus Statistiken zu erstellen. featured: true company: astra +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/content/references/projects/vialibera.en.mdx b/src/content/references/projects/vialibera.en.mdx index 5edc623e..e10a0e5f 100644 --- a/src/content/references/projects/vialibera.en.mdx +++ b/src/content/references/projects/vialibera.en.mdx @@ -5,6 +5,8 @@ logo: ./vialibera.svg summary: It's a progressive web application, which has offline capabilities. After the device which runs the application comes back online the data is synchronized. It helps you to log street condition and makes statistics out of it. featured: true company: astra +strengths: + - web-applications --- import { Image } from 'astro:assets'; diff --git a/src/layouts/sections/ServicesSection.astro b/src/layouts/sections/ServicesSection.astro index 398703bc..d596947e 100644 --- a/src/layouts/sections/ServicesSection.astro +++ b/src/layouts/sections/ServicesSection.astro @@ -7,6 +7,7 @@ import TabsList from '../../components/TabsList.astro'; import TabsTab from '../../components/TabsTab.astro'; import TabsPanel from '../../components/TabsPanel.astro'; import Sprite from '../../components/Sprite.astro'; +import { getContentAnchor, resolveSimplePath } from '../../utils/paths'; type SpriteName = ComponentProps['name']; @@ -14,6 +15,7 @@ const locale = currentLocale.get(); const translations = useI18n('services.section', { title: 'Was wir anbieten' }); const services = await getCollection('services', (entry) => entry.data.locale === locale); const strengths = await getCollection('strengths', (entry) => entry.data.locale === locale); +const strengthsPath = await resolveSimplePath('main', '/present/strengths', locale); strengths.sort((first, second) => first.data.strengthName.localeCompare(second.data.strengthName, locale), ); @@ -45,7 +47,7 @@ const tabs = services
    {serviceStrengths.map(({ data: strength }) => (
  • - +

    {strength.strengthName}

    diff --git a/src/layouts/views/ServicesView.astro b/src/layouts/views/ServicesView.astro index a71bb232..63317cff 100644 --- a/src/layouts/views/ServicesView.astro +++ b/src/layouts/views/ServicesView.astro @@ -2,6 +2,7 @@ import { currentLocale } from 'astro-nanostores-i18n:runtime'; import { getCollection, render } from 'astro:content'; import Divider from '../../components/Divider.astro'; +import { getContentAnchor } from '../../utils/paths'; const locale = currentLocale.get(); const services = await getCollection('services', (entry) => entry.data.locale === locale); @@ -25,7 +26,10 @@ const sections = await Promise.all( fixAntialiasingBottom={index % 2 === 1} /> )} -
    +

    {data.serviceName}

    {data.description}

    diff --git a/src/layouts/views/StrengthsView.astro b/src/layouts/views/StrengthsView.astro new file mode 100644 index 00000000..f9742fd8 --- /dev/null +++ b/src/layouts/views/StrengthsView.astro @@ -0,0 +1,178 @@ +--- +import { currentLocale, useI18n } from 'astro-nanostores-i18n:runtime'; +import { getCollection, render } from 'astro:content'; +import type { ComponentProps } from 'astro/types'; +import Button from '../../components/Button.astro'; +import Divider from '../../components/Divider.astro'; +import Sprite from '../../components/Sprite.astro'; +import SpriteData from '../../../res/sprite/sprite.json'; +import { getContentAnchor, resolveSimplePath } from '../../utils/paths'; + +type SpriteName = ComponentProps['name']; + +const isSpriteName = (name: string): name is SpriteName => Object.hasOwn(SpriteData, name); + +const locale = currentLocale.get(); +const translations = useI18n('strengths.view', { + references: 'Passende Referenzen', +}); +const [services, strengths, projects, servicesPath, referencesPath] = await Promise.all([ + getCollection('services', (entry) => entry.data.locale === locale), + getCollection('strengths', (entry) => entry.data.locale === locale), + getCollection('referenceProjects', (entry) => entry.data.locale === locale), + resolveSimplePath('main', '/future/services', locale), + resolveSimplePath('main', '/past/references', locale), +]); + +services.sort((first, second) => first.data.order - second.data.order); +strengths.sort((first, second) => + first.data.strengthName.localeCompare(second.data.strengthName, locale), +); +projects.sort((first, second) => + first.data.projectName.localeCompare(second.data.projectName, locale), +); + +const serviceIds = new Set(services.map((service) => service.id)); +const strengthIds = new Set(strengths.map((strength) => strength.id)); + +for (const project of projects) { + for (const reference of project.data.strengths) { + if (reference.collection !== 'strengths' || !strengthIds.has(reference.id)) { + throw new Error(`Unknown strength ${reference.id} referenced by project ${project.id}`); + } + } +} + +const renderedStrengths = await Promise.all( + strengths.map(async (strength) => { + const { service, sprite } = strength.data; + if (service.collection !== 'services' || !serviceIds.has(service.id)) { + throw new Error(`Unknown service ${service.id} referenced by strength ${strength.id}`); + } + if (!isSpriteName(sprite)) { + throw new Error(`Unknown sprite ${sprite} for strength ${strength.id}`); + } + const { Content } = await render(strength); + return { + ...strength, + sprite, + Content, + relatedProjects: projects.filter((project) => + project.data.strengths.some((reference) => reference.id === strength.id), + ), + }; + }), +); + +const groups = services.map((service) => ({ + data: service.data, + strengths: renderedStrengths.filter((strength) => strength.data.service.id === service.id), +})); +--- + +{groups.map(({ data: service, strengths: serviceStrengths }, index) => ( + <> + {index > 0 && ( + + )} +
    +

    + +

    +
      + {serviceStrengths.map(({ data, sprite, Content, relatedProjects }) => ( +
    • +
      + +

      + {data.strengthName} +

      +
      + + {relatedProjects.length > 0 && ( +
      +

      {translations.references}

      + +
      + )} +
    • + ))} +
    +
    + +))} + + diff --git a/src/translations/de.json b/src/translations/de.json index c367537b..b7badfa9 100644 --- a/src/translations/de.json +++ b/src/translations/de.json @@ -2,6 +2,9 @@ "services.section": { "title": "Was wir anbieten" }, + "strengths.view": { + "references": "Passende Referenzen" + }, "accordion.item": { "more": "Mehr anzeigen", "less": "Weniger anzeigen" diff --git a/src/translations/en.json b/src/translations/en.json index 4d89bd9e..65c4b48b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2,6 +2,9 @@ "services.section": { "title": "What we offer" }, + "strengths.view": { + "references": "Related references" + }, "accordion.item": { "more": "Show more", "less": "Show less" diff --git a/src/utils/paths.ts b/src/utils/paths.ts index fbab59e6..65c9ec6c 100644 --- a/src/utils/paths.ts +++ b/src/utils/paths.ts @@ -7,10 +7,14 @@ import { C, localeSlugs, type Locale } from '../site.config'; import { getEntry, type CollectionKey, type DataEntryMap } from 'astro:content'; import type { ImageMetadata } from 'astro'; import { parseLocale } from './i18n'; +import { basename, extname } from 'node:path'; const PROTOCOL_DELIMITER = '://'; const ID_DELIMITER = '#'; +export const getContentAnchor = (translationId: string) => + basename(translationId, extname(translationId)); + export const defaultPropsAndParamsOptions = { defaultLocale: C.DEFAULT_LOCALE, segmentTranslations: C.SEGMENT_TRANSLATIONS,