Skip to content

Commit b65ae1f

Browse files
starbopsclaude
andcommitted
fix: center text content across all pages for optimal readability
- Fix homepage, pricing, features, and blog pages text alignment - Replace problematic 'prose max-w-none' with centered prose classes - Update all main content sections to use consistent container classes - Add new prose-centered and prose-main-content CSS classes - Ensure optimal reading width (max-w-4xl) with proper centering - Standardize container usage across pricing page sections Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent dca2ba1 commit b65ae1f

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

assets/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
@apply max-w-4xl mx-auto;
1111
}
1212

13+
/* Centered prose content with optimal reading width */
14+
.prose-centered {
15+
@apply max-w-4xl mx-auto text-left;
16+
}
17+
18+
/* Prose content specifically for main content sections */
19+
.prose-main-content {
20+
@apply max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16;
21+
}
22+
1323
/* Ensure optimal reading line length for different screen sizes */
1424
.prose-content {
1525
@apply max-w-prose mx-auto px-4 sm:px-6 lg:px-8;

layouts/_default/features.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ <h3 class="text-xl font-heading font-bold text-gray-900">{{ .title }}</h3>
212212
{{ end }}
213213

214214
{{/* Main Content */}}
215-
<div class="container mx-auto px-4 py-16">
216-
<div class="prose max-w-none">
215+
<div class="container-consistent">
216+
<div class="prose prose-main-content">
217217
{{ .Content }}
218218
</div>
219219
</div>

layouts/_default/pricing.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
{{/* Hero Section */}}
44
{{ with .Params.hero }}
55
{{ if .enable }}
6-
<section class="section bg-gradient-to-b from-blue-50 to-white">
7-
<div class="container">
8-
<div class="text-center max-w-4xl mx-auto">
9-
<h1 class="text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-gray-900 mb-6 leading-tight">
6+
<section class="section-content bg-gradient-to-b from-blue-50 to-white">
7+
<div class="container-consistent">
8+
<div class="text-center reading-width-wide">
9+
<h1 class="responsive-title">
1010
{{ .title | markdownify }}
1111
</h1>
1212
{{ with .subtitle }}
13-
<p class="text-xl text-gray-600 leading-relaxed">
13+
<p class="responsive-subtitle">
1414
{{ . }}
1515
</p>
1616
{{ end }}
@@ -23,8 +23,8 @@ <h1 class="text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-gray-900
2323
{{/* Pricing Tiers */}}
2424
{{ with .Params.pricing_tiers }}
2525
{{ if .enable }}
26-
<section class="section bg-white">
27-
<div class="container">
26+
<section class="section-content bg-white">
27+
<div class="container-consistent">
2828
{{ with .tiers }}
2929
<div class="grid gap-8 lg:grid-cols-4">
3030
{{ range $tier := . }}
@@ -100,7 +100,7 @@ <h4 class="text-sm font-semibold text-gray-900 mb-3">Overage Pricing:</h4>
100100
{{ with .Params.feature_comparison }}
101101
{{ if .enable }}
102102
<section class="section bg-gray-50">
103-
<div class="container">
103+
<div class="container-consistent">
104104
<div class="text-center mb-16">
105105
<h2 class="text-3xl md:text-4xl font-heading font-bold text-gray-900 mb-4">
106106
{{ .title | markdownify }}
@@ -211,8 +211,8 @@ <h3 class="text-xl font-heading font-bold text-gray-900 mb-6 border-b border-gra
211211
{{/* FAQ Section */}}
212212
{{ with .Params.faq }}
213213
{{ if .enable }}
214-
<section class="section bg-white">
215-
<div class="container">
214+
<section class="section-content bg-white">
215+
<div class="container-consistent">
216216
<div class="text-center mb-16">
217217
<h2 class="text-3xl md:text-4xl font-heading font-bold text-gray-900 mb-4">
218218
{{ .title | markdownify }}
@@ -242,8 +242,8 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3">{{ .question }}</h3>
242242
{{ end }}
243243

244244
{{/* Main Content */}}
245-
<div class="container mx-auto px-4 py-16">
246-
<div class="prose max-w-none">
245+
<div class="container-consistent">
246+
<div class="prose prose-main-content">
247247
{{ .Content }}
248248
</div>
249249
</div>

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1 class="responsive-title mb-4">{{ .Title }}</h1>
3131
{{ end }}
3232

3333
<!-- Content with optimal reading width -->
34-
<div class="prose prose-lg reading-width-wide">
34+
<div class="prose prose-lg prose-centered">
3535
{{ .Content }}
3636
</div>
3737
</article>

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
{{ end }}
5151

5252
{{/* Main Content */}}
53-
<div class="container mx-auto px-4 py-16">
54-
<div class="prose max-w-none">
53+
<div class="container-consistent">
54+
<div class="prose prose-main-content">
5555
{{ .Content }}
5656
</div>
5757
</div>

0 commit comments

Comments
 (0)