Skip to content

Commit 696e9c0

Browse files
committed
Homepage: Fix spacing, footer, and header
1 parent fb60399 commit 696e9c0

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

assets/css/v2/style.css

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,16 @@ nav {
542542
/* MARK: Homepage
543543
*/
544544

545+
.grid-container.homepage {
546+
grid-template-columns: 1fr;
547+
grid-template-areas:
548+
"header"
549+
"content"
550+
"footer";
551+
}
552+
545553
.homepage {
546-
margin: 0 2rem;
554+
--content-max-width: 120rem;
547555

548556
.homepage-heading {
549557
grid-column: 1 / -1;
@@ -556,32 +564,33 @@ nav {
556564
display: grid;
557565
grid-template-columns: repeat(auto-fit, minmax(120px, 500px));
558566
gap: 1.5rem;
559-
padding: 1rem;
567+
560568
justify-content: center;
561569
max-width: 98rem;
562570
margin: 0 auto;
571+
padding-bottom: 2rem;
572+
573+
a {
574+
color: oklch(var(--color-foreground));
575+
text-decoration-color: oklch(var(--color-background));
576+
577+
&:hover {
578+
text-decoration-color: oklch(var(--color-background));
579+
}
580+
}
563581

564582
.homepage-heading {
565583
grid-column: 1 / -1;
566584
margin: 1rem 0rem;
567585
}
568586
}
569587

570-
a {
571-
color: oklch(var(--color-foreground));
572-
text-decoration-color: oklch(var(--color-background));
573-
574-
&:hover {
575-
text-decoration-color: oklch(var(--color-background));
576-
}
577-
}
578-
579588
/* Styling for items */
580589
.homepage-item {
581590
background: oklch(var(--color-background));
582591
border: 1px solid oklch(var(--color-codeblock-border));
583592
box-shadow: 3px 3px 0px oklch(var(--color-shadow));
584-
height: 7rem;
593+
min-height: 11rem;
585594
padding: 1rem 2rem 2rem 2rem;
586595
display: flex;
587596
flex-direction: column;

layouts/partials/sidebar-v2.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424
<div class="sidebar__container">
2525
<div class="sidebar__header">
26-
<img class="sidebar__img" src="{{ "/images/icons/NGINX-Docs-horiz-black-type.svg" | absURL }}" alt="NGINX Docs">
26+
<a href="{{ .Site.BaseURL | relLangURL }}" alt="NGINX Docs Home">
27+
<img class="sidebar__img" src="{{ "/images/icons/NGINX-Docs-horiz-black-type.svg" | absURL }}" alt="NGINX Docs">
28+
</a>
2729
</div>
2830
<div class="sidebar__content">
2931
<a class="skip-link" href="#maincontent">Skip Navigation</a>
@@ -34,4 +36,4 @@
3436
"idPrefix" ""
3537
) }}
3638
</div>
37-
</div>
39+
</div>

0 commit comments

Comments
 (0)