"use client"; import { motion } from "framer-motion"; import { ArrowDown, Code, Zap, Rocket } from "lucide-react"; import Image from "next/image"; import { useEffect, useState } from "react"; import { useLocale } from "next-intl"; import type { JSONContent } from "@tiptap/react"; import RichTextClient from "./RichTextClient"; const Hero = () => { const locale = useLocale(); const [cmsDoc, setCmsDoc] = useState(null); useEffect(() => { (async () => { try { const res = await fetch( `/api/content/page?key=${encodeURIComponent("home-hero")}&locale=${encodeURIComponent(locale)}`, ); const data = await res.json(); if (data?.content?.content) { setCmsDoc(data.content.content as JSONContent); } } catch { // ignore; fallback to static } })(); }, [locale]); const features = [ { icon: Code, text: "Next.js & Flutter" }, { icon: Zap, text: "Docker Swarm & CI/CD" }, { icon: Rocket, text: "Self-Hosted Infrastructure" }, ]; return (
{/* Profile Image with Organic Blob Mask */}
{/* Large Rotating Liquid Blobs behind image - Very slow and smooth */} {/* The Image Container with Organic Border Radius */} Dennis Konkol {/* Glossy Overlay for Liquid Feel */}
{/* Inner Border/Highlight */}
{/* Domain Badge - repositioned below image */}
dk0.dev
{/* Floating Badges - subtle animations */}
{/* Main Title */}

Dennis Konkol

Software Engineer

{/* Description */} {cmsDoc ? ( ) : (

Student and passionate{" "} self-hoster {" "} building full-stack web apps and mobile solutions. I run my own{" "} infrastructure {" "} and love exploring{" "} DevOps .

)}
{/* Features */} {features.map((feature, index) => ( {feature.text} ))} {/* CTA Buttons */} View My Work Contact Me
); }; export default Hero;