refactor(responsive): Adjust breakpoint from md to lg for better layout

The previous `md` breakpoint (768px) caused the desktop layout to activate too early, resulting in a cramped appearance on tablet-sized screens.

This commit updates the responsive design by changing the primary breakpoint from `md` to `lg` (1024px) across the home page, contact page, and main layouts. This change ensures a more appropriate and visually balanced layout is maintained on medium-sized devices, improving the overall user experience.
This commit is contained in:
AmirReza Jamali
2025-10-26 10:42:13 +03:30
parent a78726303a
commit 3d626daa0a
11 changed files with 64 additions and 63 deletions
+18 -18
View File
@@ -47,20 +47,20 @@ export default function Home() {
];
return (
<>
<section className="block md:flex justify-around items-center">
<div className="flex gap-4 w-full md:w-1/2 font-bold text-4xl text-center flex-col bg-gray-400/10 p-10 rounded-[40px] h-fit mb-16 backdrop-blur-2xl">
<section className="block lg:flex justify-around items-center">
<div className="flex gap-4 w-full lg:w-1/2 font-bold text-4xl text-center flex-col bg-gray-400/10 p-10 rounded-[40px] h-fit mb-16 backdrop-blur-2xl">
<div className="flex flex-col gap-8">
<h2>
<span>$</span>
<span>12,345,678</span>
</h2>
<h2 className="capitalize text-2xl font-bold md:text-3xl">
<h2 className="capitalize text-2xl font-bold lg:text-3xl">
total tender amount you missed today
</h2>
</div>
<ApexChart />
</div>
<div className="m-auto w-xs md:m-0 md:w-auto -z-20 relative flex justify-center h-[650px] md:h-[750px]">
<div className="m-auto w-xs lg:m-0 lg:w-auto -z-20 relative flex justify-center h-[650px] lg:h-[750px]">
<Image
src={"/dynamic-island.svg"}
alt="dynamic island"
@@ -78,7 +78,7 @@ 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 md:p-14 -mt-16 z-20 md:ml-28">
<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">
<hgroup>
<h1 className="capitalize font-extrabold text-5xl mb-6">
democratizing the world of tenders
@@ -91,14 +91,14 @@ export default function Home() {
</p>
</hgroup>
<div className="flex justify-end">
<button className="w-full md:w-fit capitalize bg-(--primary) rounded-4xl py-4 px-6">
<button className="w-full lg:w-fit capitalize bg-(--primary) rounded-4xl py-4 px-6">
Get early access
</button>
</div>
</section>
<article className="mt-40">
<hgroup>
<h4 className="capitalize font-bold text-2xl md:text-4xl">
<h4 className="capitalize font-bold text-2xl lg:text-4xl">
your in-house tender department, powered by
<span className="uppercase">ai</span>
</h4>
@@ -108,7 +108,7 @@ export default function Home() {
</small>
</hgroup>
</article>
<section className="flex flex-col gap-4 md:flex-row">
<section className="flex flex-col gap-4 lg:flex-row">
{centerFrames.map((frame, index) => (
<article
key={frame.description}
@@ -124,7 +124,7 @@ export default function Home() {
</article>
))}
</section>
<section className="mt-36 bg-[#F7FAFF] px-4 py-6 rounded-4xl flex flex-col gap-9 md:p-16">
<section className="mt-36 bg-[#F7FAFF] px-4 py-6 rounded-4xl flex flex-col gap-9 lg:p-16">
<div className="flex flex-col gap-4">
<h2 className=" font-bold text-4xl">
Tired of Complex Tenders & Lost Opportunities?
@@ -134,8 +134,8 @@ export default function Home() {
an uphill battle.
</p>
</div>
<ul className="flex flex-col gap-4 md:flex-row md:justify-between">
<li className="flex flex-col gap-4 md:w-80">
<ul className="flex flex-col gap-4 lg:flex-row lg:justify-between">
<li className="flex flex-col gap-4 lg:w-80">
<div className="p-4">
<Image
src={"/clock.svg"}
@@ -150,7 +150,7 @@ export default function Home() {
monitor the market and prepare high-quality bids.
</p>
</li>
<li className="flex flex-col gap-4 md:w-80">
<li className="flex flex-col gap-4 lg:w-80">
<div className="p-4">
<Image
src={"/clipboard.svg"}
@@ -165,7 +165,7 @@ export default function Home() {
corporations with dedicated tender departments.
</p>
</li>
<li className="flex flex-col gap-4 md:w-80">
<li className="flex flex-col gap-4 lg:w-80">
<div className="p-4">
<Image
src={"/arrow-up.svg"}
@@ -182,14 +182,14 @@ export default function Home() {
</li>
</ul>
</section>
<section className="flex flex-col mt-36 gap-10 px-2 md:w-3/4 m-auto">
<section className="flex flex-col mt-36 gap-10 px-2 lg:w-3/4 m-auto">
<div>
<h2 className="font-bold text-2xl md:text-4xl">
<h2 className="font-bold text-2xl lg:text-4xl">
The Opplens Advantage
</h2>
</div>
<section className="flex flex-col gap-10 md:flex-row">
<div className="flex flex-col gap-7 bg-[#FFF7EB] p-10 rounded-3xl md:pb-20">
<section className="flex flex-col gap-10 lg:flex-row">
<div className="flex flex-col gap-7 bg-[#FFF7EB] p-10 rounded-3xl lg:pb-20">
<Image
src={"/people.svg"}
width={48}
@@ -205,7 +205,7 @@ export default function Home() {
</p>
</div>
</div>
<div className="flex flex-col gap-7 bg-[#E5EFFF] p-10 rounded-3xl md:pb-20">
<div className="flex flex-col gap-7 bg-[#E5EFFF] p-10 rounded-3xl lg:pb-20">
<Image
src={"/shield-tick.svg"}
width={48}