feat: authentic Dennis-centric design with hero photo

Moved profile photo to Hero for immediate visibility. Rewrote DE/EN translations to be more personal and focused on self-hosting/student identity. Refined Bento grid for better content flow.
This commit is contained in:
2026-02-16 01:07:48 +01:00
parent cfd2f9f248
commit 9fd8c25dc6
4 changed files with 179 additions and 252 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { useState, useEffect } from "react";
import { Globe, Server, Wrench, Shield, Gamepad2, Code, Activity, Lightbulb, MapPin, User, BookOpen, ArrowRight } from "lucide-react";
import { Globe, Server, Wrench, Shield, Gamepad2, Code, Activity, Lightbulb, User, BookOpen } from "lucide-react";
import { useLocale, useTranslations } from "next-intl";
import type { JSONContent } from "@tiptap/react";
import RichTextClient from "./RichTextClient";
@@ -9,7 +9,6 @@ import CurrentlyReading from "./CurrentlyReading";
import ReadBooks from "./ReadBooks";
import { motion } from "framer-motion";
import { TechStackCategory, Hobby } from "@/lib/directus";
import Image from "next/image";
const iconMap: Record<string, any> = {
Globe, Server, Code, Wrench, Shield, Activity, Lightbulb, Gamepad2
@@ -50,112 +49,41 @@ const About = () => {
<section id="about" className="py-32 px-6 bg-[#fdfcf8] dark:bg-stone-950 transition-colors duration-500 overflow-hidden">
<div className="max-w-7xl mx-auto">
{/* --- STAGE 1: THE TITLE PAGE (BIO & PHOTO) --- */}
<div className="flex flex-col lg:flex-row gap-16 lg:gap-24 items-center mb-32">
{/* Large prominent photo */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-8">
{/* 1. Large Bio Text */}
<motion.div
initial={{ opacity: 0, x: -50 }}
whileInView={{ opacity: 1, x: 0 }}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.8, ease: [0.25, 0.1, 0.25, 1] }}
className="relative w-full max-w-[500px] aspect-[4/5] shrink-0"
className="md:col-span-8 bg-white dark:bg-stone-900 rounded-[3rem] p-12 border border-stone-200/60 dark:border-stone-800/60 shadow-sm"
>
<div className="absolute inset-0 bg-liquid-mint/20 rounded-[3rem] -rotate-3 translate-x-4 translate-y-4 blur-2xl"></div>
<div className="relative w-full h-full rounded-[2.5rem] overflow-hidden border-8 border-white dark:border-stone-900 shadow-2xl">
<Image
src="/images/me.jpg"
alt="Dennis Konkol"
fill
className="object-cover scale-105 hover:scale-100 transition-transform duration-1000"
priority
/>
</div>
{/* Location Tag Floating */}
<div className="absolute -bottom-6 -right-6 bg-white dark:bg-stone-800 p-6 rounded-3xl shadow-xl border border-stone-100 dark:border-stone-700 hidden md:block">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full bg-liquid-sky/10 flex items-center justify-center">
<MapPin className="text-liquid-sky" size={20} />
</div>
<div>
<p className="text-[10px] font-bold uppercase tracking-widest text-stone-400">Based in</p>
<p className="font-black text-stone-900 dark:text-stone-50">Osnabrück, GER</p>
<div className="space-y-8">
<h2 className="text-4xl md:text-6xl font-black text-stone-900 dark:text-stone-50 tracking-tighter">
{t("title")}
</h2>
<div className="prose prose-stone dark:prose-invert max-w-none text-xl font-light leading-relaxed text-stone-600 dark:text-stone-400">
{cmsDoc ? <RichTextClient doc={cmsDoc} /> : <p>{t("p1")} {t("p2")}</p>}
</div>
<div className="pt-6 flex flex-wrap gap-4">
<div className="bg-liquid-mint/10 px-6 py-3 rounded-2xl border border-liquid-mint/20">
<p className="text-[10px] font-black uppercase tracking-widest text-liquid-mint mb-1">{t("funFactTitle")}</p>
<p className="text-sm font-bold opacity-80">{t("funFactBody")}</p>
</div>
</div>
</div>
</motion.div>
{/* Large Bio Content */}
{/* 2. Reading Log */}
<motion.div
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.8, delay: 0.2 }}
className="flex-1 space-y-10"
>
<div className="space-y-4">
<span className="text-liquid-mint font-black uppercase tracking-[0.3em] text-xs">A bit about me</span>
<h2 className="text-5xl md:text-8xl font-black text-stone-900 dark:text-stone-50 tracking-tighter leading-[0.85]">
Digital <br /> Architect.
</h2>
</div>
<div className="prose prose-stone dark:prose-invert max-w-2xl text-xl md:text-2xl font-light leading-relaxed text-stone-600 dark:text-stone-400">
{cmsDoc ? (
<RichTextClient doc={cmsDoc} />
) : (
<p>
Hey, I&apos;m Dennis. I build performant web and mobile applications with a focus on clean code and exceptional user experience.
</p>
)}
</div>
<div className="pt-6">
<a href="#contact" className="inline-flex items-center gap-3 text-lg font-black border-b-4 border-liquid-mint pb-2 hover:gap-5 transition-all">
LET&apos;S WORK TOGETHER <ArrowRight size={24} />
</a>
</div>
</motion.div>
</div>
{/* --- STAGE 2: THE DETAILS GRID (BENTO STYLE) --- */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-8">
{/* Tech Stack Box */}
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="md:col-span-8 bg-white dark:bg-stone-900 rounded-[3rem] p-12 border border-stone-200/60 dark:border-stone-800/60 shadow-sm"
>
<h3 className="text-3xl font-black text-stone-900 dark:text-stone-50 mb-8 flex items-center gap-3">
<Code className="text-liquid-mint" size={32} /> {t("techStackTitle")}
</h3>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-8">
{techStack.map((cat) => (
<div key={cat.id} className="space-y-4">
<h4 className="text-xs font-black uppercase tracking-widest text-stone-400">{cat.name}</h4>
<div className="flex flex-wrap gap-2">
{cat.items?.map((item: any) => (
<span key={item.id} className="px-4 py-2 bg-stone-50 dark:bg-stone-800/50 rounded-xl text-sm font-bold border border-stone-100 dark:border-stone-700/50">
{item.name}
</span>
))}
</div>
</div>
))}
</div>
</motion.div>
{/* Reading Log Box */}
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: 0.1 }}
className="md:col-span-4 bg-white dark:bg-stone-900 rounded-[3rem] p-12 border border-stone-200/60 dark:border-stone-800/60 shadow-sm flex flex-col"
>
<h3 className="text-3xl font-black text-stone-900 dark:text-stone-50 mb-8 flex items-center gap-3 uppercase tracking-tighter">
<BookOpen className="text-liquid-purple" size={32} /> Reading
<h3 className="text-2xl font-black text-stone-900 dark:text-stone-50 mb-8 flex items-center gap-3 uppercase tracking-tighter">
<BookOpen className="text-liquid-purple" size={24} /> Reading
</h3>
<div className="space-y-10 overflow-y-auto pr-2 scrollbar-hide">
<CurrentlyReading />
@@ -165,32 +93,51 @@ const About = () => {
</div>
</motion.div>
{/* Hobbies Box */}
{/* 3. Tech Stack */}
<motion.div
initial={{ opacity: 0, y: 20 }}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: 0.2 }}
className="md:col-span-12 bg-liquid-mint/5 dark:bg-stone-900 rounded-[3rem] p-12 border border-liquid-mint/20 dark:border-stone-800/60"
className="md:col-span-12 bg-white dark:bg-stone-900 rounded-[3rem] p-12 border border-stone-200/60 dark:border-stone-800/60 shadow-sm"
>
<div className="flex flex-col md:flex-row justify-between items-start md:items-end gap-8">
<div className="space-y-4">
<h3 className="text-3xl font-black text-stone-900 dark:text-stone-50 flex items-center gap-3">
<Gamepad2 className="text-liquid-purple" size={32} /> {t("hobbiesTitle")}
</h3>
<p className="text-stone-500 text-lg font-light">The things that inspire me outside of coding.</p>
</div>
<div className="grid grid-cols-2 sm:grid-cols-4 gap-4 w-full md:w-auto">
{hobbies.map((hobby) => {
const Icon = iconMap[hobby.icon] || Lightbulb;
return (
<div key={hobby.id} className="flex items-center gap-3 p-4 bg-white dark:bg-stone-800 rounded-2xl shadow-sm border border-stone-50 dark:border-stone-700">
<Icon size={20} className="text-liquid-mint" />
<span className="text-xs font-bold uppercase tracking-wider">{hobby.title}</span>
</div>
)
})}
</div>
<div className="grid grid-cols-1 md:grid-cols-4 gap-12">
{techStack.map((cat) => (
<div key={cat.id} className="space-y-6">
<h4 className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400">{cat.name}</h4>
<div className="flex flex-wrap gap-2">
{cat.items?.map((item: any) => (
<span key={item.id} className="px-4 py-2 bg-stone-50 dark:bg-stone-800/50 rounded-xl text-xs font-bold border border-stone-100 dark:border-stone-700/50 hover:border-liquid-mint transition-colors">
{item.name}
</span>
))}
</div>
</div>
))}
</div>
</motion.div>
{/* 4. Hobbies */}
<motion.div
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: 0.3 }}
className="md:col-span-12 bg-liquid-purple/5 dark:bg-stone-900 rounded-[3rem] p-12 border border-liquid-purple/20 dark:border-stone-800/60 flex flex-col md:flex-row justify-between items-center gap-8"
>
<h3 className="text-2xl font-black text-stone-900 dark:text-stone-50 flex items-center gap-3">
<Gamepad2 className="text-liquid-purple" size={28} /> {t("hobbiesTitle")}
</h3>
<div className="flex flex-wrap justify-center gap-4">
{hobbies.map((hobby) => {
const Icon = iconMap[hobby.icon] || Lightbulb;
return (
<div key={hobby.id} className="flex items-center gap-3 px-6 py-3 bg-white dark:bg-stone-800 rounded-2xl shadow-sm border border-stone-100 dark:border-stone-700">
<Icon size={18} className="text-liquid-purple" />
<span className="text-xs font-bold uppercase tracking-wider">{hobby.title}</span>
</div>
)
})}
</div>
</motion.div>

