Skip to content

Commit 204d164

Browse files
lesnik512claude
andauthored
docs: add project lockup hero to home page (#148)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 49d2887 commit 204d164

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

docs/assets/lockup-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/assets/lockup-light.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/css/brand.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,23 @@
1515
--md-accent-fg-color: #e0a300;
1616
--md-typeset-a-color: #7fb79f;
1717
}
18+
19+
/* Centered project lockup hero on the docs home page */
20+
.mp-hero {
21+
text-align: center;
22+
margin: 1.5rem 0 2.5rem;
23+
}
24+
.mp-hero .mp-lockup {
25+
margin: 0;
26+
font-size: 0; /* collapse whitespace between the stacked <img> variants */
27+
line-height: 0;
28+
}
29+
.mp-hero .mp-logo {
30+
max-width: 420px;
31+
width: 70%;
32+
height: auto;
33+
}
34+
/* Light lockup by default; cream lockup in dark (slate) mode. */
35+
.mp-hero .mp-logo--dark { display: none; }
36+
[data-md-color-scheme="slate"] .mp-hero .mp-logo--light { display: none; }
37+
[data-md-color-scheme="slate"] .mp-hero .mp-logo--dark { display: inline; }

docs/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# Lite Bootstrap
1+
<div class="mp-hero" markdown>
22

3-
Welcome to the `lite-bootstrap` documentation!
3+
<h1 class="mp-lockup">
4+
<img class="mp-logo mp-logo--light" src="assets/lockup-light.svg" alt="lite-bootstrap">
5+
<img class="mp-logo mp-logo--dark" src="assets/lockup-dark.svg" alt="" aria-hidden="true">
6+
</h1>
7+
8+
</div>
49

510
`lite-bootstrap` assists you in creating applications with all the necessary instruments already set up.
611

0 commit comments

Comments
 (0)