Cara Menciptakan Halaman Mudah Modular Ui Kit Built Di Blog

Cara Menciptakan Halaman Mudah Modular Ui Kit Built Di Blog

Cara Menciptakan Halaman Mudah Modular Ui Kit Built Di Blog

Simpel Modular UI Kit built with sass - Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows 8 , menciptakan tampilan menjadi lebih menarik . Bagi Anda yang ingin mencicipi tampilan Template metro UI namun Anda tidak memakai Templatenya , Anda dapat merasakannya dengan memasang pada halaman Blog anda .



Bagaimana caranya berikut ini langkah-langkanya :

HTML
Pemasangan HTML pada Entri baru

<div class="grid">
  <header class="grid__col--12 panel--padded--centered" role="banner">
    <a class="site-logo" href="/">
      <b class="srt">Poly - UI Toolkit</b>
    </a>
    <nav class="navbar" role="navigation">
      <span id="toggle" class="icn--nav-toggle is-displayed-mobile">
        <b class="srt">Toggle</b>
      </span>
      <ul class="nav is-collapsed-mobile">
        <li class="nav__item"><a href="#type">Typography</a></li>
        <li class="nav__item"><a href="#buttons">Buttons</a></li>
        <li class="nav__item"><a href="#forms">Form</a></li>
        <li class="nav__item"><a href="#progbars">Bars</a></li>
        <li class="nav__item"><a href="#images">Images</a></li>
        <li class="nav__item"><a href="#grid">Grid</a></li>
        <li class="nav__item--current"><a href="#nav">Navigation</a></li>
      </ul>
    </nav>
  </header>
</div>

<div class="grid is-hidden-mobile">
  <div class="grid__col--12">
    <img class="img--hero" src="http://treehouse-code-samples.s3.amazonaws.com/poly/img/hero.jpg" alt=" Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows Cara Membuat Halaman Simpel Modular UI Kit built di Blog">
  </div>
</div>

<h4 id="type" class="grid">Typography</h4>

<div class="grid">
  <div class="centered grid__col--8">
    <h1 class="headline-primary--grouped">Take a look at this amazing headline</h1>
    <h2 class="headline-secondary--grouped">Don't forget about the subtitle</h2>
    <p>This is a typical paragraph for the UI Kit. <a href="#">Here is what a link might look like</a>. The typical font family for this kit is Helvetica Neue.  This kit is intended for clean and refreshing web layouts. No jazz hands here, just the essentials to make dreams come true, with minimal clean web design. The kit comes fully equipped with everything from full responsive media styling to buttons to form fields. <em>I enjoy using italics as well from time to time</em>. Fell free to create the most amazing designs ever with this kit. I truly hope you enjoy not only the kit but this amazing paragraph as well. :)</p>
    <blockquote>You know what really gets me going? A really nice set of block quotes.  That's right, block quotes that say, "Hey, I'm an article you want to read and nurture."</blockquote>
  </div>
</div>

<h4 id="buttons" class="grid">Buttons</h4>

<div class="grid">
  <div class="grid__col--12">
    <a class="btn--default" href="#">Button Default</a>
    <a class="btn--success" href="#">Button Success</a>
    <a class="btn--error" href="#">Button Error</a>
    <button class="btn--warning">Button Warning</button>
    <button class="btn--info">Button Info</button>
  </div>
</div>

<h4 id="forms" class="grid">Form Elements</h4>

<div class="grid">
  <div class="grid__col--7">
    <form class="form">
      <label class="form__label--hidden" for="name">Name:</label>
      <input class="form__input" type="text" id="name" placeholder="Name">

       <label class="form__label--hidden" for="email">Email:</label>
       <input class="form__input" type="email" id="email" placeholder="email@website.com">

       <label class="form__label--hidden" for="msg">Message:</label>
       <textarea class="form__input" id="msg" placeholder="Message..." rows="7"></textarea>

       <input class="btn--default" type="submit" value="Submit">
       <input class="btn--warning" type="reset" value="Reset">
    </form>
  </div>
  <div class="grid__col--4">
    <img class="img--avatar" src="http://treehouse-code-samples.s3.amazonaws.com/poly/img/avatar.png" alt=" Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows Cara Membuat Halaman Simpel Modular UI Kit built di Blog">
    <form>
      <label class="form__label--hidden" for="username">Username:</label>
      <input class="form__input" type="text" id="username" placeholder="Username">
      <label class="form__label--hidden" for="password">Password:</label>
      <input class="form__input" type="password" id="password" placeholder="Password">
      <input class="form__btn" type="submit" value="Login">
    </form>
  </div>
