From 2eb10e45b77ec3c54e6a1c283cc798164a0d5332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20St=C3=BCckler?= Date: Mon, 26 Feb 2024 15:43:27 +0100 Subject: [PATCH] feat: internal links in tech stack section --- src/components/ServicesSection.tsx | 18 ++++++++++++++++-- src/components/TechStackItem.tsx | 5 +++-- src/content/config.ts | 1 + .../stack_consulting/paperless-ngx.json | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/components/ServicesSection.tsx b/src/components/ServicesSection.tsx index 8954269..83c7094 100644 --- a/src/components/ServicesSection.tsx +++ b/src/components/ServicesSection.tsx @@ -14,6 +14,7 @@ interface TechItem { image: string link: string order?: number + internal?: boolean } interface Props { @@ -76,7 +77,14 @@ const ServicesSection: React.FC = ({ consultingTechItems, developmentTech
{developmentTechItems?.map((item, i) => ( - + ))}
@@ -116,7 +124,13 @@ const ServicesSection: React.FC = ({ consultingTechItems, developmentTech
{consultingTechItems?.map((item, i) => ( - + ))}
diff --git a/src/components/TechStackItem.tsx b/src/components/TechStackItem.tsx index 92514da..0c572bc 100644 --- a/src/components/TechStackItem.tsx +++ b/src/components/TechStackItem.tsx @@ -3,12 +3,13 @@ interface Props { link: string image: string light?: boolean + internal?: boolean } -const TechStackItem: React.FC = ({ image, title, link, light }: Props) => ( +const TechStackItem: React.FC = ({ image, title, link, light, internal }: Props) => ( diff --git a/src/content/config.ts b/src/content/config.ts index 1df1fe6..0be1d74 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -6,6 +6,7 @@ const techStackCollection = defineCollection({ title: z.string(), image: z.string(), link: z.string(), + internal: z.boolean().optional(), order: z.number().optional(), }), }) diff --git a/src/content/stack_consulting/paperless-ngx.json b/src/content/stack_consulting/paperless-ngx.json index ac727ba..87ec3bf 100644 --- a/src/content/stack_consulting/paperless-ngx.json +++ b/src/content/stack_consulting/paperless-ngx.json @@ -1,6 +1,7 @@ { "title": "Paperless-ngx", "link": "/leistungen/paperless-ngx", + "internal": true, "order": 8, "image": "" }