From 81b57128b5543b89c20cf64fe282d39bea603d48 Mon Sep 17 00:00:00 2001 From: Mike Karl Date: Tue, 28 Oct 2025 16:17:54 +0100 Subject: [PATCH] Refactor FootBar and global styles for improved layout and visual consistency; simplify social link structure and update styling in Navbar and Section components for a cleaner interface. --- app/components/button.tsx | 2 +- app/components/card.tsx | 6 ++-- app/components/section.tsx | 7 ++-- app/footbar.tsx | 36 ++++++------------- app/globals.css | 72 -------------------------------------- app/layout.tsx | 13 +------ app/navbar.tsx | 2 +- app/page.tsx | 6 ++-- 8 files changed, 23 insertions(+), 121 deletions(-) diff --git a/app/components/button.tsx b/app/components/button.tsx index a1f0cf2..98a2a95 100644 --- a/app/components/button.tsx +++ b/app/components/button.tsx @@ -11,7 +11,7 @@ export default function Button({ variant = 'primary', size = 'md', }: ButtonProps) { - const baseClasses = "cursor-pointer font-medium rounded-lg transition-all duration-300 ease-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-900 disabled:opacity-50 disabled:cursor-not-allowed"; + const baseClasses = "cursor-pointer font-medium rounded-lg transition-all duration-300 ease-out disabled:opacity-50 disabled:cursor-not-allowed"; const sizeClasses = { sm: "px-3 py-1.5 text-sm", diff --git a/app/components/card.tsx b/app/components/card.tsx index d2bb0e4..556bdf7 100644 --- a/app/components/card.tsx +++ b/app/components/card.tsx @@ -13,9 +13,9 @@ export default function Card({ const baseClasses = "relative overflow-hidden rounded-xl transition-all duration-300 ease-out"; const variantClasses = { - default: "bg-gray-900/50 border border-gray-800/50 backdrop-blur-sm", - glass: "bg-white/5 border border-white/10 backdrop-blur-md", - outlined: "bg-transparent border-2 border-gray-700/50" + default: "bg-gradient-to-br bg-gradient-to-br from-stone-800 via-stone-900 to-stone-800 border border-stone-700", + glass: "bg-gradient-to-br bg-gradient-to-br from-white/5 via-white/10 to-white/5 border border-white/10 backdrop-blur-md", + outlined: "bg-transparent border-2 border-stone-700/50" }; return ( diff --git a/app/components/section.tsx b/app/components/section.tsx index ce76ec9..020d4e2 100644 --- a/app/components/section.tsx +++ b/app/components/section.tsx @@ -5,7 +5,7 @@ interface SectionProps { title?: string; subtitle?: string; className?: string; - variant?: 'default' | 'hero' | 'feature' | 'minimal'; + variant?: 'default' | 'hero' | 'minimal'; } export default function Section({ @@ -18,9 +18,8 @@ export default function Section({ const baseClasses = "relative py-16 lg:py-24"; const variantClasses = { - default: "bg-gray-900/30", - hero: "bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900", - feature: "bg-gray-800/20", + default: "bg-stone-900", + hero: "bg-gradient-to-br from-stone-950 via-stone-900 to-stone-950", minimal: "bg-transparent" }; diff --git a/app/footbar.tsx b/app/footbar.tsx index 6d10f8f..21936da 100644 --- a/app/footbar.tsx +++ b/app/footbar.tsx @@ -1,14 +1,17 @@ "use client"; import Link from "next/link"; -import { Button, Badge } from "./components"; export default function FootBar() { const currentYear = new Date().getFullYear(); const socialLinks = [ - { name: "GitHub", href: "https://github.com/GoranSalzmann", icon: "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" }, - { name: "Email", href: "mailto:karl.mike2002@gmail.com", icon: "M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h3.819l6.545 4.91 6.545-4.91h3.819c.904 0 1.636.732 1.636 1.636z" } + { + name: "GitHub", href: "https://github.com/GoranSalzmann" + }, + { + name: "Email", href: "mailto:karl.mike2002@gmail.com" + } ]; const quickLinks = [ @@ -18,8 +21,7 @@ export default function FootBar() { ]; return ( -