Difference between revisions of "Template:Peking/NavBar"

Line 39: Line 39:
 
<body>
 
<body>
  
<!-- Simple header with fixed tabs. -->
+
<!-- Wide card with share menu button -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header
+
<style>
            mdl-layout--fixed-tabs">
+
.demo-card-wide.mdl-card {
    <header class="mdl-layout__header">
+
  width: 512px;
        <div class="mdl-layout__header-row">
+
}
            <!-- Title -->
+
.demo-card-wide > .mdl-card__title {
            <span class="mdl-layout-title">Title</span>
+
  color: #fff;
        </div>
+
  height: 176px;
        <!-- Tabs -->
+
  background: url('../assets/demos/welcome_card.jpg') center / cover;
        <div class="mdl-layout__tab-bar mdl-js-ripple-effect">
+
}
            <a href="#fixed-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
+
.demo-card-wide > .mdl-card__menu {
            <a href="#fixed-tab-2" class="mdl-layout__tab">Tab 2</a>
+
  color: #fff;
            <a href="#fixed-tab-3" class="mdl-layout__tab">Tab 3</a>
+
}
        </div>
+
</style>
    </header>
+
 
    <div class="mdl-layout__drawer">
+
<div class="demo-card-wide mdl-card mdl-shadow--2dp">
        <span class="mdl-layout-title">Title</span>
+
  <div class="mdl-card__title">
     </div>
+
    <h2 class="mdl-card__title-text">Welcome</h2>
    <main class="mdl-layout__content">
+
  </div>
        <section class="mdl-layout__tab-panel is-active" id="fixed-tab-1">
+
  <div class="mdl-card__supporting-text">
            <div class="page-content"><!-- Your content goes here --></div>
+
     Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        </section>
+
    Mauris sagittis pellentesque lacus eleifend lacinia...
        <section class="mdl-layout__tab-panel" id="fixed-tab-2">
+
  </div>
            <div class="page-content"><!-- Your content goes here --></div>
+
  <div class="mdl-card__actions mdl-card--border">
        </section>
+
    <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
        <section class="mdl-layout__tab-panel" id="fixed-tab-3">
+
      Get Started
            <div class="page-content"><!-- Your content goes here --></div>
+
    </a>
        </section>
+
  </div>
    </main>
+
  <div class="mdl-card__menu">
 +
    <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
 +
      <i class="material-icons">share</i>
 +
    </button>
 +
  </div>
 
</div>
 
</div>
 +
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 15:15, 16 October 2017

Welcome

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