baseof.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <link rel="canonical" href="{{ .Permalink }}">
  8. <link rel="apple-touch-icon" sizes="57x57" href="{{ "images/apple-icon-57x57.png" | absURL }}">
  9. <link rel="apple-touch-icon" sizes="60x60" href="{{ "images/apple-icon-60x60.png" | absURL }}">
  10. <link rel="apple-touch-icon" sizes="72x72" href="{{ "images/apple-icon-72x72.png" | absURL }}">
  11. <link rel="apple-touch-icon" sizes="76x76" href="{{ "images/apple-icon-76x76.png" | absURL }}">
  12. <link rel="apple-touch-icon" sizes="114x114" href="{{ "images/apple-icon-114x114.png" | absURL }}">
  13. <link rel="apple-touch-icon" sizes="120x120" href="{{ "images/apple-icon-120x120.png" | absURL }}">
  14. <link rel="apple-touch-icon" sizes="144x144" href="{{ "images/apple-icon-144x144.png" | absURL }}">
  15. <link rel="apple-touch-icon" sizes="152x152" href="{{ "images/apple-icon-152x152.png" | absURL }}">
  16. <link rel="apple-touch-icon" sizes="180x180" href="{{ "images/apple-icon-180x180.png" | absURL }}">
  17. <link rel="icon" type="image/png" sizes="192x192" href="{{ "images/android-icon-192x192.png" | absURL }}">
  18. <link rel="icon" type="image/png" sizes="32x32" href="{{ "images/favicon-32x32.png" | absURL }}">
  19. <link rel="icon" type="image/png" sizes="96x96" href="{{ "images/favicon-96x96.png" | absURL }}">
  20. <link rel="icon" type="image/png" sizes="16x16" href="{{ "images/favicon-16x16.png" | absURL }}">
  21. <meta name="msapplication-TileColor" content="#ffffff">
  22. <meta name="msapplication-TileImage" content="{{ "images/ms-icon-144x144.png" | absURL }}">
  23. <meta name="theme-color" content="#ffffff">
  24. <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet" media="none" onload="this.media='all';">
  25. <link rel="stylesheet" href="{{ "css/prism.css" | absURL }}" media="none" onload="this.media='all';">
  26. <link rel="stylesheet" type="text/css" href="{{ "css/styles.css" | absURL }}">
  27. <style id="inverter" media="none">
  28. html { filter: invert(100%) }
  29. * { background-color: inherit }
  30. img:not([src*=".svg"]), .colors, iframe, .demo-container { filter: invert(100%) }
  31. </style>
  32. <title>
  33. {{ block "title" . }}
  34. {{ .Title }} | {{ .Site.Title }}
  35. {{ end }}
  36. </title>
  37. {{ if .IsHome }}
  38. <link rel="manifest" href="manifest.json">
  39. {{ end }}
  40. </head>
  41. <body>
  42. {{ if ne .Type "print-version" }}
  43. <a href="#main">skip to content</a>
  44. {{ end }}
  45. {{ partial "svg.html" . }}
  46. <div class="wrapper {{ if eq .Type "print-version" }}print-version{{ end }}">
  47. <header class="intro-and-nav" role="banner">
  48. <div>
  49. <div class="intro">
  50. <a class="logo" href="/" aria-label="{{ .Site.Title }} pattern library home page">
  51. <img src="{{ "images/logo.svg" | absURL }}" alt="">
  52. </a>
  53. <p class="library-desc">
  54. {{ .Site.Params.Description | markdownify }}
  55. {{ if ne .Type "print-version" }}
  56. <a class="print" href="{{ "print-version" | absURL }}">
  57. <svg viewBox="0 0 35 45" aria-hidden="true" focusable="false">
  58. <use xlink:href="#doc"></use>
  59. </svg>Print version
  60. {{ end }}
  61. </a>
  62. </p>
  63. {{ if eq .Type "print-version" }}
  64. <p class="toc-link">
  65. <span aria-hidden="true">&#x2193;</span>
  66. <a href="#toc">Table of contents</a>
  67. <span aria-hidden="true">&#x2193;</span>
  68. </p>
  69. {{ end }}
  70. </div>
  71. {{ block "nav" . }}
  72. <nav id="patterns-nav" class="patterns" role="navigation">
  73. <h2 class="vh">Main navigation</h2>
  74. <button id="menu-button" aria-expanded="false">
  75. <svg viewBox="0 0 50 50" aria-hidden="true" focusable="false">
  76. <use xlink:href="#menu"></use>
  77. </svg>
  78. Menu
  79. </button>
  80. {{ $current := . }}
  81. {{ range $.Site.Home.Sections }}
  82. <ul id="patterns-list">
  83. {{ range .Pages.ByWeight }}
  84. <li class="pattern">
  85. <a href="{{ .RelPermalink }}" {{ if eq $current.Title .Title }}aria-current="page"{{ end }}>
  86. <svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
  87. <use xlink:href="#bookmark"></use>
  88. </svg>
  89. <span class="text">{{ .Title }}</span>
  90. </a>
  91. </li>
  92. {{ end }}
  93. {{ range .Sections.ByWeight }}
  94. <li>
  95. <h3>{{ .Title }}</h3>
  96. <ul>
  97. {{ range .Pages.ByWeight }}
  98. <li class="pattern">
  99. <a href="{{ .RelPermalink }}" {{ if eq $current.Title .Title }}aria-current="page"{{ end }}>
  100. <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
  101. <use xlink:href="#bookmark"></use>
  102. </svg>
  103. <span class="text">{{ .Title }}</span>
  104. </a>
  105. </li>
  106. {{ end }}
  107. </ul>
  108. </li>
  109. {{ end }}
  110. </ul>
  111. {{ end }}
  112. </nav>
  113. {{ end }}
  114. </div>
  115. </header>
  116. <div class="main-and-footer">
  117. <div>
  118. {{ block "main" . }}
  119. {{ end }}
  120. <footer role="contentinfo">
  121. <div>
  122. <label for="themer">
  123. dark theme: <input type="checkbox" id="themer" class="vh">
  124. <span aria-hidden="true"></span>
  125. </label>
  126. </div>
  127. Powered by <strong>Infusion</strong>, a <strong>The Paciello Group</strong> project.<br>
  128. For general enquiries, contact us on info@paciellogroup.com.
  129. </footer>
  130. </div>
  131. </div>
  132. </div>
  133. <script src="{{ "js/prism.js" | absURL }}"></script>
  134. <script src="{{ "js/dom-scripts.js" | absURL }}"></script>
  135. {{ if .Page.IsHome }}
  136. <script src="{{ "js/service-worker-registration.js" | absURL }}"></script>
  137. {{ end }}
  138. </body>
  139. </html>