Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 80f65884c4 | |||
| 8187c80e3d | |||
| 32e38fdef6 |
@@ -10,6 +10,22 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis'
|
|||||||
import { Sparkles, Briefcase, Zap, Mail } from 'lucide-react';
|
import { Sparkles, Briefcase, Zap, Mail } from 'lucide-react';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const handleButtonClick = (href: string) => {
|
||||||
|
if (href.startsWith('#')) {
|
||||||
|
// Internal anchor link
|
||||||
|
const element = document.querySelector(href);
|
||||||
|
if (element) {
|
||||||
|
element.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}
|
||||||
|
} else if (href.startsWith('mailto:') || href.startsWith('tel:')) {
|
||||||
|
// Email or phone link
|
||||||
|
window.location.href = href;
|
||||||
|
} else if (href.startsWith('http')) {
|
||||||
|
// External link
|
||||||
|
window.open(href, '_blank');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="expand-hover"
|
defaultButtonVariant="expand-hover"
|
||||||
@@ -45,8 +61,8 @@ export default function LandingPage() {
|
|||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
background={{ variant: "animated-grid" }}
|
background={{ variant: "animated-grid" }}
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "View My Work", href: "#portfolio" },
|
{ text: "View My Work", onClick: () => handleButtonClick('#portfolio') },
|
||||||
{ text: "Get Started", href: "#contact" }
|
{ text: "Get Started", onClick: () => handleButtonClick('#contact') }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
carouselItems={[
|
carouselItems={[
|
||||||
@@ -141,8 +157,8 @@ export default function LandingPage() {
|
|||||||
title="Ready to Elevate Your Online Presence?"
|
title="Ready to Elevate Your Online Presence?"
|
||||||
description="Let's collaborate to create a website that not only looks stunning but also drives results. I'm excited to bring your vision to life."
|
description="Let's collaborate to create a website that not only looks stunning but also drives results. I'm excited to bring your vision to life."
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Contact Me", href: "mailto:friischristian35@gmail.com" },
|
{ text: "Contact Me", onClick: () => handleButtonClick('mailto:friischristian35@gmail.com') },
|
||||||
{ text: "Call: +49 176 61169654", href: "tel:+49176611696541" }
|
{ text: "Call: +49 176 61169654", onClick: () => handleButtonClick('tel:+49176611696541') }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
background={{ variant: "animated-grid" }}
|
background={{ variant: "animated-grid" }}
|
||||||
@@ -156,14 +172,14 @@ export default function LandingPage() {
|
|||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
items: [
|
items: [
|
||||||
{ label: "Work", href: "#portfolio" },
|
{ label: "Work", onClick: () => handleButtonClick('#portfolio') },
|
||||||
{ label: "Services", href: "#services" }
|
{ label: "Services", onClick: () => handleButtonClick('#services') }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
items: [
|
items: [
|
||||||
{ label: "Email", href: "mailto:friischristian35@gmail.com" },
|
{ label: "Email", onClick: () => handleButtonClick('mailto:friischristian35@gmail.com') },
|
||||||
{ label: "Phone", href: "tel:+49176611696541" },
|
{ label: "Phone", onClick: () => handleButtonClick('tel:+49176611696541') },
|
||||||
{ label: "LinkedIn", href: "#" }
|
{ label: "LinkedIn", href: "#" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user