Skip to content

Commit e20958a

Browse files
authored
Improve UI responsiveness and styling on About, Leadership, and Contact pages (#506)
* adjusted overflowing layout, navigation dropdown alignment * enhanced ui consistency in about, leadership, contact pages * linting error checked
1 parent 95cd6f8 commit e20958a

File tree

3 files changed

+80
-36
lines changed

3 files changed

+80
-36
lines changed

src/components/AboutUs/GoalsSection.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ const GoalsSection: FC = () => {
4747
{goals.map((goal, i) => (
4848
<motion.div
4949
key={i}
50-
className="bg-white dark:bg-gray-800 rounded-lg shadow-sm p-6 border border-slate-100 dark:border-gray-700 transition-all duration-300
51-
hover:shadow-md group relative overflow-hidden"
50+
className="bg-white dark:bg-gray-800 rounded-lg shadow-sm p-6 border border-slate-100 dark:border-gray-700 transition-shadow group relative overflow-hidden"
5251
initial={animations.goalItem.initial}
5352
whileInView={{ opacity: 1, x: 0 }}
54-
whileHover={{ y: -5 }}
53+
whileHover={{
54+
y: -5,
55+
boxShadow: '0 12px 20px rgba(0,0,0,0.12)',
56+
transition: { duration: 0.3, ease: 'easeInOut' },
57+
}}
5558
viewport={{ once: true }}
56-
transition={{ duration: 0.5, delay: 0.1 * (i % 6) }}
5759
>
5860
{/* Decorative element - colored top border */}
5961
<div

src/pages/About/ContactUs.tsx

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Card: React.FC<CardProps> = ({ icon, title, content }) => (
2424
className="relative bg-gradient-to-b from-white to-red-50 dark:from-gray-800 dark:to-gray-900
2525
border border-gray-200 dark:border-gray-700
2626
rounded-2xl p-8 text-center shadow-md hover:shadow-xl
27-
transition-all duration-300 overflow-hidden"
27+
transition-[box-shadow] duration-300 overflow-hidden"
2828
variants={cardFadeIn}
2929
whileHover={{ scale: 1.05, y: -4 }}
3030
>
@@ -193,36 +193,43 @@ const ContactUs = () => {
193193
variants={fadeIn}
194194
>
195195
{socialLinks.map((social) => (
196-
<motion.a
197-
key={social.href}
198-
href={social.href}
199-
target="_blank"
200-
rel="noopener noreferrer"
201-
className="w-24 h-24 bg-white dark:bg-gray-800 shadow-md rounded-2xl
202-
flex flex-col items-center justify-center
203-
border border-gray-200 dark:border-gray-700 hover:shadow-lg
204-
hover:bg-red-50 dark:hover:bg-gray-700 hover:border-red-300
205-
transition-all duration-300"
206-
variants={cardFadeIn}
207-
initial="hidden"
208-
whileInView="visible"
209-
viewport={{ once: true, amount: 0.2 }}
210-
whileHover={{ scale: 1.05, y: -3 }}
211-
>
212-
<div className="w-10 h-10 flex items-center justify-center mb-1">
213-
<img
214-
src={social.icon}
215-
alt=""
216-
width={28}
217-
height={28}
218-
className="filter brightness-0 dark:invert opacity-90"
219-
aria-hidden="true"
220-
/>
221-
</div>
222-
<span className="text-xs text-gray-700 dark:text-gray-300 font-medium text-center">
223-
{social.name}
224-
</span>
225-
</motion.a>
196+
<div className="flex justify-center">
197+
<motion.a
198+
key={social.href}
199+
href={social.href}
200+
target="_blank"
201+
rel="noopener noreferrer"
202+
className="w-24 h-24 bg-white dark:bg-gray-800 shadow-md rounded-2xl flex flex-col items-center justify-center border border-gray-200 dark:border-gray-700"
203+
variants={cardFadeIn}
204+
initial="hidden"
205+
whileInView="visible"
206+
viewport={{ once: true, amount: 0.2 }}
207+
whileHover={{
208+
scale: 1.05,
209+
y: -3,
210+
transition: {
211+
type: 'spring',
212+
stiffness: 300,
213+
damping: 20,
214+
},
215+
}}
216+
style={{ transformOrigin: 'center center' }}
217+
>
218+
<div className="w-10 h-10 flex items-center justify-center mb-1">
219+
<img
220+
src={social.icon}
221+
alt=""
222+
width={28}
223+
height={28}
224+
className="filter brightness-0 dark:invert opacity-90"
225+
aria-hidden="true"
226+
/>
227+
</div>
228+
<span className="text-xs text-gray-700 dark:text-gray-300 font-medium text-center">
229+
{social.name}
230+
</span>
231+
</motion.a>
232+
</div>
226233
))}
227234
</motion.div>
228235
</motion.section>
@@ -260,7 +267,10 @@ const ContactUs = () => {
260267
to="matrix"
261268
className="inline-block px-6 py-3 bg-red-600 dark:bg-red-500 text-white rounded-full hover:bg-red-700 dark:hover:bg-red-400 transition-colors font-medium whitespace-nowrap"
262269
>
263-
Join Chat →
270+
<span>Join Chat</span>
271+
<span className="ml-1 text-lg leading-none relative top-[-1.2px]">
272+
273+
</span>
264274
</Link>
265275
</div>
266276
</div>

src/styles/globals.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,35 @@
176176
@apply bg-background text-foreground;
177177
}
178178
}
179+
180+
.custom-scrollbar::-webkit-scrollbar {
181+
width: 6px;
182+
}
183+
184+
.custom-scrollbar::-webkit-scrollbar-track {
185+
background: #f0f0f0;
186+
}
187+
188+
.custom-scrollbar::-webkit-scrollbar-thumb {
189+
background-color: #a0a0a0;
190+
border-radius: 4px;
191+
}
192+
193+
.dark .custom-scrollbar::-webkit-scrollbar-track {
194+
background: #2d2d2d;
195+
}
196+
197+
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
198+
background-color: #555;
199+
border-radius: 4px;
200+
}
201+
202+
.custom-scrollbar {
203+
scrollbar-width: thin;
204+
scrollbar-color: #a0a0a0 #f0f0f0;
205+
}
206+
207+
.dark .custom-scrollbar {
208+
scrollbar-width: thin;
209+
scrollbar-color: #555 #2d2d2d;
210+
}

0 commit comments

Comments
 (0)