Skip to content

Commit 2517ba9

Browse files
committed
feat(styles): update community section layout and enhance comparison table styling
1 parent d51c626 commit 2517ba9

File tree

1 file changed

+16
-71
lines changed

1 file changed

+16
-71
lines changed

src/components/HomepageFeatures/styles.module.css

Lines changed: 16 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
/* Comparison Table Section */
125125
.comparisonSection {
126126
padding: 4rem 0;
127+
background-color: var(--ifm-color-emphasis-100);
127128
}
128129

129130
.tableWrapper {
@@ -145,7 +146,7 @@
145146
}
146147

147148
.comparisonTable th {
148-
background-color: var(--ifm-color-emphasis-100);
149+
background-color: var(--ifm-color-emphasis-200);
149150
font-weight: bold;
150151
}
151152

@@ -178,92 +179,36 @@
178179
/* Community Section */
179180
.communitySection {
180181
padding: 4rem 0;
181-
background-color: var(--ifm-color-emphasis-900);
182-
color: var(--ifm-color-white);
183-
}
184-
185-
.communitySection h2,
186-
.communitySection p {
187-
color: var(--ifm-color-white);
182+
background-color: var(--ifm-color-emphasis-0);
188183
}
189184

190185
.communityCard {
191-
display: block;
192186
height: 100%;
193-
padding: 1.5rem;
187+
padding: 2rem;
194188
border-radius: 8px;
195-
background-color: var(--ifm-color-emphasis-800);
196-
transition: all 0.3s ease;
197-
text-decoration: none;
198-
color: var(--ifm-color-white);
199-
}
200-
201-
.communityCard:hover {
202-
background-color: var(--ifm-color-emphasis-700);
203-
transform: translateY(-5px);
204-
text-decoration: none;
205-
color: var(--ifm-color-white);
206-
}
207-
208-
.communityCardIcon {
209-
margin-bottom: 1rem;
210-
width: 50px;
211-
height: 50px;
189+
background-color: var(--ifm-color-emphasis-100);
190+
text-align: center;
212191
display: flex;
192+
flex-direction: column;
213193
align-items: center;
214-
justify-content: center;
194+
justify-content: space-between;
215195
}
216196

217-
/* Community icons - these would be replaced with actual SVG icons in a real implementation */
218-
.communityIconGithub {
219-
width: 100%;
220-
height: 100%;
221-
position: relative;
222-
}
223-
224-
.communityIconGithub::after {
225-
content: "🐙";
226-
font-size: 24px;
227-
position: absolute;
228-
top: 50%;
229-
left: 50%;
230-
transform: translate(-50%, -50%);
231-
}
232-
233-
.communityIconPaper {
234-
width: 100%;
235-
height: 100%;
236-
position: relative;
237-
}
238-
239-
.communityIconPaper::after {
240-
content: "📄";
241-
font-size: 24px;
242-
position: absolute;
243-
top: 50%;
244-
left: 50%;
245-
transform: translate(-50%, -50%);
197+
.communityCard h3 {
198+
margin-bottom: 1rem;
246199
}
247200

248-
.communityIconDiscord {
249-
width: 100%;
250-
height: 100%;
251-
position: relative;
201+
.communityCard p {
202+
margin-bottom: 1.5rem;
252203
}
253204

254-
.communityIconDiscord::after {
255-
content: "💬";
256-
font-size: 24px;
257-
position: absolute;
258-
top: 50%;
259-
left: 50%;
260-
transform: translate(-50%, -50%);
261-
}
262-
263-
/* Responsive adjustments */
264205
@media screen and (max-width: 996px) {
265206
.comparisonTable th,
266207
.comparisonTable td {
267208
padding: 0.75rem;
268209
}
210+
211+
.communityCard {
212+
margin-bottom: 2rem;
213+
}
269214
}

0 commit comments

Comments
 (0)