Skip to content

Commit 63d9f02

Browse files
fix: cards now have equal heights with action links aligned at bottom
1 parent b865274 commit 63d9f02

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

src/content/docs/index.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ This documentation represents a curated collection of industry-proven practices,
2626

2727
<CardGrid stagger>
2828
<Card title="React Development" icon="seti:react">
29-
Complete guides for React applications: project structure, state management, performance optimization, and authentication patterns.
30-
[Explore React →](react/project-structure/)
29+
<div>Complete guides for React applications: project structure, state management, performance optimization, and authentication patterns.</div>
30+
<p>[Explore React →](react/project-structure/)</p>
3131
</Card>
3232
<Card title="Express Backend" icon="node">
33-
Backend development with Express.js: API design, security, testing, performance, and deployment strategies.
34-
[Explore Express →](express/project-structure/)
33+
<div>Backend development with Express.js: API design, security, testing, performance, and deployment strategies.</div>
34+
<p>[Explore Express →](express/project-structure/)</p>
3535
</Card>
3636
<Card title="Flutter Mobile" icon="seti:dart">
37-
Mobile app development: Flutter architecture, state management, navigation, and cross-platform best practices.
38-
[Explore Flutter →](flutter/project-structure/)
37+
<div>Mobile app development: Flutter architecture, state management, navigation, and cross-platform best practices.</div>
38+
<p>[Explore Flutter →](flutter/project-structure/)</p>
3939
</Card>
4040
<Card title="Code Standards" icon="document">
41-
Coding conventions, linting rules, and best practices to maintain clean, consistent, and maintainable codebases.
42-
[Check Guidelines →](code-guidelines/general/)
41+
<div>Coding conventions, linting rules, and best practices to maintain clean, consistent, and maintainable codebases.</div>
42+
<p>[Check Guidelines →](code-guidelines/general/)</p>
4343
</Card>
4444
<Card title="Quick Start" icon="rocket">
45-
New to the team? Start here for essential onboarding information and contribution guidelines.
46-
[Get Started →](overview/what-is-gdg-docs/)
45+
<div>New to the team? Start here for essential onboarding information and contribution guidelines.</div>
46+
<p>[Get Started →](overview/what-is-gdg-docs/)</p>
4747
</Card>
4848
</CardGrid>

src/tailwind.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,28 @@
3131
--sl-color-gray-7: #f5f6f8;
3232
--sl-color-black: #ffffff;
3333
}
34+
35+
/* EQUAL HEIGHT CARDS WITH BOTTOM ALIGNED LINKS */
36+
.card {
37+
height: 100% !important;
38+
display: flex !important;
39+
flex-direction: column !important;
40+
}
41+
42+
.card .body {
43+
display: flex !important;
44+
flex-direction: column !important;
45+
flex: 1 !important;
46+
gap: 0 !important;
47+
}
48+
49+
.card .body > div:first-child {
50+
flex: 1 !important;
51+
margin: 0 !important;
52+
}
53+
54+
.card .body > p:last-child {
55+
margin: 0 !important;
56+
margin-top: 1rem !important;
57+
padding: 0 !important;
58+
}

0 commit comments

Comments
 (0)