(Created page with "<h1>MOBILE</h1>") |
|||
Line 1: | Line 1: | ||
− | < | + | <!DOCTYPE html> |
+ | <html> | ||
+ | |||
+ | <body data-spy="scroll" data-target="#navId" data-offset="50"> | ||
+ | |||
+ | <div class="wrapper"> | ||
+ | <!-- Sidebar --> | ||
+ | <nav id="sidebar"> | ||
+ | <div id="dismiss"> | ||
+ | <i class="fas fa-arrow-left"></i> | ||
+ | </div> | ||
+ | |||
+ | <div class="navbar-brand"> | ||
+ | <img src="logo.png" width="250px" height="250px" /> | ||
+ | </div> | ||
+ | <ul class="list-unstyled components"> | ||
+ | <li class="active"> | ||
+ | <a href="#">Home</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#projectSubmenu" data-toggle="collapse" aria-expanded="false">PROJECTS <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="projectSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Home 1</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 2</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 3</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#notebookSubmenu" data-toggle="collapse" aria-expanded="false">NOTEBOOK</a> | ||
+ | <ul class="collapse list-unstyled" id="notebookSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Home 1</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 2</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 3</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#partsSubmenu" data-toggle="collapse" aria-expanded="false">PARTS</a> | ||
+ | <ul class="collapse list-unstyled" id="partsSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Home 1</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 2</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Home 3</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">About</a> | ||
+ | <a href="#pageSubmenu" data-toggle="collapse" aria-expanded="false">Pages</a> | ||
+ | <ul class="collapse list-unstyled" id="pageSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Page 1</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Page 2</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Page 3</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Portfolio</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Contact</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | |||
+ | <!-- Page Content --> | ||
+ | <div id="content"> | ||
+ | |||
+ | <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-lg sticky-top" id="navId"> | ||
+ | <div class="container-fluid"> | ||
+ | |||
+ | <button type="button" id="sidebarCollapse" class="btn btn-info"> | ||
+ | <i class="fas fa-align-left"></i> | ||
+ | <span>Navigation</span> | ||
+ | </button> | ||
+ | <b style="margin-left:50px;font-size:25px;font-family:'Agency FB Regular'">Make<span style="background-color:aqua;font-size:1.5em;color:white;background-color:steelblue;border-radius: 3px;padding:0 2px;margin:0 4px;font-style:italic;"> | ||
+ | TW | ||
+ | </span>Beneficial</b> | ||
+ | <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
+ | <ul class="nav navbar-nav ml-auto"> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section1">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section2">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section3">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section4">Page</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | <button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" | ||
+ | data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" | ||
+ | aria-label="Toggle navigation"> | ||
+ | <i class="fas fa-align-justify"></i> | ||
+ | </button> | ||
+ | </div> | ||
+ | </nav> | ||
+ | |||
+ | <div id="section1"> | ||
+ | <h2>Collapsible Sidebar Using Bootstrap 4</h2> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | <div id="section2"> | ||
+ | |||
+ | <h2>Lorem Ipsum Dolor</h2> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | |||
+ | <h2>Lorem Ipsum Dolor</h2> | ||
+ | <p id="section3">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt | ||
+ | ut labore et | ||
+ | dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip | ||
+ | ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore | ||
+ | eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia | ||
+ | deserunt mollit anim id est laborum.</p> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | |||
+ | <h3>Lorem Ipsum Dolor</h3> | ||
+ | <p id="section4">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt | ||
+ | ut labore et | ||
+ | dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip | ||
+ | ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore | ||
+ | eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia | ||
+ | deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="overlay"></div> | ||
+ | |||
+ | <!-- jQuery CDN - Slim version (=without AJAX) --> | ||
+ | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" | ||
+ | crossorigin="anonymous"></script> | ||
+ | <!-- Popper.JS --> | ||
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" | ||
+ | crossorigin="anonymous"></script> | ||
+ | <!-- Bootstrap JS --> | ||
+ | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" | ||
+ | crossorigin="anonymous"></script> | ||
+ | <!-- jQuery Custom Scroller CDN --> | ||
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function () { | ||
+ | $("#sidebar").mCustomScrollbar({ | ||
+ | theme: "minimal" | ||
+ | }); | ||
+ | |||
+ | $('#dismiss, .overlay').on('click', function () { | ||
+ | $('#sidebar').removeClass('active'); | ||
+ | $('.overlay').removeClass('active'); | ||
+ | }); | ||
+ | |||
+ | $('#sidebarCollapse').on('click', function () { | ||
+ | $('#sidebar').addClass('active'); | ||
+ | $('.overlay').addClass('active'); | ||
+ | $('.collapse.in').toggleClass('in'); | ||
+ | $('a[aria-expanded=true]').attr('aria-expanded', 'false'); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | </body> | ||
+ | </html> |
Revision as of 08:00, 14 October 2018
<!DOCTYPE html>
Collapsible Sidebar Using Bootstrap 4
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.