Skip to content

Commit e77e7ac

Browse files
authored
Merge pull request #22 from rezacute/v02-01-in-memory-broker
Fix root page styling and improve user experience
2 parents f877030 + 9400b31 commit e77e7ac

2 files changed

Lines changed: 98 additions & 7 deletions

File tree

docs/assets/css/custom/documentation.css

Lines changed: 92 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,63 @@
1616
text-align: center;
1717
}
1818

19-
.docs-container-page h2 {
20-
margin-top: 3rem;
21-
margin-bottom: 1.5rem;
19+
/* Special styling for root page subtitle */
20+
.docs-container-page h1 + p strong {
21+
font-size: 1.2rem;
22+
color: #4a5568;
23+
font-weight: 500;
24+
}
25+
26+
/* Action buttons styling for root page */
27+
.action-buttons {
28+
display: flex;
29+
gap: 1rem;
30+
justify-content: center;
31+
margin: 2rem 0;
32+
flex-wrap: wrap;
33+
}
34+
35+
.btn {
36+
display: inline-block;
37+
padding: 0.75rem 1.5rem;
38+
border-radius: 8px;
39+
text-decoration: none;
40+
font-weight: 500;
41+
font-size: 1rem;
42+
transition: all 0.2s ease;
43+
border: 2px solid transparent;
44+
}
45+
46+
.btn-primary {
47+
background: linear-gradient(135deg, #4169E1, #1E3A8A);
48+
color: white;
49+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
50+
}
51+
52+
.btn-primary:hover {
53+
transform: translateY(-2px);
54+
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
55+
color: white;
56+
text-decoration: none;
57+
}
58+
59+
.btn-secondary {
60+
background: white;
61+
color: #4a5568;
62+
border: 2px solid #e2e8f0;
63+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
64+
}
65+
66+
.btn-secondary:hover {
67+
background: #f8fafc;
68+
border-color: #cbd5e0;
69+
transform: translateY(-1px);
70+
box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
2271
color: #2d3748;
23-
font-size: 1.8rem;
24-
font-weight: 600;
72+
text-decoration: none;
2573
}
2674

75+
/* Feature sections styling */
2776
.docs-container-page h3 {
2877
margin-top: 2.5rem;
2978
margin-bottom: 1.25rem;
@@ -32,6 +81,24 @@
3281
font-weight: 600;
3382
}
3483

84+
/* Emoji in headings */
85+
.docs-container-page h3:has-text("🔧"),
86+
.docs-container-page h3:has-text("⚡"),
87+
.docs-container-page h3:has-text("🚀"),
88+
.docs-container-page h3:has-text("🔒") {
89+
display: flex;
90+
align-items: center;
91+
gap: 0.5rem;
92+
}
93+
94+
.docs-container-page h2 {
95+
margin-top: 3rem;
96+
margin-bottom: 1.5rem;
97+
color: #2d3748;
98+
font-size: 1.8rem;
99+
font-weight: 600;
100+
}
101+
35102
/* Fix code blocks in documentation pages */
36103
.docs-container-page pre {
37104
margin: 2rem 0;
@@ -150,6 +217,15 @@
150217
text-decoration: none;
151218
}
152219

220+
/* Don't apply link styling to buttons */
221+
.docs-container-page .btn {
222+
border-bottom: none !important;
223+
}
224+
225+
.docs-container-page .btn:hover {
226+
border-bottom: none !important;
227+
}
228+
153229
/* Paragraph spacing */
154230
.docs-container-page p {
155231
margin-bottom: 1.75rem;
@@ -319,4 +395,15 @@
319395
padding-right: 3rem;
320396
font-size: 13px;
321397
}
398+
399+
.action-buttons {
400+
flex-direction: column;
401+
align-items: center;
402+
}
403+
404+
.btn {
405+
width: 100%;
406+
max-width: 200px;
407+
text-align: center;
408+
}
322409
}

docs/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: docs
33
title: Kincir - High-Performance Rust Message Streaming
44
description: Unified message streaming library for Rust with support for multiple broker backends
55
---
@@ -10,7 +10,11 @@ description: Unified message streaming library for Rust with support for multipl
1010

1111
Kincir is a unified message streaming library for Rust that provides a consistent interface for working with multiple message broker backends.
1212

13-
[Get Started](docs/getting-started.html) | [View on GitHub](https://github.com/rezacute/kincir) | [Crates.io](https://crates.io/crates/kincir)
13+
<div class="action-buttons">
14+
<a href="docs/getting-started.html" class="btn btn-primary">Get Started</a>
15+
<a href="https://github.com/rezacute/kincir" class="btn btn-secondary">View on GitHub</a>
16+
<a href="https://crates.io/crates/kincir" class="btn btn-secondary">Crates.io</a>
17+
</div>
1418

1519
---
1620

0 commit comments

Comments
 (0)