created floating side bar
Deploy static site / deploy (push) Successful in 25s

This commit is contained in:
2026-04-23 13:26:49 +02:00
parent a29c03c18e
commit a98a0927d3
4 changed files with 39 additions and 1 deletions
+6
View File
@@ -11,6 +11,12 @@
<nav> <nav>
<a class="navbar" href="../en/index.html">English</a> <a class="navbar" href="../en/index.html">English</a>
</nav> </nav>
<div id="navbar-outer">
<div id="navbar">
<a href="#about">About</a>
<a href="#why">Why</a>
</div>
</div>
<header id="about"> <header id="about">
<h1>Hi, ich bin Marco</h1> <h1>Hi, ich bin Marco</h1>
<p>und das ist meine Webseite</p> <p>und das ist meine Webseite</p>
+6
View File
@@ -11,6 +11,12 @@
<nav> <nav>
<a class="navbar" href="../de/index.html">Deutsch</a> <a class="navbar" href="../de/index.html">Deutsch</a>
</nav> </nav>
<div id="navbar-outer">
<div id="navbar">
<a href="#about">About</a>
<a href="#why">Why</a>
</div>
</div>
<header id="about"> <header id="about">
<h1>Hi, I'm Marco</h1> <h1>Hi, I'm Marco</h1>
<p>and this is my website</p> <p>and this is my website</p>
+23 -1
View File
@@ -7,8 +7,30 @@ h1, h2, h3, h4, h5, p {
color: #DDDDEE color: #DDDDEE
} }
a.navbar { a {
color: #DD7FB6; color: #DD7FB6;
text-decoration: none text-decoration: none
} }
#navbar {
position: fixed;
top: 0;
right: 0;
overflow: hidden;
flex-direction: column;
display: flex;
float: right;
}
#navbar a {
float: right;
display: block;
text-align: end;
padding: 5px;
text-decoration: none;
}
#navbar a:hover {
color: #D0A7DF
}
+4
View File
@@ -11,6 +11,10 @@
<nav> <nav>
{{language-switcher}} {{language-switcher}}
</nav> </nav>
<div id="navbar">
<a href="#about">About</a>
<a href="#why">Why</a>
</div>
<header id="about"> <header id="about">
<h1>{{introduction-heading}}</h1> <h1>{{introduction-heading}}</h1>
<p>{{introduction-subheading}}</p> <p>{{introduction-subheading}}</p>