diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..4ba4e65 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,18 @@ +{ + "permissions": { + "allow": [ + "mcp__playwright__browser_navigate", + "Bash(netstat:*)", + "Bash(findstr:*)", + "Bash(npm run dev:*)", + "Bash(npm install)", + "mcp__playwright__browser_resize", + "mcp__serena__search_for_pattern", + "Bash(taskkill:*)", + "mcp__zen__analyze", + "mcp__playwright__browser_tabs" + ], + "deny": [], + "ask": [] + } +} \ No newline at end of file diff --git a/public/marina_cropped.jpg b/public/marina_cropped.jpg index a311ad6..8030b01 100644 Binary files a/public/marina_cropped.jpg and b/public/marina_cropped.jpg differ diff --git a/public/marina_cropped_curved.jpg b/public/marina_cropped_curved.jpg new file mode 100644 index 0000000..62cc7fc Binary files /dev/null and b/public/marina_cropped_curved.jpg differ diff --git a/public/marina_cropped_v2.jpg b/public/marina_cropped_v2.jpg new file mode 100644 index 0000000..a28a8a0 Binary files /dev/null and b/public/marina_cropped_v2.jpg differ diff --git a/public/marina_cropped_v3.jpg b/public/marina_cropped_v3.jpg new file mode 100644 index 0000000..70e6d80 Binary files /dev/null and b/public/marina_cropped_v3.jpg differ diff --git a/src/app/page.tsx b/src/app/page.tsx index 3f2eac1..5b68794 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -105,7 +105,7 @@ export default function Home() { // Memoized animation constants const animationConstants = useMemo(() => ({ mobile: { - targetTopPosition: -50, // Logo ends even higher for better spacing + targetTopPosition: 10, // Logo settles much higher to avoid text startYFactor: 0.20, // Moved up to position logo higher on mobile finalScale: 0.5, fadeThreshold: 5 @@ -143,7 +143,7 @@ export default function Home() { ): Partial => { const { targetTopPosition, startYFactor, finalScale } = animationConstants.mobile; const startY = windowHeight * startYFactor; - const endY = targetTopPosition + (logoHeight * finalScale) / 2; + const endY = targetTopPosition; const totalDistance = startY - endY; const animationEndScroll = contactTop; @@ -282,11 +282,15 @@ export default function Home() { return; } - console.log('Starting scroll animation to:', contactSectionRef.current.offsetTop); + // For mobile, adjust scroll position to account for the padding + const scrollOffset = isMobile ? 0 : 0; // No offset - scroll exactly to where animation ends + const targetPosition = contactSectionRef.current.offsetTop + scrollOffset; + + console.log('Starting scroll animation to:', targetPosition); // Use native smooth scrolling window.scrollTo({ - top: contactSectionRef.current.offsetTop, + top: targetPosition, behavior: 'smooth' }); }; @@ -513,10 +517,10 @@ export default function Home() { > {isMobile ? ( // Mobile Layout - Stacked with Image -
+
{/* Form Section */}
-

+

Connect with us

@@ -600,10 +604,10 @@ export default function Home() { )} /> -
+
@@ -616,10 +620,10 @@ export default function Home() {
Port Amador Marina @@ -627,7 +631,7 @@ export default function Home() {
{/* Footer Section */} -
+