Skip to content

Commit 3c7f5cb

Browse files
Fix Initiatives cards visibility on mobile - adjust padding and spacing
1 parent 5824f13 commit 3c7f5cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Pages/Initiatives.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ const Initiatives: React.FC = () => {
8383
title="Initiatives"
8484
>
8585
<motion.div
86-
className="w-full py-8 overflow-visible"
86+
className="w-full py-4 sm:py-6 md:py-8 overflow-visible px-1 sm:px-2"
8787
initial="initial"
8888
animate="animate"
8989
variants={staggerChildren}
9090
>
9191

9292
{/* Main Grid Container */}
93-
<div className="relative w-full py-8 overflow-visible">
93+
<div className="relative w-full py-4 sm:py-6 md:py-8 overflow-visible">
9494
{/* Agreements/MOUs Section */}
9595
<div className="mb-8 sm:mb-12">
9696
<h2 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-thin text-logo-red mb-4 sm:mb-6 md:mb-8">
@@ -164,19 +164,19 @@ const Initiatives: React.FC = () => {
164164
</div>
165165

166166
{/* Leading Conferences Section */}
167-
<div className="mb-12">
167+
<div className="mb-8 sm:mb-12">
168168
<h2 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-thin text-logo-red mb-4 sm:mb-6 md:mb-8">
169169
Leading Conferences
170170
</h2>
171171
{/* Grid Cards Container */}
172-
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4 md:gap-6 w-full box-border">
172+
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-4 md:gap-6 w-full box-border px-1">
173173
{categories.map((category, index) => {
174174
const perCardFallback = DEFAULT_BANNERS[category.title] || FALLBACK_BANNER;
175175

176176
return (
177177
<motion.div
178178
key={index}
179-
className="relative bg-white rounded-xl sm:rounded-2xl shadow-md border border-gray-200 hover:shadow-xl transition-shadow duration-300 box-border"
179+
className="relative bg-white rounded-xl sm:rounded-2xl shadow-md border border-gray-200 hover:shadow-xl transition-shadow duration-300 box-border w-full"
180180
initial={{ opacity: 0, y: 24 }}
181181
animate={{
182182
opacity: 1,
@@ -190,7 +190,7 @@ const Initiatives: React.FC = () => {
190190
whileHover={{ y: -2 }}
191191
>
192192
{/* Banner Image */}
193-
<div className="relative h-28 sm:h-36 md:h-44 lg:h-48 xl:h-52 overflow-hidden bg-gray-50 rounded-t-xl sm:rounded-t-2xl">
193+
<div className="relative h-32 sm:h-36 md:h-44 lg:h-48 xl:h-52 overflow-hidden bg-gray-50 rounded-t-xl sm:rounded-t-2xl">
194194
<img
195195
src={category.image || perCardFallback}
196196
alt={category.title}

0 commit comments

Comments
 (0)