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
+40 -29
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">
<Image
src={"/dynamic-island.svg"}
alt="dynamic island"
width={75}
height={22}
className="absolute top-4 left-1/2 -translate-x-1/2"
/>
<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={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">
{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]">
<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 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>
<p className="font-normal text-[16px]">{item.description}</p>
</article>
))}
</div>
</div>
<p className="font-normal text-[16px]">{item.description}</p>
</article>
))}
</section>
</main>
);