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:
@@ -38,7 +38,7 @@ const ContactUsPage = () => {
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col items-center mt-16 px-8 ">
|
||||
<section className="border border-gray-300 rounded-4xl w-full md:max-w-2/3 flex flex-col items-center bg-white">
|
||||
<section className="border border-gray-300 rounded-4xl w-full lg:max-w-2/3 flex flex-col items-center bg-white">
|
||||
<ContactUsForm columnsPerRow={1} />
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -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"}
|
||||
|
||||
+5
-5
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user