Skip to content

Commit 253d853

Browse files
committed
Fix text alignment in Features and Contributions sections
- Added max-width-prose utility class to limit text width to 65ch - Added mx-auto utility class for centering content - Applied proper centering to contribution section description - Ensures descriptions are properly aligned and readable
1 parent eb31798 commit 253d853

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/components/Roadmap.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const getStatusClass = (status: string) => {
9191

9292
<div class="cta-section">
9393
<h3 class="text-2xl font-semibold mb-4">Want to Contribute?</h3>
94-
<p class="text-muted mb-6">
94+
<p class="text-muted mb-6 max-width-prose mx-auto">
9595
Every feature in DataPup is built by developers like you. Join us in creating the best database client.
9696
</p>
9797
<div class="cta-buttons">
@@ -283,8 +283,9 @@ const getStatusClass = (status: string) => {
283283
border: 1px solid rgba(255, 255, 255, 0.05);
284284
}
285285

286-
.max-width-prose {
287-
max-width: 65ch;
286+
.mx-auto {
287+
margin-left: auto;
288+
margin-right: auto;
288289
}
289290

290291
@media (max-width: 768px) {

src/styles/global.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@
144144
color: var(--color-text-secondary);
145145
}
146146

147+
.max-width-prose {
148+
max-width: 65ch;
149+
}
150+
151+
.mx-auto {
152+
margin-left: auto;
153+
margin-right: auto;
154+
}
155+
147156
/* Flex */
148157
.flex {
149158
display: flex;

0 commit comments

Comments
 (0)