From c775f3bbb2b46ed5ae052b16c278ac92dbaae8dc Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Mon, 5 Jan 2026 22:23:38 +0100 Subject: [PATCH] =?UTF-8?q?Performance:=20Hero-Text=20sofort=20sichtbar=20?= =?UTF-8?q?f=C3=BCr=20bessere=20LCP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Framer-motion Animationen aus Hero-Text entfernt - Text-Elemente sind jetzt sofort sichtbar ohne opacity: 0 - Eliminiert 3.260ms Render-Verzögerung für LCP-Element - Kontrast verbessert: text-zinc-500 -> text-zinc-400 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/pages/home/components/Hero.tsx | 48 +++++++----------------------- tailwind.config.js | 9 ++++++ 2 files changed, 20 insertions(+), 37 deletions(-) diff --git a/src/pages/home/components/Hero.tsx b/src/pages/home/components/Hero.tsx index 47cf399..1776857 100644 --- a/src/pages/home/components/Hero.tsx +++ b/src/pages/home/components/Hero.tsx @@ -1,6 +1,5 @@ import { useTranslation } from 'react-i18next'; import { Github, Linkedin, Mail } from 'lucide-react'; -import { motion } from 'framer-motion'; const Hero = () => { const { t } = useTranslation(); @@ -92,47 +91,22 @@ const Hero = () => { - {/* Title and Name */} - + {/* Title and Name - sofort sichtbar für LCP (keine opacity Animation!) */} +

{t('pages.home.hero.title')} - - +

+

{t('pages.home.hero.name')}| - - +

+

{t('pages.home.hero.description')} - - +

+

{t('pages.home.hero.currentRole')} - +

{/* Navigation */} - +
- +
{/* Contact Button Bottom */} diff --git a/tailwind.config.js b/tailwind.config.js index 25c6767..fa01b18 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,6 +13,15 @@ module.exports = { fontFamily: { sans: ['Inter', 'system-ui', 'sans-serif'], }, + animation: { + 'slide-up': 'slideUp 0.5s ease-out forwards', + }, + keyframes: { + slideUp: { + '0%': { transform: 'translateY(10px)' }, + '100%': { transform: 'translateY(0)' }, + }, + }, colors: { border: "rgb(var(--border))", input: "rgb(var(--input))",