Difference between revisions of "Template:Peking/NavBar"

Line 39: Line 39:
 
<body>
 
<body>
  
<!-- Simple header with fixed tabs. -->
+
<!-- No header, and the drawer stays open on larger screens (fixed drawer). -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header
+
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer">
            mdl-layout--fixed-tabs">
+
  <div class="mdl-layout__drawer">
    <header class="mdl-layout__header">
+
    <span class="mdl-layout-title">Title</span>
        <div class="mdl-layout__header-row">
+
    <nav class="mdl-navigation">
            <!-- Title -->
+
      <a class="mdl-navigation__link" href="">Link</a>
            <span class="mdl-layout-title">Title</span>
+
      <a class="mdl-navigation__link" href="">Link</a>
        </div>
+
      <a class="mdl-navigation__link" href="">Link</a>
        <!-- Tabs -->
+
      <a class="mdl-navigation__link" href="">Link</a>
        <div class="mdl-layout__tab-bar mdl-js-ripple-effect">
+
    </nav>
            <a href="#fixed-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
+
  </div>
            <a href="#fixed-tab-2" class="mdl-layout__tab">Tab 2</a>
+
  <main class="mdl-layout__content">
            <a href="#fixed-tab-3" class="mdl-layout__tab">Tab 3</a>
+
    <div class="page-content"><!-- Your content goes here --></div>
        </div>
+
  </main>
    </header>
+
    <div class="mdl-layout__drawer">
+
        <span class="mdl-layout-title">Title</span>
+
    </div>
+
    <main class="mdl-layout__content">
+
        <section class="mdl-layout__tab-panel is-active" id="fixed-tab-1">
+
            <div class="page-content"><!-- Your content goes here --></div>
+
        </section>
+
        <section class="mdl-layout__tab-panel" id="fixed-tab-2">
+
            <div class="page-content"><!-- Your content goes here --></div>
+
        </section>
+
        <section class="mdl-layout__tab-panel" id="fixed-tab-3">
+
            <div class="page-content"><!-- Your content goes here --></div>
+
        </section>
+
    </main>
+
 
</div>
 
</div>
 +
  
 
<!-- Wide card with share menu button -->
 
<!-- Wide card with share menu button -->

Revision as of 15:18, 16 October 2017

Title

Welcome

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis pellentesque lacus eleifend lacinia...