summaryrefslogtreecommitdiffstats
path: root/templates/layouts/index.html
blob: a1410f1992d959a8689d12fa3e8c4cd8f5f587c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<main class="c-page s-page l-container l-container--content l-container--pad-v">
    <div class="c-page__content">
        <header class="c-hero u-hidden@sm-down" role="presentation">
        $-- ' |      '     '             '     '            '   | |    |           '     '
        $--   |      '     '             '       //\_       '   | ' .  |           '     '
        $--  .|      '      ____,...,______..,_~``  -`..,   '   |    ' |           '     '
        $--   |       _,~´"'  ,               .    ,~--´    '  _|  | . |~~.__      '     '
        $-- | |    ,-"    _.-|~/  |..,____,) ,/,,"'         '_( | '    |)    )     '     '
        $--  '|    \__,~"´   /:) /       |:\ \            ,~(    ) . | |  )   `,   '   _,--.
        $-- ___\___.___:____(:/\_-,______\:.\_-,____.__\_.\______.__:___\__.___)_.___,/_____
        $-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
            
        <pre class="c-hero__pre c-page__prefixed c-page__prefixed--pre u-mt0 u-hidden@sm-down">
' |      '     '             '     '            '   | |    |           '     '  
  |      '     '             '       <strong>//\_</strong>       '   | ' .  |           '     '  
 .|      '      <strong>____,...,______..,_~``  -`..,</strong>   '   |    ' |           '     '  
  |       <strong>_,~´"'  ,               .    ,~--´</strong>    '  _|  | . |~~.__      '     '  
| |    <strong>,-"    _.-|~/  |..,____,) ,/,,"'</strong>         '_( | '    |)    )     '     '  
 '|    <strong>\__,~"´   /:) /       |:\ \</strong>            ,~(    ) . | |  )   `,   '   _,--.
   \   .   :    <strong>(:/\_-,      \:.\_-,</strong>    .  \ .\      .  :   \  .   ) . ' ,/     </pre>

        </header>

$body$
    </div>
</main>

<template id="header-sm">
    $-- .|                     //\__      '  .'      |  . |           ' . ' 
    $--  |      _.~-"""-----~``  ,-´      '   '      |'   |           '   ' 
    $-- '|   .´  ,~'\ ).,__,)/,,"         ' . '      |  | |           '  .' 
    $--  |_  `~´   (/\\,   (/\\,         _'   '_    _| '  |_         _'   '_

    <pre class="c-hero__pre c-page__prefixed c-page__prefixed--pre u-mt0 $if(section.is_index)$u-hidden@sm-up$endif$">
.|   <strong>                  //\__</strong>      '  .'      |  . |           ' . ' 
 |   <strong>   _.~-"""-----~``  ,-´</strong>      '   '      |'   |           '   ' 
'|   <strong>.´  ,~'\ ).,__,)/,,"   </strong>      ' . '      |  | |           '  .' 
 |_  <strong>`~´   (/\\,   (/\\,    </strong>     _'   '_    _| '  |_         _'   '_</pre>
</template>

<script>
    var headerEl = document.querySelector(".c-hero");
    var headerTemplateEl = document.getElementById("header-sm");
    var headerSmEl = headerTemplateEl.content.cloneNode("true");

    headerEl.classList.remove("u-hidden@sm-down");
    headerEl.appendChild(headerSmEl);
</script>