more responsive for smaller screens
collapsable navbar
This commit is contained in:
parent
362cb28663
commit
f8c2114358
52
index.html
52
index.html
@ -2,6 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Lukas Heiligenbrunner</title>
|
<title>Lukas Heiligenbrunner</title>
|
||||||
<!-- Latest compiled and minified CSS -->
|
<!-- Latest compiled and minified CSS -->
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
|
||||||
@ -22,6 +23,13 @@
|
|||||||
<body data-spy="scroll" data-target=".navbar" data-offset="50">
|
<body data-spy="scroll" data-target=".navbar" data-offset="50">
|
||||||
|
|
||||||
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top justify-content-end">
|
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top justify-content-end">
|
||||||
|
<!-- Toggler/collapsibe Button -->
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<!-- Navbar links -->
|
||||||
|
<div class="collapse navbar-collapse" id="collapsibleNavbar">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#section1">Home</a>
|
<a class="nav-link" href="#section1">Home</a>
|
||||||
@ -42,7 +50,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div id="section1" class="tile">
|
<div id="section1" class="tile">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div>
|
<div>
|
||||||
@ -57,34 +69,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="section2" class="container bg-warning tile">
|
<div id="section2" class="bg-warning tile">
|
||||||
|
<div class="container">
|
||||||
<h1>Section 2</h1>
|
<h1>Section 2</h1>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="section3" class="container bg-secondary tile">
|
</div>
|
||||||
|
<div id="section3" class="bg-secondary tile">
|
||||||
|
<div class="container">
|
||||||
<h1>Section 3</h1>
|
<h1>Section 3</h1>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="section41" class="container bg-danger tile">
|
</div>
|
||||||
|
<div id="section41" class="bg-danger tile">
|
||||||
|
<div class="container">
|
||||||
<h1>Section 4 Submenu 1</h1>
|
<h1>Section 4 Submenu 1</h1>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="section42" class="container bg-info tile">
|
</div>
|
||||||
|
<div id="section42" class="bg-info tile">
|
||||||
|
<div class="container">
|
||||||
<h1>Section 4 Submenu 2</h1>
|
<h1>Section 4 Submenu 2</h1>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and
|
||||||
|
look at
|
||||||
the navigation bar while scrolling!</p>
|
the navigation bar while scrolling!</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user