From ec3f2cf8c915c9390a0137bf8b6624df6c1f3751 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 2 Mar 2026 01:11:22 +0100 Subject: [PATCH] =?UTF-8?q?style:=20design=20refinements=20=E2=80=94=20red?= =?UTF-8?q?uce=20title/heading=20sizes,=20remove=20Scribble=20decorations,?= =?UTF-8?q?=20add=20image=20quality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Hero title: text-7xl → text-5xl, removed text-shadow - Removed all Scribble decorative strokes from Hero, VideoSection, products page - PayloadRichText headings reduced by one size step - Team page: harmonized Michael/Klaus heading sizes (both text-4xl) - Product overview: removed min-height from hero, reduced CTA heading - Added quality={100} to team photos, Experience and MeetTheTeam backgrounds - Cleaned up unused Scribble imports --- app/[locale]/products/page.tsx | 13 +++---------- app/[locale]/team/page.tsx | 10 ++++++---- components/PayloadRichText.tsx | 26 +++++++++++++------------- components/home/Experience.tsx | 1 + components/home/Hero.tsx | 19 +++++-------------- components/home/MeetTheTeam.tsx | 1 + components/home/VideoSection.tsx | 11 ++--------- package.json | 2 +- 8 files changed, 32 insertions(+), 51 deletions(-) diff --git a/app/[locale]/products/page.tsx b/app/[locale]/products/page.tsx index f45f2a58..4ddbf094 100644 --- a/app/[locale]/products/page.tsx +++ b/app/[locale]/products/page.tsx @@ -1,5 +1,4 @@ import Reveal from '@/components/Reveal'; -import Scribble from '@/components/Scribble'; import { Badge, Button, Card, Container, Heading, Section } from '@/components/ui'; import { getTranslations, setRequestLocale } from 'next-intl/server'; import { Metadata } from 'next'; @@ -95,7 +94,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) { return (
{/* Hero Section */} -
+
{t.rich('title', { green: (chunks) => ( - - {chunks} - - + {chunks} ), })} @@ -223,7 +216,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) {
-

+

{t('cta.title')}

diff --git a/app/[locale]/team/page.tsx b/app/[locale]/team/page.tsx index 69ae418d..d97773f6 100644 --- a/app/[locale]/team/page.tsx +++ b/app/[locale]/team/page.tsx @@ -122,12 +122,12 @@ export default async function TeamPage({ params }: TeamPageProps) { {t('michael.role')} - + {t('michael.name')}

-

+

{t('michael.quote')}

@@ -156,6 +156,7 @@ export default async function TeamPage({ params }: TeamPageProps) { alt={t('michael.name')} fill className="object-cover scale-105 hover:scale-100 transition-transform duration-1000" + quality={100} sizes="(max-width: 1024px) 100vw, 50vw" />
@@ -225,6 +226,7 @@ export default async function TeamPage({ params }: TeamPageProps) { alt={t('klaus.name')} fill className="object-cover scale-105 hover:scale-100 transition-transform duration-1000" + quality={100} sizes="(max-width: 1024px) 100vw, 50vw" />
@@ -235,12 +237,12 @@ export default async function TeamPage({ params }: TeamPageProps) { {t('klaus.role')} - + {t('klaus.name')}
-

+

{t('klaus.quote')}

diff --git a/components/PayloadRichText.tsx b/components/PayloadRichText.tsx index d57eaaa4..10bab326 100644 --- a/components/PayloadRichText.tsx +++ b/components/PayloadRichText.tsx @@ -57,23 +57,23 @@ const jsxConverters: JSXConverters = { const textContent = node.children ? node.children.map((c: any) => c.text || '').join('') : ''; const id = textContent ? textContent - .toLowerCase() - .replace(/ä/g, 'ae') - .replace(/ö/g, 'oe') - .replace(/ü/g, 'ue') - .replace(/ß/g, 'ss') - .replace(/[*_`]/g, '') - .replace(/[^\w\s-]/g, '') - .replace(/\s+/g, '-') - .replace(/-+/g, '-') - .replace(/^-+|-+$/g, '') + .toLowerCase() + .replace(/ä/g, 'ae') + .replace(/ö/g, 'oe') + .replace(/ü/g, 'ue') + .replace(/ß/g, 'ss') + .replace(/[*_`]/g, '') + .replace(/[^\w\s-]/g, '') + .replace(/\s+/g, '-') + .replace(/-+/g, '-') + .replace(/^-+|-+$/g, '') : undefined; if (tag === 'h1') return (

{children}

@@ -82,7 +82,7 @@ const jsxConverters: JSXConverters = { return (

{children}

@@ -91,7 +91,7 @@ const jsxConverters: JSXConverters = { return (

{children}

diff --git a/components/home/Experience.tsx b/components/home/Experience.tsx index 58d17a69..4db9c584 100644 --- a/components/home/Experience.tsx +++ b/components/home/Experience.tsx @@ -15,6 +15,7 @@ export default function Experience({ data }: { data?: any }) { fill className="object-cover object-center scale-105 animate-slow-zoom" sizes="100vw" + quality={100} />
diff --git a/components/home/Hero.tsx b/components/home/Hero.tsx index a3408da5..d482328c 100644 --- a/components/home/Hero.tsx +++ b/components/home/Hero.tsx @@ -1,6 +1,5 @@ 'use client'; -import Scribble from '@/components/Scribble'; import { Button, Container, Heading, Section } from '@/components/ui'; import { useTranslations, useLocale } from 'next-intl'; import dynamic from 'next/dynamic'; @@ -20,7 +19,7 @@ export default function Hero({ data }: { data?: any }) {
{data?.title ? ( /g, - '', + '', ) .replace( /<\/green>/g, - '', + '', ), }} /> ) : ( t.rich('title', { green: (chunks) => ( - - - {chunks} - -
- -
+ + {chunks} ), }) diff --git a/components/home/MeetTheTeam.tsx b/components/home/MeetTheTeam.tsx index e0f16dd5..c1e5a71f 100644 --- a/components/home/MeetTheTeam.tsx +++ b/components/home/MeetTheTeam.tsx @@ -17,6 +17,7 @@ export default function MeetTheTeam({ data }: { data?: any }) { fill className="object-cover scale-105 animate-slow-zoom" sizes="100vw" + quality={100} />
diff --git a/components/home/VideoSection.tsx b/components/home/VideoSection.tsx index e8c74b82..34087bd8 100644 --- a/components/home/VideoSection.tsx +++ b/components/home/VideoSection.tsx @@ -1,7 +1,6 @@ 'use client'; import React, { useState, useEffect, useRef } from 'react'; -import Scribble from '@/components/Scribble'; import { useTranslations } from 'next-intl'; export default function VideoSection({ data }: { data?: any }) { @@ -41,17 +40,11 @@ export default function VideoSection({ data }: { data?: any }) {

{data?.title ? ( - /g, '').replace(/<\/future>/g, '') }} /> + /g, '').replace(/<\/future>/g, '') }} /> ) : ( t.rich('title', { future: (chunks) => ( - - {chunks} - - + {chunks} ), }) )} diff --git a/package.json b/package.json index 74d4728f..0248e91e 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.0.2", + "version": "2.2.11", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher",