From e2a0df5fc4c0e8e624634e659d592fb2fee1831f Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Sun, 19 Oct 2025 11:18:06 +0330 Subject: [PATCH] feat(ui): Enhance contact page and add location flag to footer This commit introduces several UI improvements to enhance user experience and visual appeal. On the contact page, a new heading "Unlock Your Growth Potential" and a descriptive subheading have been added above the form. This provides better context and a stronger call-to-action for users. In the footer, the location information now includes a flag icon for better visual identification. This was achieved by updating the `ContactInfo` component to accept an optional icon source. Additionally, various styling adjustments have been made for improved responsiveness and visual consistency across the homepage and footer. --- app/contact-us/page.tsx | 11 +++++++++-- app/layout.tsx | 20 +++++++++++++++++--- app/page.tsx | 4 ++-- public/Location.svg | 6 +++--- public/Message.svg | 6 +++--- public/Phone.svg | 8 ++++---- public/sweden.svg | 7 +++++++ 7 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 public/sweden.svg diff --git a/app/contact-us/page.tsx b/app/contact-us/page.tsx index c0834cd..b34d5e0 100644 --- a/app/contact-us/page.tsx +++ b/app/contact-us/page.tsx @@ -2,8 +2,15 @@ import ContactUsForm from "./form"; const ContactUs = () => { return ( -
-
+
+
+

Unlock Your Growth Potential

+

+ Register for early access and a free consultation. Let's start winning + together. +

+
+
diff --git a/app/layout.tsx b/app/layout.tsx index 0338475..fc46448 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -25,11 +25,13 @@ function ContactInfo({ contact, href, ariaLabel, + contactIconSrc, }: { icon: string; contact: string; href?: string; ariaLabel: string; + contactIconSrc?: string; }) { return (
@@ -43,12 +45,22 @@ function ContactInfo({ {href ? ( {contact} ) : ( -

{contact}

+

+ {!!contactIconSrc && ( + flag + )} + {contact} +

)}
); @@ -76,6 +88,7 @@ export default async function RootLayout({ icon: "/Location.svg", contact: "Stockholm, Sweden", ariaLabel: "Our location in Stockholm, Sweden", + contactIconSrc: "/sweden.svg", }, ]; @@ -116,7 +129,7 @@ export default async function RootLayout({
-
+
))}
diff --git a/app/page.tsx b/app/page.tsx index 2b63b8f..1655fb0 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() { return ( <>
-
+

$ 12,345,678 @@ -167,7 +167,7 @@ export default function Home() {

-
+

The Opplens Advantage

diff --git a/public/Location.svg b/public/Location.svg index fcd8555..940cf66 100644 --- a/public/Location.svg +++ b/public/Location.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/public/Message.svg b/public/Message.svg index a4612f0..e47355a 100644 --- a/public/Message.svg +++ b/public/Message.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/public/Phone.svg b/public/Phone.svg index ba878a3..6e57389 100644 --- a/public/Phone.svg +++ b/public/Phone.svg @@ -1,5 +1,5 @@ - - - - + + + + diff --git a/public/sweden.svg b/public/sweden.svg new file mode 100644 index 0000000..52aa353 --- /dev/null +++ b/public/sweden.svg @@ -0,0 +1,7 @@ + + + + + + +