more responsive for smaller screens
collapsable navbar
This commit is contained in:
parent
362cb28663
commit
f8c2114358
116
index.html
116
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,27 +23,38 @@
|
|||||||
<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">
|
||||||
<ul class="navbar-nav">
|
<!-- Toggler/collapsibe Button -->
|
||||||
<li class="nav-item">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
|
||||||
<a class="nav-link" href="#section1">Home</a>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</li>
|
</button>
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#section2">About Me</a>
|
<!-- Navbar links -->
|
||||||
</li>
|
<div class="collapse navbar-collapse" id="collapsibleNavbar">
|
||||||
<li class="nav-item">
|
<ul class="navbar-nav">
|
||||||
<a class="nav-link" href="#section3">Projects</a>
|
<li class="nav-item">
|
||||||
</li>
|
<a class="nav-link" href="#section1">Home</a>
|
||||||
<li class="nav-item dropdown">
|
</li>
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
|
<li class="nav-item">
|
||||||
Contact
|
<a class="nav-link" href="#section2">About Me</a>
|
||||||
</a>
|
</li>
|
||||||
<div class="dropdown-menu">
|
<li class="nav-item">
|
||||||
<a class="dropdown-item" href="#section41">Link 1</a>
|
<a class="nav-link" href="#section3">Projects</a>
|
||||||
<a class="dropdown-item" href="#section42">Link 2</a>
|
</li>
|
||||||
</div>
|
<li class="nav-item dropdown">
|
||||||
</li>
|
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
|
||||||
</ul>
|
Contact
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<a class="dropdown-item" href="#section41">Link 1</a>
|
||||||
|
<a class="dropdown-item" href="#section42">Link 2</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div id="section1" class="tile">
|
<div id="section1" class="tile">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div>
|
<div>
|
||||||
@ -57,33 +69,49 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="section2" class="container bg-warning tile">
|
<div id="section2" class="bg-warning tile">
|
||||||
<h1>Section 2</h1>
|
<div class="container">
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<h1>Section 2</h1>
|
||||||
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
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
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
|
||||||
|
the navigation bar while scrolling!</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="section3" class="container bg-secondary tile">
|
<div id="section3" class="bg-secondary tile">
|
||||||
<h1>Section 3</h1>
|
<div class="container">
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<h1>Section 3</h1>
|
||||||
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
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
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
|
||||||
|
the navigation bar while scrolling!</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="section41" class="container bg-danger tile">
|
<div id="section41" class="bg-danger tile">
|
||||||
<h1>Section 4 Submenu 1</h1>
|
<div class="container">
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<h1>Section 4 Submenu 1</h1>
|
||||||
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
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
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
|
||||||
|
the navigation bar while scrolling!</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="section42" class="container bg-info tile">
|
<div id="section42" class="bg-info tile">
|
||||||
<h1>Section 4 Submenu 2</h1>
|
<div class="container">
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
<h1>Section 4 Submenu 2</h1>
|
||||||
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
|
||||||
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at
|
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
|
||||||
|
the navigation bar while scrolling!</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user