"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, useTranslations } from "next-intl"; import type { JSONContent } from "@tiptap/react"; import RichTextClient from "./RichTextClient"; const Hero = () => { const locale = useLocale(); const t = useTranslations("home.hero"); 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: t("features.f1") }, { icon: Zap, text: t("features.f2") }, { icon: Rocket, text: t("features.f3") }, ]; 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 ? ( ) : (

{t("description")}

)}
{/* Features */} {features.map((feature, index) => ( {feature.text} ))} {/* CTA Buttons */} {t("ctaWork")} {t("ctaContact")}
); }; export default Hero;