Skip to content

Commit 7c3be8d

Browse files
authored
Merge pull request #99 from danbaruka/fix/improve-nav-footer-accessibility-colors
Chore: Fix/improve nav footer accessibility colors (#94)
2 parents cf2fe0f + 3867323 commit 7c3be8d

File tree

8 files changed

+907
-79
lines changed

8 files changed

+907
-79
lines changed

website/src/components/HomepageFeatures/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import styles from './styles.module.css';
66
type FeatureItem = {
77
title: string;
88
description: ReactNode;
9+
image: string;
910
};
1011

1112
const FeatureList: FeatureItem[] = [
@@ -18,6 +19,7 @@ const FeatureList: FeatureItem[] = [
1819
to enhance the Cardano Layer 1 developer experience.
1920
</>
2021
),
22+
image: '/img/OSC-con.png',
2123
},
2224
{
2325
title: 'Developer Advocate Program',
@@ -28,6 +30,7 @@ const FeatureList: FeatureItem[] = [
2830
programs within the Cardano ecosystem.
2931
</>
3032
),
33+
image: '/img/DA-icon.png',
3134
},
3235
{
3336
title: 'Member-Driven Organization',
@@ -38,14 +41,18 @@ const FeatureList: FeatureItem[] = [
3841
the Cardano ecosystem through collaborative innovation.
3942
</>
4043
),
44+
image: '/img/IntersectMBO.svg',
4145
},
4246
];
4347

44-
function Feature({title, description}: FeatureItem) {
48+
function Feature({title, description, image}: FeatureItem) {
4549
return (
4650
<div className={clsx('col col--4')}>
4751
<div className={styles.featureCard}>
4852
<div className={styles.featureContent}>
53+
<div className={styles.featureImageContainer}>
54+
<img src={image} alt={title} className={styles.featureImage} />
55+
</div>
4956
<Heading as="h3" className={styles.featureTitle}>{title}</Heading>
5057
<p className={styles.featureDescription}>{description}</p>
5158
</div>

website/src/components/HomepageFeatures/styles.module.css

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,63 @@
2525

2626
.featureCard {
2727
background: #ffffff;
28-
border: 1px solid rgba(1, 40, 170, 0.1);
28+
border: 1px solid rgba(37, 85, 254, 0.1);
2929
border-radius: 16px;
3030
padding: 2.5rem 2rem;
3131
height: 100%;
3232
transition: all 0.3s ease;
33-
box-shadow: 0 2px 8px rgba(1, 40, 170, 0.05);
33+
box-shadow: 0 2px 8px rgba(37, 85, 254, 0.05);
3434
}
3535

3636
.featureCard:hover {
3737
border-color: var(--ifm-color-primary);
38-
box-shadow: 0 8px 32px rgba(1, 40, 170, 0.15);
38+
box-shadow: 0 8px 32px rgba(37, 85, 254, 0.15);
3939
transform: translateY(-4px);
4040
}
4141

4242
.featureContent {
4343
text-align: center;
44+
display: flex;
45+
flex-direction: column;
46+
align-items: center;
47+
gap: 1.5rem;
48+
}
49+
50+
.featureImageContainer {
51+
width: 120px;
52+
height: 120px;
53+
display: flex;
54+
align-items: center;
55+
justify-content: center;
56+
background: linear-gradient(135deg, rgba(37, 85, 254, 0.05) 0%, rgba(46, 123, 255, 0.05) 100%);
57+
border-radius: 20px;
58+
padding: 1.5rem;
59+
transition: all 0.3s ease;
60+
}
61+
62+
.featureCard:hover .featureImageContainer {
63+
background: linear-gradient(135deg, rgba(37, 85, 254, 0.1) 0%, rgba(46, 123, 255, 0.1) 100%);
64+
transform: scale(1.05);
65+
}
66+
67+
.featureImage {
68+
width: 100%;
69+
height: 100%;
70+
object-fit: contain;
71+
filter: drop-shadow(0 4px 12px rgba(37, 85, 254, 0.15));
72+
transition: all 0.3s ease;
73+
}
74+
75+
.featureCard:hover .featureImage {
76+
filter: drop-shadow(0 6px 20px rgba(37, 85, 254, 0.25));
77+
transform: scale(1.05);
4478
}
4579

4680
.featureTitle {
4781
font-size: 1.5rem;
4882
font-weight: 600;
49-
color: var(--ifm-color-primary);
50-
margin-bottom: 1.5rem;
83+
color: #f55521;
84+
margin: 0;
5185
line-height: 1.3;
5286
}
5387

@@ -65,12 +99,28 @@
6599

66100
[data-theme='dark'] .featureCard {
67101
background: var(--ifm-background-surface-color);
68-
border-color: rgba(77, 102, 209, 0.2);
102+
border-color: rgba(46, 123, 255, 0.2);
69103
}
70104

71105
[data-theme='dark'] .featureCard:hover {
72106
border-color: var(--ifm-color-primary);
73-
box-shadow: 0 8px 32px rgba(77, 102, 209, 0.2);
107+
box-shadow: 0 8px 32px rgba(46, 123, 255, 0.2);
108+
}
109+
110+
[data-theme='dark'] .featureImageContainer {
111+
background: linear-gradient(135deg, rgba(46, 123, 255, 0.05) 0%, rgba(46, 123, 255, 0.1) 100%);
112+
}
113+
114+
[data-theme='dark'] .featureCard:hover .featureImageContainer {
115+
background: linear-gradient(135deg, rgba(46, 123, 255, 0.1) 0%, rgba(46, 123, 255, 0.15) 100%);
116+
}
117+
118+
[data-theme='dark'] .featureImage {
119+
filter: drop-shadow(0 4px 12px rgba(46, 123, 255, 0.2));
120+
}
121+
122+
[data-theme='dark'] .featureCard:hover .featureImage {
123+
filter: drop-shadow(0 6px 20px rgba(46, 123, 255, 0.3));
74124
}
75125

76126
/* Responsive design */

0 commit comments

Comments
 (0)