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
+5 -5
View File
@@ -43,8 +43,8 @@ export default function Home() {
];
return (
<main>
<section className="md:flex md:flex-row justify-around items-center">
<div className=" md:ml-28 w-full md:w-1/2 flex flex-col gap-10">
<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
@@ -62,7 +62,7 @@ export default function Home() {
</p>
</div>
</div>
<div className="m-auto mt-5 w-xs -z-20 relative flex justify-center h-[650px] md:h-[750px] md:w-auto">
<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"
@@ -80,8 +80,8 @@ 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">
<div className="md:flex gap-5 text-center">
<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}