Mobile: SVG-Grafik, auf kleinen Screens sichtbar

- programmer-graphic.tsx: programmierer-vector.svg statt PNG (336 KB statt 1,6 MB)
- hero.tsx: hidden lg:block entfernt, Grafik jetzt auch auf Mobile sichtbar
- Mobile-Größe: max-w-xs/sm, Desktop: max-w-md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-04-25 19:30:19 +02:00
commit 28451452a2
2 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ export function Hero() {
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.8, delay: 0.3 }}
className="lg:col-span-5 hidden lg:block"
className="lg:col-span-5"
>
<ProgrammerGraphic />
</motion.div>

View file

@ -2,7 +2,7 @@
import { motion } from 'framer-motion'
import Image from 'next/image'
import programmiererImg from '../public/Programmierer.png'
import programmiererSvg from '../public/programmierer-vector.svg'
export function ProgrammerGraphic() {
return (
@ -10,10 +10,10 @@ export function ProgrammerGraphic() {
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.8 }}
className="relative w-full max-w-md mx-auto aspect-[3/5] lg:aspect-square"
className="relative w-full max-w-xs mx-auto aspect-[3/5] sm:max-w-sm lg:max-w-md lg:aspect-square"
>
<Image
src={programmiererImg}
src={programmiererSvg}
alt="Programmierung: Von 1976 bis heute 50 Jahre Code"
fill
className="object-contain drop-shadow-lg"