Update social links in FootBar with new GitHub and Email addresses; modify Navbar by removing the "Get in Touch" button; adjust global styles for body background; enhance Home page card opacity settings for better visual consistency.

This commit is contained in:
Mike Karl 2025-10-21 11:27:47 +02:00
parent 4a3445b39d
commit 1b03555e60
5 changed files with 15 additions and 28 deletions

View file

@ -19,7 +19,7 @@ export default function Card({
hover = true, hover = true,
style, style,
bgImageUrl, bgImageUrl,
bgOpacity = 0.25, bgOpacity = 0.15,
bgDim = 0.35, bgDim = 0.35,
bg bg
}: CardProps) { }: CardProps) {
@ -54,22 +54,13 @@ export default function Card({
style={{ style={{
...(bg ...(bg
? { background: bg } ? { background: bg }
: { backgroundImage: `url(${bgImageUrl})`, backgroundSize: 'cover', backgroundPosition: 'center', opacity: bgOpacity } : { backgroundImage: `url(${bgImageUrl})`, backgroundSize: 'cover', backgroundPosition: 'center', opacity: bgOpacity, filter: `brightness(${bgDim})`,zIndex: -1 }
), ),
opacity: bg ? 1 : bgOpacity, opacity: bg ? 1 : bgOpacity,
// Diagonal mask: from ~20% at bottom to ~55% at top to create a rising diagonal // Diagonal mask: from ~20% at bottom to ~55% at top to create a rising diagonal
clipPath: 'polygon(55% 0, 100% 0, 100% 100%, 20% 100%)' clipPath: 'polygon(55% 0, 100% 0, 100% 100%, 20% 100%)'
}} }}
/> />
{/* Dimming overlay to preserve contrast over the image area only */}
<div
aria-hidden
className="pointer-events-none absolute inset-0"
style={{
background: 'rgba(0,0,0,' + bgDim + ')',
clipPath: 'polygon(55% 0, 100% 0, 100% 100%, 20% 100%)'
}}
/>
</> </>
)} )}
{children} {children}

View file

@ -7,16 +7,15 @@ export default function FootBar() {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const socialLinks = [ const socialLinks = [
{ name: "GitHub", href: "https://github.com", 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: "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: "LinkedIn", href: "https://linkedin.com", icon: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }, { 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: "Email", href: "mailto:example@example.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" }
]; ];
const quickLinks = [ const quickLinks = [
{ name: "Home", href: "/" }, { name: "Home", href: "/" },
{ name: "Lebenslauf", href: "/cv" }, { name: "Lebenslauf", href: "/cv" },
{ name: "Portfolio", href: "/portfolio" }, { name: "Portfolio", href: "/portfolio" },
{ name: "Contact", href: "/contact" } { name: "Kontakt", href: "/contact" }
]; ];
return ( return (

View file

@ -26,7 +26,7 @@ html {
} }
body { body {
background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%); background: var(--background) linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
color: var(--foreground); color: var(--foreground);
font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif; font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif;
line-height: 1.6; line-height: 1.6;

View file

@ -41,9 +41,6 @@ export default function Navbar() {
<span className="absolute bottom-0 left-0 w-0 h-0.5 bg-blue-500 group-hover:w-full transition-all duration-300"></span> <span className="absolute bottom-0 left-0 w-0 h-0.5 bg-blue-500 group-hover:w-full transition-all duration-300"></span>
</Link> </Link>
))} ))}
<Button variant="glass" size="sm" className="ml-4">
Get in Touch
</Button>
</div> </div>
{/* Mobile Menu Button */} {/* Mobile Menu Button */}

View file

@ -31,7 +31,7 @@ export default function Home() {
className="float" className="float"
style={{ animationDelay: '1s' }} style={{ animationDelay: '1s' }}
bgImageUrl={"https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.22} bgOpacity={0.35}
bgDim={0.35} bgDim={0.35}
> >
<CardHeader> <CardHeader>
@ -86,8 +86,8 @@ export default function Home() {
<Card <Card
variant="default" variant="default"
bgImageUrl={"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.18} bgOpacity={0.35}
bgDim={0.4} bgDim={0.35}
> >
<CardHeader> <CardHeader>
<h3 className="text-lg font-semibold text-white">Gymnasium Zwiesel</h3> <h3 className="text-lg font-semibold text-white">Gymnasium Zwiesel</h3>
@ -103,7 +103,7 @@ export default function Home() {
<Card <Card
variant="default" variant="default"
bgImageUrl={"https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.2} bgOpacity={0.35}
bgDim={0.35} bgDim={0.35}
> >
<CardHeader> <CardHeader>
@ -186,8 +186,8 @@ export default function Home() {
variant="glass" variant="glass"
className="hover:neon-glow" className="hover:neon-glow"
bgImageUrl={"https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.25} bgOpacity={0.35}
bgDim={0.3} bgDim={0.35}
> >
<CardHeader> <CardHeader>
<h3 className="text-lg font-semibold text-white">Raytracing in a Weekend</h3> <h3 className="text-lg font-semibold text-white">Raytracing in a Weekend</h3>
@ -234,8 +234,8 @@ export default function Home() {
variant="glass" variant="glass"
className="hover:neon-glow" className="hover:neon-glow"
bgImageUrl={"https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.2} bgOpacity={0.35}
bgDim={0.4} bgDim={0.35}
> >
<CardHeader> <CardHeader>
<h3 className="text-lg font-semibold text-white">6502 Emulator</h3> <h3 className="text-lg font-semibold text-white">6502 Emulator</h3>
@ -261,7 +261,7 @@ export default function Home() {
variant="glass" variant="glass"
className="hover:neon-glow" className="hover:neon-glow"
bgImageUrl={"https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"} bgImageUrl={"https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"}
bgOpacity={0.22} bgOpacity={0.35}
bgDim={0.35} bgDim={0.35}
> >
<CardHeader> <CardHeader>