From ee498680775088a9aa75edee7a24ff91d3530c97 Mon Sep 17 00:00:00 2001 From: alireza Date: Wed, 10 Jun 2026 15:21:15 +0330 Subject: [PATCH] @ Footer: curved top edge with scroll-to-top button - SVG curved top notch matching the Figma (page color shows through the dip) - Centered scroll-to-top button (ChevronsUp) with smooth scroll, gold hover Co-Authored-By: Claude Opus 4.8 @ --- src/app/layout/Footer.tsx | 44 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/src/app/layout/Footer.tsx b/src/app/layout/Footer.tsx index daadf12..e612bb7 100644 --- a/src/app/layout/Footer.tsx +++ b/src/app/layout/Footer.tsx @@ -1,5 +1,40 @@ import { useState } from 'react' -import { Send, Share2, AtSign, MessageCircle, MapPin, Phone, Mail } from 'lucide-react' +import { Send, Share2, AtSign, MessageCircle, MapPin, Phone, Mail, ChevronsUp } from 'lucide-react' + +function scrollToTop() { + window.scrollTo({ top: 0, behavior: 'smooth' }) +} + +/* curved top edge with a centered scroll-to-top button (matches the Figma) */ +function FooterCurve() { + return ( +
+ + {/* white (page) above, navy below, with a smooth central dip */} + + + {/* scroll-to-top button sitting in the dip */} + +
+ ) +} const NAVY = '#071d49' const GOLD = '#c9a227' @@ -95,8 +130,10 @@ function NewsletterBox() { export function Footer() { return ( -