diff --git a/.playwright-mcp/console-2026-02-16T10-46-48-597Z.log b/.playwright-mcp/console-2026-02-16T10-46-48-597Z.log new file mode 100644 index 0000000..b9974ca --- /dev/null +++ b/.playwright-mcp/console-2026-02-16T10-46-48-597Z.log @@ -0,0 +1,3 @@ +[ 189429ms] [ERROR] Failed to load resource: the server responded with a status of 404 (Not Found) @ http://localhost:3000/favicon.ico:0 +[ 194441ms] [WARNING] The resource http://localhost:3000/_next/static/chunks/%5Broot-of-the-server%5D__29ca5531._.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. @ http://localhost:3000/:0 +[ 201925ms] [WARNING] The resource http://localhost:3000/_next/static/chunks/%5Broot-of-the-server%5D__29ca5531._.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. @ http://localhost:3000/:0 diff --git a/.playwright-mcp/console-2026-02-16T14-58-43-548Z.log b/.playwright-mcp/console-2026-02-16T14-58-43-548Z.log new file mode 100644 index 0000000..9838124 --- /dev/null +++ b/.playwright-mcp/console-2026-02-16T14-58-43-548Z.log @@ -0,0 +1,12 @@ +[ 3464984ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3465988ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3466990ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3467993ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3468998ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3474002ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3479009ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3484016ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3489033ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3494089ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3499230ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 +[ 3504455ms] [ERROR] WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr?id=puJjKHXOKy35PaBsj2fmd' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED @ http://localhost:3000/_next/static/chunks/af9ea_next_dist_client_3d23be48._.js:10116 diff --git a/porwoll-hero-fixed.png b/porwoll-hero-fixed.png new file mode 100644 index 0000000..8e3ed44 Binary files /dev/null and b/porwoll-hero-fixed.png differ diff --git a/porwoll-hero-left-aligned.png b/porwoll-hero-left-aligned.png new file mode 100644 index 0000000..3d50834 Binary files /dev/null and b/porwoll-hero-left-aligned.png differ diff --git a/porwoll-hero-smaller.png b/porwoll-hero-smaller.png new file mode 100644 index 0000000..05e3722 Binary files /dev/null and b/porwoll-hero-smaller.png differ diff --git a/porwoll-hero-subline.png b/porwoll-hero-subline.png new file mode 100644 index 0000000..bfddb2b Binary files /dev/null and b/porwoll-hero-subline.png differ diff --git a/porwoll-hero-title.png b/porwoll-hero-title.png new file mode 100644 index 0000000..c082252 Binary files /dev/null and b/porwoll-hero-title.png differ diff --git a/porwoll-homepage-fixed.png b/porwoll-homepage-fixed.png new file mode 100644 index 0000000..e5fc53a Binary files /dev/null and b/porwoll-homepage-fixed.png differ diff --git a/porwoll-homepage.png b/porwoll-homepage.png new file mode 100644 index 0000000..6f0e6d5 Binary files /dev/null and b/porwoll-homepage.png differ diff --git a/src/components/blocks/CTABlock.tsx b/src/components/blocks/CTABlock.tsx index f3cce93..364f0be 100644 --- a/src/components/blocks/CTABlock.tsx +++ b/src/components/blocks/CTABlock.tsx @@ -3,48 +3,75 @@ import { motion } from 'framer-motion' import { Button } from '../ui/Button' +interface CTAButton { + text?: string + link?: string + style?: 'primary' | 'secondary' | 'outline' + id?: string +} + interface CTABlockProps { - block: Record + block: { + headline?: string + description?: string + buttons?: CTAButton[] + backgroundColor?: 'dark' | 'light' | 'accent' + } +} + +const bgStyles = { + dark: 'bg-dark', + light: 'bg-light', + accent: 'bg-accent', +} + +const buttonVariantMap = { + primary: 'default' as const, + secondary: 'ghost-light' as const, + outline: 'ghost-light' as const, } export function CTABlock({ block }: CTABlockProps) { - const title = (block.headline as string) || (block.title as string) || '' - const subtitle = (block.subheadline as string) || (block.subtitle as string) || '' - const backgroundMedia = block.backgroundImage as Record | undefined - const backgroundUrl = backgroundMedia?.url as string | undefined - const ctaLabel = (block.ctaLabel as string) || (block.buttonText as string) || 'Mehr erfahren' - const ctaLink = (block.ctaLink as string) || (block.buttonLink as string) || '#' + const { headline, description, buttons, backgroundColor = 'dark' } = block + const isDark = backgroundColor === 'dark' || backgroundColor === 'accent' return ( -
- {/* Overlay */} -
- - {/* Content */} +
-

- {title} -

- - {subtitle && ( -

{subtitle}

+ {headline && ( +

+ {headline} +

)} - + {description && ( +

+ {description} +

+ )} + + {buttons && buttons.length > 0 && ( +
+ {buttons.map((btn, index) => ( + + ))} +
+ )}
)