Skip to content

Commit 835454b

Browse files
committed
feat(docs-site): top-align mascot and span install full width [roadmap:v0.10.7]
Implements rac/roadmaps/v0.10.x-guide/v0.10.7-docs-site.md. Splits the hero into a lead row (mascot top-aligned with the headline and subhead) and a full-width actions band beneath, so the install card stretches under both columns with the CTA row below it.
1 parent 143949e commit 835454b

2 files changed

Lines changed: 49 additions & 21 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,28 @@ body,
9696
/* ===================================================================== */
9797
.lore-splash {
9898
display: flex;
99-
align-items: center;
100-
gap: 2.5rem;
99+
flex-direction: column;
100+
gap: 1.75rem;
101101
max-width: 58rem;
102102
margin: 0 auto;
103103
padding: 3rem 1rem 2rem;
104104
text-align: left;
105105
}
106106

107+
/* Lead row: mascot left, headline + subhead right, top-aligned so the
108+
mascot's top sits with the first line of the headline. */
109+
.lore-splash__lead {
110+
display: flex;
111+
align-items: flex-start;
112+
gap: 2.5rem;
113+
}
114+
107115
.lore-splash__mascot {
108116
flex: 0 0 auto;
109117
width: 220px;
110118
height: auto;
111119
display: block;
120+
margin-top: -0.5rem;
112121
padding: 1rem;
113122
border-radius: 1.25rem;
114123
background: radial-gradient(
@@ -118,7 +127,7 @@ body,
118127
);
119128
}
120129

121-
.lore-splash__body {
130+
.lore-splash__intro {
122131
flex: 1 1 auto;
123132
min-width: 0;
124133
}
@@ -129,25 +138,37 @@ body,
129138
font-weight: 700;
130139
line-height: 1.3;
131140
margin: 0 0 0.5rem;
132-
max-width: 28rem;
133141
}
134142

135143
.lore-splash__sub {
136144
color: var(--lore-text-muted);
137145
font-size: 1rem;
138-
margin: 0 0 1.5rem;
146+
margin: 0;
147+
}
148+
149+
/* Actions band: full width beneath the lead row. */
150+
.lore-splash__actions {
151+
display: flex;
152+
flex-direction: column;
153+
gap: 1rem;
139154
}
140155

141156
/* Install command — dashed terminal chrome, teal command text. */
142157
.lore-install {
143-
display: inline-flex;
158+
display: flex;
144159
align-items: center;
145160
gap: 0.5rem;
161+
width: 100%;
146162
background: var(--lore-bg-panel);
147163
border: 1px dashed var(--lore-border);
148-
padding: 0.55rem 0.75rem;
149-
margin: 0 auto;
150-
max-width: 100%;
164+
padding: 0.65rem 0.85rem;
165+
margin: 0;
166+
}
167+
.lore-install code {
168+
flex: 1 1 auto;
169+
}
170+
.lore-install__copy {
171+
flex: 0 0 auto;
151172
}
152173
.lore-install__prompt {
153174
color: var(--lore-text-muted);
@@ -186,7 +207,7 @@ body,
186207
.lore-splash__note {
187208
color: var(--lore-text-muted);
188209
font-size: 0.8rem;
189-
margin: 0.75rem 0 1.5rem;
210+
margin: 0;
190211
}
191212
.lore-splash__note code {
192213
background: none;
@@ -258,12 +279,15 @@ body,
258279

259280
@media screen and (max-width: 48rem) {
260281
.lore-splash {
261-
flex-direction: column;
262282
text-align: center;
283+
}
284+
.lore-splash__lead {
285+
flex-direction: column;
286+
align-items: center;
263287
gap: 1.25rem;
264288
}
265-
.lore-splash__title {
266-
max-width: none;
289+
.lore-splash__mascot {
290+
margin-top: 0;
267291
}
268292
.lore-cta {
269293
justify-content: center;

overrides/home.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@
1010

1111
{% block content %}
1212
<section class="lore-splash" markdown="0">
13-
<img
14-
class="lore-splash__mascot"
15-
src="{{ 'images/lamplighter.png' | url }}"
16-
alt="The Lore lamplighter, lantern raised"
17-
width="200" height="158">
18-
<div class="lore-splash__body">
19-
<h1 class="lore-splash__title">Give your coding agent the decisions your team already made — so it stops re-doing things you ruled out.</h1>
20-
<p class="lore-splash__sub">Agents that know why.</p>
13+
<div class="lore-splash__lead">
14+
<img
15+
class="lore-splash__mascot"
16+
src="{{ 'images/lamplighter.png' | url }}"
17+
alt="The Lore lamplighter, lantern raised"
18+
width="200" height="158">
19+
<div class="lore-splash__intro">
20+
<h1 class="lore-splash__title">Give your coding agent the decisions your team already made — so it stops re-doing things you ruled out.</h1>
21+
<p class="lore-splash__sub">Agents that know why.</p>
22+
</div>
23+
</div>
2124

25+
<div class="lore-splash__actions">
2226
<div class="lore-install">
2327
<span class="lore-install__prompt">$</span>
2428
<code id="lore-install-cmd">pip install requirements-as-code</code>

0 commit comments

Comments
 (0)