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:
@@ -22,7 +22,7 @@ export const metadata: Metadata = {
|
|||||||
|
|
||||||
const ContactUsPage = () => {
|
const ContactUsPage = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<main>
|
||||||
<div className="flex flex-col gap-6 items-center">
|
<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">
|
<p className="bg-(--primary)/20 w-fit px-2.5 py-1.5 text-(--primary) rounded-full">
|
||||||
Contact Us
|
Contact Us
|
||||||
@@ -42,7 +42,7 @@ const ContactUsPage = () => {
|
|||||||
<ContactUsForm columnsPerRow={1} />
|
<ContactUsForm columnsPerRow={1} />
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</main>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function ContactInfo({
|
|||||||
contactIconSrc?: string;
|
contactIconSrc?: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-3 my-3 text-white">
|
<div className="flex gap-3 my-3 text-black">
|
||||||
<Image
|
<Image
|
||||||
src={icon}
|
src={icon}
|
||||||
width={24}
|
width={24}
|
||||||
@@ -100,7 +100,7 @@ export default async function RootLayout({
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body
|
<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`}>
|
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>
|
<section>
|
||||||
<Link
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
@@ -131,11 +131,11 @@ export default async function RootLayout({
|
|||||||
pauseOnHover
|
pauseOnHover
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="container px-4 py-4 m-auto flex-grow">{children}</div>
|
<div className="container px-4 m-auto flex-grow">{children}</div>
|
||||||
<footer className="relative h-full bg-[url('/footer-bg.svg')] bg-cover bg-no-repeat mt-40">
|
<footer>
|
||||||
<div className="relative z-10 container px-4 py-4 m-auto flex flex-col justify-center items-center mt-24 ">
|
<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 lg:w-1/2">
|
<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-10">
|
<div className="flex flex-col gap-4">
|
||||||
<Image
|
<Image
|
||||||
src={"/footer-logo.svg"}
|
src={"/footer-logo.svg"}
|
||||||
alt="Opp lens logo"
|
alt="Opp lens logo"
|
||||||
@@ -144,10 +144,10 @@ export default async function RootLayout({
|
|||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-white my-2">
|
<p className="text-black my-2">
|
||||||
Democratizing Tender Access for SMEs.
|
Democratizing Tender Access for SMEs.
|
||||||
</p>
|
</p>
|
||||||
<p className="text-white my-2">
|
<p className="text-black my-2">
|
||||||
© 2025 Opplens.com by PBL Partners AB. All Rights Reserved.
|
© 2025 Opplens.com by PBL Partners AB. All Rights Reserved.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+40
-29
@@ -42,17 +42,15 @@ export default function Home() {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<main>
|
<main className="lg:px-20">
|
||||||
<section className="lg:flex lg:flex-row justify-around items-center">
|
<section className="flex flex-col gap-4 justify-between lg:flex-row ">
|
||||||
<div className=" lg:ml-28 w-full lg:w-1/2 flex flex-col gap-10">
|
<div className="w-full flex flex-col gap-10 lg:gap-4 lg:w-1/2 lg:p-0">
|
||||||
<h1 className="font-black text-8xl text-[#013280]">AI-Powered</h1>
|
<h1 className="font-black text-6xl text-[#013280]">AI-Powered</h1>
|
||||||
<h2 className="font-black text-(--primary) text-5xl leading-14">
|
<h2 className="font-black text-(--primary) text-5xl lg:text-3xl leading-14">
|
||||||
Tender
|
Tender Management
|
||||||
<br />
|
|
||||||
Management
|
|
||||||
</h2>
|
</h2>
|
||||||
<div className="flex flex-col gap-6 ">
|
<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!
|
Win more tenders, automatically!
|
||||||
</h3>
|
</h3>
|
||||||
<p className="font-normal text-[#777]">
|
<p className="font-normal text-[#777]">
|
||||||
@@ -62,14 +60,25 @@ export default function Home() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</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]">
|
||||||
<Image
|
<span className="opacity-0 lg:opacity-100">
|
||||||
src={"/dynamic-island.svg"}
|
<Image
|
||||||
alt="dynamic island"
|
src={"/dynamic-island.svg"}
|
||||||
width={75}
|
alt="dynamic island"
|
||||||
height={22}
|
width={60}
|
||||||
className="absolute top-4 left-1/2 -translate-x-1/2"
|
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
|
<Image
|
||||||
className="-z-10 border-8 border-black rounded-4xl overflow-hidden h-full w-full"
|
className="-z-10 border-8 border-black rounded-4xl overflow-hidden h-full w-full"
|
||||||
src="/mobile.gif"
|
src="/mobile.gif"
|
||||||
@@ -80,20 +89,22 @@ export default function Home() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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">
|
<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">
|
||||||
<div className="lg:flex gap-5 text-center">
|
{advItems.map((item) => (
|
||||||
{advItems.map((item) => (
|
<article
|
||||||
<article
|
key={item.title}
|
||||||
key={item.title}
|
className="flex flex-col gap-4 text-center items-center">
|
||||||
className="flex flex-col gap-4">
|
<div className="flex flex-col items-center gap-2 lg:items-end lg:flex-row">
|
||||||
<p className="font-black text-[90px]">{item.amount}</p>
|
<p className="font-black text-[90px] lg:text-7xl">
|
||||||
<h3 className="font-semibold text-3xl capitalize text-[#99dde5]">
|
{item.amount}
|
||||||
|
</p>
|
||||||
|
<h3 className="font-semibold lg:text-xl text-3xl capitalize text-[#99dde5]">
|
||||||
{item.title}
|
{item.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="font-normal text-[16px]">{item.description}</p>
|
</div>
|
||||||
</article>
|
<p className="font-normal text-[16px]">{item.description}</p>
|
||||||
))}
|
</article>
|
||||||
</div>
|
))}
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export default function Home() {
|
|||||||
{centerFrames.map((frame, index) => (
|
{centerFrames.map((frame, index) => (
|
||||||
<article
|
<article
|
||||||
key={frame.description}
|
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
|
<Image
|
||||||
src={frame.src}
|
src={frame.src}
|
||||||
alt={frame.alt}
|
alt={frame.alt}
|
||||||
|
|||||||
Reference in New Issue
Block a user