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 -4
View File
@@ -17,7 +17,8 @@ const geistMono = Geist_Mono({
export const metadata: Metadata = {
title: "Opp lens - AI-Powered Tender Management",
description: "Democratizing Tender Access for SMEs with AI-Powered Tender Management.",
description:
"Democratizing Tender Access for SMEs with AI-Powered Tender Management.",
icons: {
icon: "/fav-icon.svg",
},
@@ -98,8 +99,8 @@ export default async function RootLayout({
return (
<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 md:bg-cover`}>
<header className="flex justify-center pt-8 items-center pb-4 container px-4 py-4 m-auto md:px-28 md:justify-between flex-wrap gap-5">
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">
<section>
<Link
href="/"
@@ -133,7 +134,7 @@ export default async function RootLayout({
<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 md:flex-row gap-14 w-full md:w-1/2">
<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">
<Image
src={"/footer-logo.svg"}