feat(ui): Overhaul homepage and layout styling for responsiveness

Refactors the styling across the main layout, homepage, and contact page to improve responsiveness and visual consistency.

Key changes include:
- Adjusted font sizes, spacing, and padding on the homepage for better scaling on different screen sizes.
- Simplified the hero section image and layout.
- Updated the footer design, removing the background image and changing text color from white to black for better readability.
- Replaced React fragments with `<main>` tags for improved semantic HTML on the contact page.
- Streamlined header and content padding in the main layout.
This commit is contained in:
AmirReza Jamali
2025-10-26 15:30:29 +03:30
parent 3d626daa0a
commit 6c7cc6d3ee
4 changed files with 52 additions and 41 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ export const metadata: Metadata = {
const ContactUsPage = () => {
return (
<>
<main>
<div className="flex flex-col gap-6 items-center">
<p className="bg-(--primary)/20 w-fit px-2.5 py-1.5 text-(--primary) rounded-full">
Contact Us
@@ -42,7 +42,7 @@ const ContactUsPage = () => {
<ContactUsForm columnsPerRow={1} />
</section>
</div>
</>
</main>
);
};
+9 -9
View File
@@ -38,7 +38,7 @@ function ContactInfo({
contactIconSrc?: string;
}) {
return (
<div className="flex gap-3 my-3 text-white">
<div className="flex gap-3 my-3 text-black">
<Image
src={icon}
width={24}
@@ -100,7 +100,7 @@ export default async function RootLayout({
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased flex flex-col bg-[url('/header-bg.svg')] bg-top-right bg-no-repeat bg-contain lg:bg-cover`}>
<header className="flex justify-center pt-8 items-center pb-4 container px-4 py-4 m-auto lg:px-28 lg:justify-between flex-wrap gap-5">
<header className="flex justify-center pt-4 items-center pb-4 container px-4 py-0 m-auto lg:px-28 lg:justify-between flex-wrap gap-5">
<section>
<Link
href="/"
@@ -131,11 +131,11 @@ export default async function RootLayout({
pauseOnHover
/>
<div className="container px-4 py-4 m-auto flex-grow">{children}</div>
<footer className="relative h-full bg-[url('/footer-bg.svg')] bg-cover bg-no-repeat mt-40">
<div className="relative z-10 container px-4 py-4 m-auto flex flex-col justify-center items-center mt-24 ">
<div className="flex justify-between flex-col lg:flex-row gap-14 w-full lg:w-1/2">
<div className="flex flex-col gap-10">
<div className="container px-4 m-auto flex-grow">{children}</div>
<footer>
<div className="relative z-10 container px-4 py-4 m-auto flex flex-col justify-center items-center ">
<div className="flex justify-between flex-col lg:flex-row gap-14 w-full px-4 lg:px-28">
<div className="flex flex-col gap-4">
<Image
src={"/footer-logo.svg"}
alt="Opp lens logo"
@@ -144,10 +144,10 @@ export default async function RootLayout({
priority
/>
<div>
<p className="text-white my-2">
<p className="text-black my-2">
Democratizing Tender Access for SMEs.
</p>
<p className="text-white my-2">
<p className="text-black my-2">
© 2025 Opplens.com by PBL Partners AB. All Rights Reserved.
</p>
</div>
+28 -17
View File
@@ -42,17 +42,15 @@ export default function Home() {
},
];
return (
<main>
<section className="lg:flex lg:flex-row justify-around items-center">
<div className=" lg:ml-28 w-full lg:w-1/2 flex flex-col gap-10">
<h1 className="font-black text-8xl text-[#013280]">AI-Powered</h1>
<h2 className="font-black text-(--primary) text-5xl leading-14">
Tender
<br />
Management
<main className="lg:px-20">
<section className="flex flex-col gap-4 justify-between lg:flex-row ">
<div className="w-full flex flex-col gap-10 lg:gap-4 lg:w-1/2 lg:p-0">
<h1 className="font-black text-6xl text-[#013280]">AI-Powered</h1>
<h2 className="font-black text-(--primary) text-5xl lg:text-3xl leading-14">
Tender Management
</h2>
<div className="flex flex-col gap-6 ">
<h3 className="font-black text-3xl text-[#222]">
<h3 className="font-black text-3xl lg:text-xl text-[#222]">
Win more tenders, automatically!
</h3>
<p className="font-normal text-[#777]">
@@ -62,14 +60,25 @@ export default function Home() {
</p>
</div>
</div>
<div className="m-auto mt-5 w-xs -z-20 relative flex justify-center h-[650px] lg:h-[750px] lg:w-auto">
<div className="mx-12 md:mx-52 lg:mx-28 -z-20 relative flex justify-center h-[650px] lg:h-[505px]">
<span className="opacity-0 lg:opacity-100">
<Image
src={"/dynamic-island.svg"}
alt="dynamic island"
width={75}
width={60}
height={22}
className="absolute top-4 left-1/2 -translate-x-1/2"
/>
</span>
<span className="opacity-100 lg:opacity-0">
<Image
src={"/dynamic-island.svg"}
alt="dynamic island"
width={90}
height={22}
className="absolute top-4 left-1/2 -translate-x-1/2"
/>
</span>
<Image
className="-z-10 border-8 border-black rounded-4xl overflow-hidden h-full w-full"
src="/mobile.gif"
@@ -80,20 +89,22 @@ export default function Home() {
/>
</div>
</section>
<section className="text-left flex flex-col gap-6 bg-gradient-to-b from-[#011132] to-[#012B80] text-white rounded-[56px] relative p-6 lg:p-14 -mt-16 z-20 lg:ml-28">
<div className="lg:flex gap-5 text-center">
<section className="flex flex-col gap-6 bg-gradient-to-b from-[#011132] to-[#012B80] text-white rounded-[56px] relative py-16 px-14 -mt-36 z-20 md:grid md:grid-cols-3 lg:flex-row">
{advItems.map((item) => (
<article
key={item.title}
className="flex flex-col gap-4">
<p className="font-black text-[90px]">{item.amount}</p>
<h3 className="font-semibold text-3xl capitalize text-[#99dde5]">
className="flex flex-col gap-4 text-center items-center">
<div className="flex flex-col items-center gap-2 lg:items-end lg:flex-row">
<p className="font-black text-[90px] lg:text-7xl">
{item.amount}
</p>
<h3 className="font-semibold lg:text-xl text-3xl capitalize text-[#99dde5]">
{item.title}
</h3>
</div>
<p className="font-normal text-[16px]">{item.description}</p>
</article>
))}
</div>
</section>
</main>
);
+1 -1
View File
@@ -101,7 +101,7 @@ export default function Home() {
{centerFrames.map((frame, index) => (
<article
key={frame.description}
className="bg-[#F7FAFF] border border-(--primary)/30 rounded-3xl my-4 py-10 px-6 flex flex-col gap-5">
className="bg-[#F7FAFF] border border-(--primary)/30 rounded-3xl my-4 py-10 px-6 flex flex-col gap-5 transition duration-300 transform scale-90 hover:bg-[#0164FF30] hover:scale-110">
<Image
src={frame.src}
alt={frame.alt}