Skip to content

Commit ff111c2

Browse files
committed
docs(pages): fix hero size, heading/prose color bleed, badge wrapping, footer styling
Made-with: Cursor
1 parent 567b104 commit ff111c2

File tree

1 file changed

+71
-30
lines changed

1 file changed

+71
-30
lines changed

docs/_layouts/default.html

Lines changed: 71 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,20 @@
5555

5656
/* ── Hero overrides ── */
5757
.page-header {
58-
padding: 3rem 2rem 2.5rem;
59-
background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2332 100%);
60-
}
61-
.page-header .project-name {
62-
font-size: 2.4rem;
63-
letter-spacing: 0.02em;
64-
margin-bottom: 0.5rem;
65-
}
66-
.page-header .project-tagline {
67-
font-size: 1rem;
68-
opacity: 0.75;
69-
margin-bottom: 1.5rem;
58+
padding: 5rem 2rem 4rem;
59+
background: linear-gradient(160deg, #0d1117 0%, #161b22 60%, #1a2332 100%);
7060
}
61+
/* Hide Cayman's default title/tagline — we render our own */
62+
.page-header .project-name,
63+
.page-header .project-tagline { display: none; }
64+
7165
.hero-logo {
7266
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
73-
font-size: 2rem;
67+
font-size: 3.6rem;
7468
font-weight: 700;
75-
margin-bottom: 0.6rem;
69+
margin-bottom: 0.5rem;
7670
letter-spacing: 0.04em;
71+
line-height: 1;
7772
}
7873
.hero-logo .prompt { color: #3fb950; }
7974
.hero-logo .word { color: #e6edf3; }
@@ -85,13 +80,19 @@
8580
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
8681
.hero-tagline {
8782
font-family: "SFMono-Regular", Consolas, monospace;
88-
font-size: 0.8rem;
83+
font-size: 0.82rem;
8984
color: #8b949e;
90-
letter-spacing: 0.06em;
91-
margin-bottom: 1.8rem;
85+
letter-spacing: 0.07em;
86+
margin-bottom: 2rem;
87+
}
88+
.hero-badges {
89+
display: flex;
90+
flex-wrap: wrap;
91+
justify-content: center;
92+
gap: 4px;
93+
margin-bottom: 1.6rem;
9294
}
93-
.hero-badges { margin-bottom: 1rem; }
94-
.hero-badges img { margin: 2px; }
95+
.hero-badges img { display: block; }
9596
.btn-hero {
9697
display: inline-block;
9798
margin: 0.3rem 0.4rem;
@@ -106,26 +107,45 @@
106107
transition: background 0.15s, border-color 0.15s;
107108
}
108109
.btn-hero:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); }
109-
.btn-hero-primary {
110-
background: #238636;
111-
border-color: #2ea043;
112-
}
110+
.btn-hero-primary { background: #238636; border-color: #2ea043; }
113111
.btn-hero-primary:hover { background: #2ea043; }
114112

115113
/* ── Content overrides ── */
116114
.main-content {
117-
max-width: 900px;
115+
max-width: 920px;
116+
}
117+
/* Fix Cayman's teal h2/h3 color bleed */
118+
.main-content h1,
119+
.main-content h2,
120+
.main-content h3,
121+
.main-content h4 {
122+
color: #24292f;
118123
}
119124
.main-content h2 {
120-
border-bottom: 1px solid #21262d;
125+
border-bottom: 1px solid #d0d7de;
121126
padding-bottom: 0.4rem;
122127
}
128+
/* Fix teal paragraph text from Cayman link inheritance */
129+
.main-content p,
130+
.main-content li,
131+
.main-content blockquote {
132+
color: #24292f;
133+
}
134+
.main-content blockquote {
135+
border-left: 4px solid #d0d7de;
136+
padding: 0.5rem 1rem;
137+
background: #f6f8fa;
138+
border-radius: 0 4px 4px 0;
139+
}
140+
.main-content blockquote p { margin: 0; }
141+
.main-content a { color: #0969da; }
123142
.main-content code {
124-
background: #161b22;
125-
border: 1px solid #21262d;
143+
background: #f6f8fa;
144+
border: 1px solid #d0d7de;
126145
border-radius: 4px;
127146
padding: 1px 5px;
128147
font-size: 0.88em;
148+
color: #24292f;
129149
}
130150

131151
/* ── Feature grid ── */
@@ -195,11 +215,32 @@
195215

196216
/* ── Footer ── */
197217
.site-footer {
198-
border-top: 1px solid #21262d;
199-
background: #0d1117;
218+
border-top: 1px solid #d0d7de;
219+
background: #f6f8fa;
220+
padding: 1.2rem 2rem;
221+
font-size: 0.8rem;
222+
color: #57606a;
200223
}
201224
.site-footer-owner a,
202-
.site-footer-credits a { color: #58a6ff; }
225+
.site-footer-credits a { color: #0969da; }
226+
227+
/* ── Screenshot ── */
228+
.screenshot-wrap {
229+
text-align: center;
230+
margin: 1.8rem 0;
231+
}
232+
.screenshot-wrap img {
233+
max-width: 100%;
234+
border-radius: 8px;
235+
border: 1px solid #d0d7de;
236+
box-shadow: 0 4px 20px rgba(0,0,0,0.12);
237+
}
238+
.screenshot-wrap figcaption {
239+
font-size: 0.78rem;
240+
color: #57606a;
241+
margin-top: 8px;
242+
font-family: "SFMono-Regular", Consolas, monospace;
243+
}
203244
</style>
204245
</head>
205246
<body>

0 commit comments

Comments
 (0)