View File

@@ -1,150 +1,130 @@
"use client";
import { motion } from "framer-motion";
import { ArrowDown, Github, Linkedin, Mail, Code, Zap } from "lucide-react";
import { ArrowDown, Github, Linkedin, Mail, Code, Zap, Globe } from "lucide-react";
import { useLocale, useTranslations } from "next-intl";
import Image from "next/image";
const Hero = () => {
const locale = useLocale();
const t = useTranslations("home.hero");
return (
<section className="relative min-h-screen flex flex-col items-center justify-center overflow-hidden bg-stone-50 dark:bg-stone-950 px-4 transition-colors duration-500">
{/* Liquid Ambient Background */}
<section className="relative min-h-screen flex flex-col items-center justify-center overflow-hidden bg-stone-50 dark:bg-stone-950 px-6 transition-colors duration-500">
{/* Background Decor */}
<div className="absolute inset-0 pointer-events-none">
<motion.div
animate={{
scale: [1, 1.2, 1],
x: [0, 30, 0],
y: [0, -20, 0],
}}
animate={{ scale: [1, 1.1, 1], opacity: [0.15, 0.25, 0.15] }}
transition={{ duration: 15, repeat: Infinity, ease: "easeInOut" }}
className="absolute top-[5%] left-[5%] w-[60vw] h-[60vw] bg-liquid-mint rounded-full blur-[140px]"
/>
<motion.div
animate={{ scale: [1.1, 1, 1.1], opacity: [0.1, 0.2, 0.1] }}
transition={{ duration: 20, repeat: Infinity, ease: "easeInOut" }}
className="absolute top-[10%] left-[10%] w-[600px] h-[600px] bg-liquid-mint/15 dark:bg-liquid-mint/5 rounded-full blur-[120px]"
/>
<motion.div
animate={{
scale: [1.2, 1, 1.2],
x: [0, -40, 0],
y: [0, 30, 0],
}}
transition={{ duration: 25, repeat: Infinity, ease: "easeInOut" }}
className="absolute bottom-[10%] right-[10%] w-[500px] h-[500px] bg-liquid-purple/15 dark:bg-liquid-purple/5 rounded-full blur-[100px]"
className="absolute bottom-[5%] right-[5%] w-[50vw] h-[50vw] bg-liquid-purple rounded-full blur-[120px]"
/>
</div>
<div className="relative z-10 text-center max-w-6xl mx-auto">
{/* Profile / dk0.dev Badge */}
<motion.div
initial={{ opacity: 0, scale: 0.9 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.8, ease: [0.25, 0.1, 0.25, 1] }}
className="mb-10 relative inline-block"
>
<div className="px-6 py-2.5 rounded-full bg-white/80 dark:bg-stone-900/80 backdrop-blur-xl border-2 border-stone-200 dark:border-stone-800 shadow-xl flex items-center gap-3">
<div className="w-8 h-8 rounded-full bg-gradient-to-tr from-liquid-mint to-liquid-sky flex items-center justify-center font-black text-xs text-stone-900 shadow-sm">
dk
</div>
<span className="font-mono text-sm font-bold tracking-tight text-stone-800 dark:text-stone-200">
dk<span className="text-red-500">0</span>.dev
</span>
</div>
<div className="relative z-10 max-w-7xl mx-auto w-full pt-20">
<div className="flex flex-col lg:flex-row items-center gap-12 lg:gap-24">
{/* Floating decorative icons */}
<motion.div
animate={{ y: [0, -10, 0] }}
transition={{ duration: 4, repeat: Infinity, ease: "easeInOut" }}
className="absolute -top-6 -right-6 p-2 bg-white dark:bg-stone-800 rounded-lg shadow-lg border border-stone-100 dark:border-stone-700 hidden md:block"
>
<Code size={16} className="text-stone-400" />
</motion.div>
<motion.div
animate={{ y: [0, 10, 0] }}
transition={{ duration: 5, repeat: Infinity, ease: "easeInOut", delay: 1 }}
className="absolute -bottom-4 -left-8 p-2 bg-white dark:bg-stone-800 rounded-lg shadow-lg border border-stone-100 dark:border-stone-700 hidden md:block"
>
<Zap size={16} className="text-yellow-400" />
</motion.div>
</motion.div>
{/* Left: Text Content */}
<div className="flex-1 text-center lg:text-left space-y-8">
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
className="inline-flex items-center gap-3 px-4 py-2 rounded-full bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 shadow-sm"
>
<span className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />
<span className="font-mono text-[10px] font-bold uppercase tracking-[0.2em] text-stone-500">Student & Self-Hoster</span>
</motion.div>
{/* Huge Headlines */}
<h1 className="text-6xl md:text-[10rem] font-black tracking-tighter text-stone-900 dark:text-stone-50 mb-8 leading-[0.85] uppercase">
<motion.span
initial={{ opacity: 0, x: -100 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 1, ease: [0.25, 0.1, 0.25, 1] }}
className="block"
>
Engineer
</motion.span>
<motion.span
initial={{ opacity: 0, x: 100 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 1, delay: 0.2, ease: [0.25, 0.1, 0.25, 1] }}
className="block text-transparent bg-clip-text bg-gradient-to-r from-liquid-mint via-liquid-sky to-liquid-purple pb-4"
>
Design
</motion.span>
</h1>
{/* Description */}
<motion.p
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 1, delay: 0.5 }}
className="text-xl md:text-3xl text-stone-500 dark:text-stone-400 max-w-3xl mx-auto font-light leading-snug mb-14 tracking-tight"
>
Merging technical excellence with high-end aesthetic.
<br className="hidden md:block" /> Based in Osnabrück, building globally.
</motion.p>
{/* Primary Actions */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.8 }}
className="flex flex-col sm:flex-row items-center justify-center gap-6"
>
<a
href="#projects"
className="group relative px-10 py-5 bg-stone-900 dark:bg-stone-50 text-white dark:text-stone-900 rounded-2xl font-black text-lg hover:scale-[1.02] active:scale-[0.98] transition-all overflow-hidden"
>
<div className="absolute inset-0 bg-gradient-to-r from-white/0 via-white/10 to-white/0 -translate-x-full group-hover:translate-x-full transition-transform duration-1000" />
START EXPLORING
</a>
<div className="flex items-center gap-4">
{[
{ icon: Github, href: "https://github.com/Denshooter" },
{ icon: Linkedin, href: "https://linkedin.com/in/dkonkol" },
{ icon: Mail, href: "mailto:contact@dk0.dev" }
].map((social, i) => (
<a
key={i}
href={social.href}
target="_blank"
rel="noopener noreferrer"
className="p-4 bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 rounded-2xl text-stone-400 hover:text-stone-900 dark:hover:text-stone-50 hover:bg-stone-50 dark:hover:bg-stone-800 transition-all shadow-sm hover:shadow-md"
<h1 className="text-5xl md:text-8xl font-black tracking-tighter leading-[0.85] text-stone-900 dark:text-stone-50">
<motion.span
initial={{ opacity: 0, x: -50 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.8, delay: 0.1 }}
className="block"
>
<social.icon size={22} />
Building Stuff.
</motion.span>
<motion.span
initial={{ opacity: 0, x: -50 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.8, delay: 0.2 }}
className="block text-transparent bg-clip-text bg-gradient-to-r from-liquid-mint via-liquid-sky to-liquid-purple"
>
Running Servers.
</motion.span>
</h1>
<motion.p
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 1, delay: 0.4 }}
className="text-lg md:text-xl text-stone-600 dark:text-stone-400 max-w-xl mx-auto lg:mx-0 font-light leading-relaxed"
>
{t("description")}
</motion.p>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, delay: 0.6 }}
className="flex flex-col sm:flex-row items-center gap-6 justify-center lg:justify-start pt-4"
>
<a href="#projects" className="px-10 py-4 bg-stone-900 dark:bg-stone-50 text-white dark:text-stone-900 rounded-2xl font-black text-sm tracking-widest hover:scale-105 active:scale-95 transition-all shadow-xl">
{t("ctaWork").toUpperCase()}
</a>
))}
<div className="flex gap-4">
{[
{ icon: Github, href: "https://github.com/Denshooter" },
{ icon: Linkedin, href: "https://linkedin.com/in/dkonkol" },
{ icon: Mail, href: "mailto:contact@dk0.dev" }
].map((social, i) => (
<a key={i} href={social.href} className="p-4 bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 rounded-2xl text-stone-400 hover:text-stone-900 dark:hover:text-stone-100 transition-all shadow-sm">
<social.icon size={20} />
</a>
))}
</div>
</motion.div>
</div>
</motion.div>
{/* Right: The Photo (Visible Immediately) */}
<motion.div
initial={{ opacity: 0, scale: 0.8, rotate: 5 }}
animate={{ opacity: 1, scale: 1, rotate: 0 }}
transition={{ duration: 1, ease: [0.25, 0.1, 0.25, 1] }}
className="relative w-72 h-72 md:w-[450px] md:h-[450px] shrink-0"
>
<div className="absolute inset-0 bg-gradient-to-tr from-liquid-mint to-liquid-purple rounded-[4rem] rotate-6 scale-95 opacity-20 blur-2xl animate-pulse" />
<div className="relative w-full h-full rounded-[3.5rem] overflow-hidden border-[12px] border-white dark:border-stone-900 shadow-[0_40px_80px_-15px_rgba(0,0,0,0.3)]">
<Image
src="/images/me.jpg"
alt="Dennis Konkol"
fill
className="object-cover"
priority
/>
</div>
{/* Minimal Badge */}
<div className="absolute -bottom-4 -left-4 bg-white dark:bg-stone-800 px-6 py-3 rounded-2xl shadow-2xl border border-stone-100 dark:border-stone-700">
<span className="font-mono text-xs font-black tracking-tighter">dk<span className="text-red-500">0</span>.dev</span>
</div>
</motion.div>
</div>
</div>
{/* Modern Scroll Indicator */}
{/* Scroll Down */}
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 1.5, duration: 1 }}
className="absolute bottom-12 flex flex-col items-center gap-4"
animate={{ y: [0, 10, 0] }}
transition={{ duration: 2, repeat: Infinity }}
className="absolute bottom-10 left-1/2 -translate-x-1/2 hidden md:block"
>
<span className="text-[10px] font-bold uppercase tracking-[0.3em] text-stone-400 dark:text-stone-600">Scroll Down</span>
<motion.div
animate={{ y: [0, 12, 0] }}
transition={{ duration: 2, repeat: Infinity, ease: "easeInOut" }}
className="w-px h-12 bg-gradient-to-b from-stone-300 dark:from-stone-700 to-transparent"
/>
<ArrowDown size={20} className="text-stone-300" />
</motion.div>
</section>
);