UNPKG

@travlrcom/uikit

Version:

TRAVLR UiKit

495 lines (434 loc) 23.2 kB
<!DOCTYPE html> <html lang="en"> <head> <base href="/"> <meta charset="utf-8"/> <meta name="theme-color" content="#006272"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="robots" content="index, follow"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="canonical" href="/"> <link rel="manifest" href="manifest.json"> <title>Notification - TRAVLR UI Kit</title> <meta name="description" content="TRAVLR UI Kit A simple and clean framework making front-end web development fast & easy. Fully responsive and filled with cool stuff."> <!-- Facebook --> <meta property="og:title" content="TRAVLR UI Kit"> <meta property="og:description" content="TRAVLR UI Kit A simple and clean framework making front-end web development fast & easy. Fully responsive and filled with cool stuff."> <meta property="og:type" content="website" /> <meta property="og:url" content="Travlr Facebook Url"> <meta property="og:image" content="Travlr Facebook Image"> <meta property="fb:app_id" content="FACEBOOK_APP_ID" /> <meta property="og:site_name" content="TRAVLR UI Kit="> <!-- Twitter --> <meta name="twitter:card" content="summary" /> <meta name="twitter:site" content="Travlr Twitter Account" /> <meta name="twitter:title" content="TRAVLR UI Kit"> <meta name="twitter:description" content="TRAVLR UI Kit A simple and clean framework making front-end web development fast & easy. Fully responsive and filled with cool stuff."> <meta property="twitter:image" content="Travlr Twitter Image"> <!-- Favicon --> <link rel="shortcut icon" href=""> <!-- Fonts --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700"> <!-- Vendors --> <link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/color-brewer.min.css" rel="stylesheet"/> <!-- Google Tag Manager --> </head> <body class="travlr-ui"> <div id="app"> <!-- core nav top --> <%= require('html-loader!./../components/header.html') %> <!-- core nav top end --> <!-- Begin Main Content --> <main class="t-main-content"> <!-- section hero main --> <section class=" t-section-small"> <div class="t-container"> <div class="t-columns t-columns-with-gap"> <div class="t-col-12"> <ul class="t-breadcrumb"> <li class="t-breadcrumb-item active"> <a href="/">Home</a> </li> <li class="t-breadcrumb-item active"> <a href="/documentations.html">Documentations</a> </li> <li class="t-breadcrumb-item disabled"> <a href="#">Notification</a> </li> </ul> </div> </div> </div> </section> <!-- section hero main end --> <!-- Begin Getting Started --> <section class="t-p-b-32"> <div class="t-container"> <div class="t-columns t-columns-with-gap"> <!-- Begin Left Description --> <%= require('html-loader!./../components/sidebar-documentation.html') %> <!-- End Left Description --> <!-- Begin Right Description --> <div class="t-col-8 t-col-mobile-12"> <div class="t-box t-box-with-shadow"> <!-- Begin Button --> <h2 class="t-heading-4 t-color-grey-darkest">Notifications</h2> <p class="t-body-text t-m-t-10 t-m-b-30"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ducimus quae commodi, fuga quos quas odio ratione mollitia neque consequuntur? Amet tempora, id beatae quibusdam asperiores facilis dignissimos ratione saepe non. </p> <div class="t-columns t-columns-with-gap t-m-t-24"> <div class="t-col-12 t-col-mobile-12"> <h3 class="t-heading-5 t-color-grey-darkest">Default Notification</h3> <p class="t-body-text t-m-t-10"> Use <span class="t-label-code">.fluid</span> class for fullwidth notification </p> </div> </div> <div class="t-columns t-columns-with-gap t-m-t-24"> <div class="t-col-12 t-col-mobile-12 t-m-b-24 t-p-t-8 t-p-b-8"> <!-- Notification Default --> <div class="t-notification default active fluid"> <div class="t-notification-content"> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Hello </h4> <p class="t-body-text"> This is a message. A bit longer message lorem eligendi itaque dolore lectus suscipit enim. </p> </div> </div> </div> <!-- End Notification Default --> <!-- Notification Default --> <div class="t-notification default active fluid t-m-t-24"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Hello </h4> <p class="t-body-text"> This is a message. A bit longer message lorem eligendi itaque dolore lectus suscipit enim. </p> </div> </div> </div> <!-- End Notification Default --> <!-- Notification Success --> <div class="t-notification success active fluid t-m-t-24"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Congrats </h4> <p class="t-body-text"> This is a success message. </p> </div> </div> </div> <!-- End Notification Success --> <!-- Notification Warning --> <div class="t-notification warning active fluid t-m-t-24"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Caution </h4> <p class="t-body-text"> This is a warning message. </p> </div> </div> </div> <!-- End Notification Warning --> <!-- Notification Danger --> <div class="t-notification danger active fluid t-m-t-24"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Oops </h4> <p class="t-body-text"> This is an error message. </p> </div> </div> </div> <!-- End Notification Danger --> </div> </div> <!-- End Example Default --> <p class="t-body-text t-m-b-20"> Here is template code for notification. There're 4 samples of notification types. Just add class name on main notification class. Like <span class="t-label-code">.default</span>, <span class="t-label-code">.success</span> , <span class="t-label-code">.warning</span> , <span class="t-label-code">.danger</span> </p> <p class="t-body-text t-m-b-20"> For example code will be like this : <span class="t-label-code">&lt;div class="t-notification fluid active default"&gt;</span> </p> <p class="t-body-text t-m-t-30 t-m-b-20"> <strong>Note :</strong> If you want the notification without an icon beside, just remove this element <br> <span class="t-label-code"> &lt;div class="t-notification-icon"&gt;&lt;span class="t-icon">&lt;/span&gt;&lt;/div&gt; </span> </p> <div class="t-panel t-primary-box-shadow t-no-margin"> <div class="t-panel-header t-p-t-0 t-background-grey-lightest"> <div class="t-panel-header-title"> Source code </div> </div> <div class="t-panel-body active"> <div class="t-columns t-columns-with-gap"> <div class="t-col-10"> <pre> <code class="xml hljs" id="uiNotificationDefault"> &lt;div class="t-notification default active fluid t-m-t-24"&gt; &lt;div class="t-notification-content"&gt; &lt;div class="t-notification-icon"&gt; &lt;span class="t-icon">&lt;/span&gt; &lt;/div&gt; &lt;div class="t-notification-body"&gt; &lt;h4 class="t-heading-4 t-m-b-8"&gt; Hello &lt;/h4&gt; &lt;p class="t-body-text"&gt; This is a message. &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code> </pre> </div> <div class="t-col-2 t-text-align-right"> <button data-clipboard-action="copy" data-clipboard-target="#uiNotificationDefault" class="copyText t-btn t-btn-tertiary t-btn-small t-hidden-mobile">Copy</button> </div> </div> </div> </div> <div class="t-separator t-m-t-40 t-m-b-40"></div> <div class="t-columns t-columns-with-gap t-m-t-24"> <div class="t-col-12 t-col-mobile-12"> <h3 class="t-heading-5 t-color-grey-darkest">Sticky Notifications</h3> <p class="t-body-text t-m-t-20"> Use <span class="t-label-code">.sticky</span> class for sticky notification. Sticky notification have default position behavior on top right of screen. Or use <span class="t-label-code">.top-right</span> for top right position, <span class="t-label-code">.top-left</span> for top left position, <span class="t-label-code">.bottom-right</span> for bottom right position, <span class="t-label-code">.bottom-left</span> for bottom left position. </p> </div> </div> <div class="t-columns t-columns-with-gap t-m-t-24"> <div class="t-col-6 t-col-mobile-12 t-text-align-center t-m-b-24 t-p-t-8 t-p-b-8"> <button class="t-btn t-btn-primary">Top left notification</button> </div> <div class="t-col-6 t-col-mobile-12 t-text-align-center t-m-b-24 t-p-t-8 t-p-b-8"> <button class="t-btn t-btn-primary">Top right notification</button> </div> <div class="t-col-6 t-col-mobile-12 t-text-align-center t-m-b-24 t-p-t-8 t-p-b-8"> <button class="t-btn t-btn-primary">Bottom left notification</button> </div> <div class="t-col-6 t-col-mobile-12 t-text-align-center t-m-b-24 t-p-t-8 t-p-b-8"> <button class="t-btn t-btn-primary">Bottom right notification</button> </div> </div> <!-- End Example Sticky --> <!-- Notification Default --> <div class="t-notification default active"> <div class="t-notification-content"> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Hello </h4> <p class="t-body-text"> This is a message. A bit longer message lorem eligendi itaque dolore lectus suscipit enim. </p> </div> <div class="t-notification-close"> <button class="t-btn t-btn-transparent"> <span class="t-icon icon-close"></span> </button> </div> </div> </div> <!-- End Notification Default --> <div class="t-m-t-20"></div> <!-- Notification Default --> <div class="t-notification default active"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Hello </h4> <p class="t-body-text"> This is a message. A bit longer message lorem eligendi itaque dolore lectus suscipit enim. </p> </div> <div class="t-notification-close"> <button class="t-btn t-btn-transparent"> <span class="t-icon icon-close"></span> </button> </div> </div> </div> <!-- End Notification Default --> <div class="t-m-t-20"></div> <!-- Notification Success --> <div class="t-notification success active"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Congrats </h4> <p class="t-body-text"> This is a success message. </p> </div> <div class="t-notification-close"> <button class="t-btn t-btn-transparent"> <span class="t-icon icon-close"></span> </button> </div> </div> </div> <!-- End Notification Success --> <div class="t-m-t-20"></div> <!-- Notification Warning --> <div class="t-notification warning active"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Caution </h4> <p class="t-body-text"> This is a warning message. </p> </div> <div class="t-notification-close"> <button class="t-btn t-btn-transparent"> <span class="t-icon icon-close"></span> </button> </div> </div> </div> <!-- End Notification Warning --> <div class="t-m-t-20"></div> <!-- Notification Danger --> <div class="t-notification danger active"> <div class="t-notification-content"> <div class="t-notification-icon"> <span class="t-icon"></span> </div> <div class="t-notification-body"> <h4 class="t-heading-4 t-m-b-8"> Oops </h4> <p class="t-body-text"> This is an error message. </p> </div> <div class="t-notification-close"> <button class="t-btn t-btn-transparent"> <span class="t-icon icon-close"></span> </button> </div> </div> </div> <!-- End Notification Danger --> <div class="t-m-t-30"></div> <p class="t-body-text t-m-b-20"> Here is template code for notification. There're 4 samples of notification types. Just add class name on main notification class. Like <span class="t-label-code">.default</span>, <span class="t-label-code">.success</span> , <span class="t-label-code">.warning</span> , <span class="t-label-code">.danger</span> </p> <p class="t-body-text t-m-b-20"> For example code will be like this : <span class="t-label-code">&lt;div class="t-notification fluid active default"&gt;</span> </p> <div class="t-panel t-primary-box-shadow t-no-margin"> <div class="t-panel-header t-p-t-0 t-background-grey-lightest"> <div class="t-panel-header-title"> Source code </div> </div> <div class="t-panel-body active"> <div class="t-columns t-columns-with-gap"> <div class="t-col-10"> <pre> <code class="xml hljs" id="uiNotificationSticky"> &lt;div class="t-notification active default"&gt; &lt;div class="t-notification-content"&gt; &lt;div class="t-notification-icon"&gt; &lt;span class="t-icon"&gt;&lt;/span&gt; &lt;/div&gt; &lt;div class="t-notification-body"&gt; &lt;h4 class="t-heading-4 t-m-b-8"&gt; Hello &lt;/h4&gt; &lt;p class="t-body-text"&gt; This is a message. &lt;/p&gt; &lt;/div&gt; &lt;div class="t-notification-close"&gt; &lt;button class="t-btn t-btn-transparent"&gt; &lt;span class="t-icon icon-close"&gt;&lt;/span&gt; &lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code> </pre> </div> <div class="t-col-2 t-text-align-right"> <button data-clipboard-action="copy" data-clipboard-target="#uiNotificationSticky" class="copyText t-btn t-btn-tertiary t-btn-small t-hidden-mobile">Copy</button> </div> </div> </div> </div> <%= require('html-loader!./../components/footer-documentation.html') %> </div> </div> <!-- End Right Description --> </div> </div> </section> <!-- End Getting Started --> </main> <!-- End Main Content --> <!-- core nav bottom --> <%= require('html-loader!./../components/footer.html') %> <!-- core nav bottom --> </div> <style> code { white-space: pre-wrap } </style> <script> window.onload = function () { TravlrUikit.notification({}) } </script> <!-- core nav bottom script --> <%= require('html-loader!./../components/footer-script.html') %> <!-- core nav bottom script --> </body> </html>