Skip to content

Commit 20232f2

Browse files
committed
Refactor layout and spacing in Content, Datasets, and Sectors components for improved responsiveness
1 parent 7c72055 commit 20232f2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

app/[locale]/(user)/components/Content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const Content = () => {
4444
'Urban Development',
4545
];
4646
return (
47-
<main className="bg-primaryBlue py-10 md:px-8 lg:py-20">
48-
<div className="container flex items-center justify-around gap-20 ">
47+
<main className="bg-primaryBlue py-6 md:py-10 md:px-8 lg:py-20">
48+
<div className="container md:px-12 px-10 lg:px-8 flex items-center justify-around gap-20 ">
4949
<div className="flex flex-col gap-11 lg:w-[49%]">
5050
<div className="flex flex-col">
5151
<Text variant="heading3xl" color="onBgDefault">

app/[locale]/(user)/components/Datasets.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const Datasets = () => {
5252
const router = useRouter();
5353

5454
return (
55-
<div className=" container pt-10 md:px-8 lg:pt-20">
56-
<div className="flex flex-col gap-2 p-3 md:p-0 lg:p-0 ">
55+
<div className=" container py-10 md:px-8 lg:py-20">
56+
<div className="flex flex-col gap-2 px-4 md:px-12 lg:px-12">
5757
<Text variant="heading3xl">Popular Datasets</Text>
5858
<div className="flex flex-wrap justify-between gap-2 ">
5959
<Text variant="headingLg" fontWeight="medium">
@@ -70,11 +70,11 @@ const Datasets = () => {
7070
</Button>
7171
</div>
7272
</div>
73-
<div className="mt-10 ">
73+
<div className="mt-12">
7474
<Carousel className="flex w-full justify-between">
7575
<CarouselPrevious />
7676

77-
<CarouselContent className="p-4 ">
77+
<CarouselContent className="p-4">
7878
{isLoading ? (
7979
<div className="p-8">
8080
<Spinner />

app/[locale]/(user)/components/Sectors.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const Sectors = () => {
3636
.join('+'); // Join with '+'
3737
}
3838
return (
39-
<div className="container py-10 lg:py-20 md:px-8">
40-
<div className="flex flex-col gap-2 px-2 lg:px-0 md:px-0">
39+
<div className="container pt-10 md:px-8 lg:pt-20">
40+
<div className="flex flex-col gap-2 px-4 md:px-12 lg:px-12 ">
4141
<Text variant="heading3xl">Explore Sectors</Text>
4242
<div className="flex flex-wrap justify-between gap-2">
4343
<Text variant="headingLg" fontWeight="medium">
@@ -60,7 +60,7 @@ const Sectors = () => {
6060
<Spinner />
6161
</div>
6262
) : (
63-
<div className="mt-10 grid w-full grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
63+
<div className="mt-12 grid w-full grid-cols-1 gap-6 px-4 md:grid-cols-2 md:px-12 lg:grid-cols-3 lg:px-12">
6464
{data?.sectors.map((sectors: any) => (
6565
<Link
6666
href={`/sectors/${sectors.slug}?sectors=${capitalizeWords(sectors.slug)}`}

app/[locale]/(user)/components/datasets.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
min-height: 280px;
44
max-height: 280px;
55
@media screen and (max-width: 1120px) {
6-
min-height: 360px;
7-
max-height: 360px;
6+
min-height: 390px;
7+
max-height: 390px;
88
}
99
}
1010
}

0 commit comments

Comments
 (0)