Skip to content

Commit 670b38e

Browse files
committed
style: enhance header layout and add new CSS styles
1 parent 7cd815f commit 670b38e

File tree

3 files changed

+34
-18
lines changed

3 files changed

+34
-18
lines changed

docs/website/index.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@
4949
<div class="container">
5050
<h1>MrDocs</h1>
5151
<p>MrDocs is a C++ documentation generator for your projects.</p>
52-
<p>
53-
<a href="docs/" role="button" class="secondary" aria-label="Documentation">
54-
Get started
55-
</a>
56-
<a href="docs/mrdocs/install.html" role="button" class="contrast outline" aria-label="Download">
57-
Download
58-
</a>
59-
</p>
60-
<p><code><small>No workarounds: A tool that fully understands C++</small></code></p>
52+
<div class="header-cta">
53+
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
54+
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
55+
</div>
56+
<div class="banner-snippet">
57+
<small><code>No workarounds: A tool that fully understands C++</code></small>
58+
</div>
6159
</div>
6260
</header>
6361
<main>

docs/website/index.html.hbs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@
6060
<div class="container">
6161
<h1>{{ title }}</h1>
6262
<p>{{ description }}</p>
63-
<p>
64-
<a href="docs/" role="button" class="secondary" aria-label="Documentation">
65-
Get started
66-
</a>
67-
<a href="docs/mrdocs/install.html" role="button" class="contrast outline" aria-label="Download">
68-
Download
69-
</a>
70-
</p>
71-
<p><code><small>{{ banner.description }}</small></code></p>
63+
<div class="header-cta">
64+
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
65+
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
66+
</div>
67+
<div class="banner-snippet">
68+
<small><code>{{ banner.description }}</code></small>
69+
</div>
7270
</div>
7371
</header>
7472
<main>

docs/website/styles.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,3 +2807,23 @@ nav {
28072807
background-color: rgba(0, 0, 0, 0.2);
28082808
backdrop-filter: blur(10px);
28092809
}
2810+
2811+
.header-cta {
2812+
display: flex;
2813+
gap: 0.5rem;
2814+
justify-content: center;
2815+
margin: 1.5rem 0 0 0;
2816+
}
2817+
2818+
.banner-snippet {
2819+
display: flex;
2820+
justify-content: center;
2821+
border-radius: 0.25rem;
2822+
margin: 0.5em 0 0 0;
2823+
}
2824+
2825+
.banner-snippet code {
2826+
margin-top: 0.5rem;
2827+
background-color: rgba(34, 34, 34, 0.5);
2828+
color: inherit;
2829+
}

0 commit comments

Comments
 (0)