Skip to content

Commit 224ec14

Browse files
committed
feat: position header above welcome
1 parent 4f698e9 commit 224ec14

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

sass/_header.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
}
5656

5757

58+
header.index-header {
59+
position: absolute;
60+
top: 0;
61+
z-index: 2;
62+
width: 100vw;
63+
}
64+
5865
header {
5966
margin-block: 1em;
6067

sass/_index.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,15 @@ body {
8585
background-size: cover;
8686

8787
div#welcome {
88-
min-height: calc(100vh - 80px);
88+
min-height: 100vh;
8989
display: flex;
9090
flex-direction: column;
9191
justify-content: center;
9292
text-align: center;
93+
94+
padding-block-start: 80px;
9395
margin-block-end: 1.75em;
96+
9497
backdrop-filter: blur(3px);
9598

9699
p {

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<body>
2626
<div id="top">
2727

28-
<header class="header">
28+
<header class="header {% if current_url | default(value="/" ) | trim_end_matches(pat='/' ) | safe==get_url(path='/' ) %} index-header {% endif %}">
2929
<div class="content">
3030
<nav>
3131
<a {% if current_url | default(value="/" ) | trim_end_matches(pat='/' ) | safe==get_url(path='/' ) %}

0 commit comments

Comments
 (0)