Skip to content

Commit 7ad1b41

Browse files
committed
fixed the visiblity issue in about us page
1 parent 8d810e3 commit 7ad1b41

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/components/AboutUs/RoadmapSection.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const RoadmapSection: React.FC = () => {
1212
{/* Section header */}
1313
<div className="text-center mb-16">
1414
<motion.h2
15-
className="text-3xl font-semibold text-slate-800 dark:text-slate-200 sm:text-4xl mb-4 tracking-tight"
15+
className="text-4xl font-semibold sm:text-5xl mb-4 tracking-tight"
1616
initial={{ opacity: 0, y: 20 }}
1717
whileInView={{ opacity: 1, y: 0 }}
1818
viewport={{ once: true }}
1919
transition={{ duration: 0.6 }}
2020
>
21-
<span className="text-blue-900 dark:text-blue-400 font-medium">
21+
<span className="text-blue-600 dark:text-blue-400 font-medium">
2222
{roadmapContent.title.prefix}
2323
</span>{' '}
2424
<span className="text-red-600 dark:text-red-400 font-medium">
@@ -27,15 +27,15 @@ const RoadmapSection: React.FC = () => {
2727
</motion.h2>
2828

2929
<motion.div
30-
className="h-0.5 w-24 bg-gradient-to-r from-blue-600 to-red-600 mx-auto mb-8"
30+
className="h-0.5 w-24 bg-gradient-to-r from-blue-500 to-red-500 dark:from-blue-400 dark:to-red-400 mx-auto mb-8"
3131
initial={{ width: 0 }}
3232
whileInView={{ width: 96 }}
3333
viewport={{ once: true }}
3434
transition={{ duration: 0.8, delay: 0.2 }}
3535
/>
3636

3737
<motion.p
38-
className="text-base sm:text-lg text-slate-600 dark:text-slate-300 max-w-3xl mx-auto"
38+
className="text-base sm:text-lg text-gray-600 dark:text-gray-300 max-w-3xl mx-auto"
3939
initial={{ opacity: 0, y: 20 }}
4040
whileInView={{ opacity: 1, y: 0 }}
4141
viewport={{ once: true }}
@@ -47,7 +47,7 @@ const RoadmapSection: React.FC = () => {
4747

4848
<div className="hidden md:block relative w-full mt-20">
4949
<motion.div
50-
className="absolute top-0 bottom-0 left-1/2 w-0.5 bg-slate-200 dark:bg-gray-700 transform -translate-x-1/2"
50+
className="absolute top-0 bottom-0 left-1/2 w-0.5 bg-gray-200 dark:bg-gray-600/50 transform -translate-x-1/2"
5151
initial={{ scaleY: 0, transformOrigin: 'top' }}
5252
whileInView={{ scaleY: 1 }}
5353
viewport={{ once: true }}
@@ -70,14 +70,14 @@ const RoadmapSection: React.FC = () => {
7070
{/* Content */}
7171
<div className={`w-3/7 ${index % 2 === 0 ? 'pr-1' : 'pl-1'}`}>
7272
<div
73-
className={`p-5 bg-white dark:bg-gray-800 rounded-lg shadow-md border-t-2 ${
74-
item.borderColor || 'border-blue-600'
75-
} transition-all duration-300 hover:shadow-lg`}
73+
className={`p-5 bg-white dark:bg-gray-800 rounded-lg shadow-md dark:shadow-xl dark:shadow-black/20
74+
border-t-2 ${item.borderColor || 'border-blue-600 dark:border-blue-400'}
75+
transition-all duration-300 hover:shadow-lg dark:hover:shadow-2xl dark:hover:shadow-black/30`}
7676
>
77-
<h3 className="text-base font-semibold text-slate-800 mb-2 pb-2 border-b border-slate-100">
77+
<h3 className="text-base font-semibold text-gray-900 dark:text-gray-100 mb-2 pb-2 border-b border-gray-100 dark:border-gray-700">
7878
{item.title}
7979
</h3>
80-
<p className="text-slate-600 dark:text-slate-400 text-sm">
80+
<p className="text-gray-600 dark:text-gray-300 text-sm">
8181
{item.description || 'Milestone in our journey'}
8282
</p>
8383
</div>
@@ -138,9 +138,9 @@ const RoadmapSection: React.FC = () => {
138138

139139
{/* Card */}
140140
<div
141-
className={`flex-grow p-5 bg-white dark:bg-gray-800 rounded-lg shadow-md border-l-2 ${
142-
item.borderColor || 'border-blue-600'
143-
}`}
141+
className={`flex-grow p-5 bg-white dark:bg-gray-800/90 rounded-lg shadow-md dark:shadow-xl dark:shadow-black/20
142+
border-l-2 ${item.borderColor ? item.borderColor.replace('border-', 'border-') + ' dark:' + item.borderColor.replace('blue', 'blue').replace('red', 'red') : 'border-blue-600 dark:border-blue-400'}
143+
backdrop-blur-sm`}
144144
>
145145
<h3 className="text-base font-semibold text-slate-800 mb-2 pb-2 border-b border-slate-100">
146146
{item.title}

0 commit comments

Comments
 (0)