</div>

<h4 id="progbars" class="grid">Progress Bars</h4>

<div class="grid">
  <div class="grid__col--12">
    <div class="progbar">
      <span class="progbar__status--default"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--success"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--error"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--warning"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--info"></span>
    </div>
  </div>
</div>

<h4 id="images" class="grid">Images</h4>

<div class="grid">
  <div class="grid__col--5">
    <img src="http://treehouse-code-samples.s3.amazonaws.com/poly/img/sample.jpg" alt=" Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows Cara Membuat Halaman Simpel Modular UI Kit built di Blog">
  </div>
  <div class="grid__col--5">
    <img class="img--wrap" src="http://treehouse-code-samples.s3.amazonaws.com/poly/img/sample.jpg" alt=" Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows Cara Membuat Halaman Simpel Modular UI Kit built di Blog">
  </div>
  <div class="grid__col--2">
    <img class="img--avatar" src="http://treehouse-code-samples.s3.amazonaws.com/poly/img/avatar.png" alt=" Template UI memliki tampilan menyerupai desktop Metro yang dipakai di windows Cara Membuat Halaman Simpel Modular UI Kit built di Blog">
  </div>
</div>

<h4 id="grid" class="grid">Grid System</h4>

<div class="theme__poly">
  <div class="grid">
    <div class="grid__col--12">.grid__col--12</div>
  </div>
  <div class="grid">
    <div class="grid__col--6">.grid__col--6</div>
    <div class="grid__col--6">.grid__col--6</div>
  </div>
  <div class="grid">
    <div class="grid__col--4">.grid__col--4</div>
    <div class="grid__col--4">.grid__col--4</div>
    <div class="grid__col--4">.grid__col--4</div>
  </div>
  <div class="grid">
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
  </div>
  <div class="grid">
    <div class="grid__col--5">.grid__col--5</div>
    <div class="grid__col--7">.grid__col--7</div>
  </div>
  <div class="grid">
    <div class="grid__col--8">.grid__col--8</div>
    <div class="grid__col--4">.grid__col--4</div>
  </div>
  <div class="grid">
    <div class="centered grid__col--7">.centered .grid__col--7</div>
  </div>
</div>

<div class="grid">
  <div class="grid__col--7">
    <h4 id="nav">Navigation</h4>
    <ul class="nav" role="navigation">
      <li class="nav__item"><a href="#">Nav Link</a></li>
      <li class="nav__item"><a href="#">Nav Link 2</a>
      <li class="nav__item--current"><a href="#">Nav Current</a></li>
    </ul>
    <p>This is what the navigation sajian looks like when the screen is at 769px or higher. When the screen is less than 769px, you will have the option to display a toggle sajian icon.</p>
  </div>

  <div class="grid__col--4">
    <h4>Offcanvas Menu</h4>
    <div class="offcanvas">
      <span class="icn--close">
        <b class="srt">close</b>
      </span>
      <ul class="menu" role="navigation">
        <a class="menu__link" href="#">Link 1</a>
        <a class="menu__link" href="#">Link 2</a>
        <a class="menu__link" href="#">Link 3</a>
        <a class="menu__link--end" href="#">Link 4</a>
      </ul>
    </div>
  </div>
</div>

<h4 class="grid">Footer</h4>

<div class="grid">
  <footer class="grid__col--12 panel--padded--centered" role="contentinfo">
    <a class="site-logo" href="#">
      <b class="srt">Poly - UI Toolkit</b>
    </a>
    <p>A simple UI Kit for everyone to share and enjoy.     <a href="https://github.com/Guilh/Poly"> Grab it from GitHub</a>.</p>
  </footer>
</div>



CSS

/*

Grab all the files on GitHub: https://github.com/Guilh/Poly

Watch the Treehouse course "Modular CSS with Sass" to see how I built Poly: http://teamtreehouse.com/library/modular-css-with-sass

Design by @MatHelme

*/



jQuery

$('#toggle').click(function() {
  $(this).next('.nav').toggleClass("is-collapsed-mobile");
});


Selamat Belajar!

Sumber http://www.websiteedukasi.com/
Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser