templates/base.html.twig line 1

Open in your IDE?
  1. {% macro flash( app, type ) %}
  2.     {% for message in app.flashes(type) %}
  3.         <div class="alert alert-{{ type }} col-md-10 col-lg-8 mx-auto my-4">
  4.             {{ message|raw }}
  5.         </div>
  6.     {% endfor %}
  7. {% endmacro %}
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11.     <meta charset="utf-8" />
  12.     <link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png">
  13.     <link rel="icon" type="image/png" href="../assets/img/favicon.png">
  14.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  15.     <title>Lowdefest Tickets: {{ block('title') }}</title>
  16.     <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  17.     {% block stylesheets %}
  18.         <link href="{{ asset('css/feStyles.css') }}" rel="stylesheet">
  19.     {% endblock stylesheets %}
  20.     <style id="progressStyles">
  21.         body::before {
  22.             content: '';
  23.             display: block;
  24.             position: fixed;
  25.             top: 0px;
  26.             left: 0px;
  27.             width: 100%;
  28.             height: 3px;
  29.             background: #0d6efd;
  30.             transform: scaleX(0.3);
  31.             transform-origin: 0 0;
  32.             will-change: transform;
  33.             z-index: 1000;
  34.         }
  35.     </style>
  36. </head>
  37. <body class="">
  38. <div class="container-fluid">
  39.     {% import _self as helper %}
  40.     <div class="content">
  41.         <header class="header">
  42.             <div class="branding">
  43.                 <img src="{{ asset('img/Logo.gif') }}" class="branding">
  44.             </div>
  45.         </header>
  46.         {{ helper.flash( app, 'danger' ) }}
  47.         {{ helper.flash( app, 'warning' ) }}
  48.         {{ helper.flash( app, 'success' ) }}
  49.         {{ helper.flash( app, 'info' ) }}
  50.         {% block body %}{% endblock %}
  51.     </div>
  52. {#
  53.     <footer>powered by <a href="https://www.seehoo.co.uk/">Seehoo</a> #loveyourpeople</footer>
  54. #}
  55. </div>
  56. {% block javascripts %}
  57.     <script>
  58.         let i, c, u, a, s, l, f, d, m;
  59.         i = 15e3;
  60.         c = 4e4;
  61.         u = "#0d6efd";
  62.         a = function (n) {
  63.             return "\n    ".concat("body::before", " { \n        transform: scaleX(0.99);\n        transition-duration: ").concat(n, "ms;\n        transition-timing-function: cubic-bezier(0,1,0.5,1);\n    }\n")
  64.         };
  65.         s = function () {
  66.             return "\n    ".concat("body::before", " {\n        transform: scaleX(1);\n        transition-duration: ").concat(300, "ms;\n        animation: none;\n        background-image: none;\n    }\n")
  67.         };
  68.         l = function () {
  69.             return "\n    ".concat("body::before", " {\n        transform: scaleX(0);\n        transition-duration: 0ms;\n        animation: none;\n        background-image: none;\n    }\n")
  70.         };
  71.         f = function () {
  72.             return "\n    @keyframes shimmer {\n        from {\n            left: -80%; \n            width: 80%; \n        }\n        \n        to {\n            left: 110%; \n            width: 10%;\n        }\n    }\n"
  73.         };
  74.         d = function (n) {
  75.             return "\n        ".concat("body::before", " {\n            transform: scaleX(1);\n            transition-duration: 0ms;\n            background: ").concat(n, ";\n            animation: shimmer 2s infinite;\n        }\n    ")
  76.         };
  77.         m = function (n) {
  78.             document && document.hidden ? n() : requestAnimationFrame((function () {
  79.                     n()
  80.                 }
  81.             ))
  82.         };
  83.         let g = function (n) {
  84.             const e = (n || {}).sheet;
  85.             if (e) {
  86.                 let t = !1
  87.                     , o = !1
  88.                     , r = null
  89.                     , g = null
  90.                     , R = null;
  91.                 return {
  92.                     inProgress: function() {
  93.                         return t
  94.                     },
  95.                     start: function () {
  96.                         const n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : i;
  97.                         t || (t = !0,
  98.                             m((function () {
  99.                                     e.insertRule(a(n), e.cssRules.length)
  100.                                 }
  101.                             )),
  102.                             g = setTimeout((function () {
  103.                                     t && (o = !0,
  104.                                         m((function () {
  105.                                                 e.insertRule(f(), e.cssRules.length),
  106.                                                     e.insertRule(d(u), e.cssRules.length)
  107.                                             }
  108.                                         )))
  109.                                 }
  110.                             ), i),
  111.                             R = setTimeout((function () {
  112.                                     t && (t = !1,
  113.                                         o = !1,
  114.                                         m((function () {
  115.                                                 e.insertRule(l(), e.cssRules.length)
  116.                                             }
  117.                                         )),
  118.                                         clearTimeout(r),
  119.                                         clearTimeout(g),
  120.                                         clearTimeout(R))
  121.                                 }
  122.                             ), c))
  123.                     },
  124.                     end: function () {
  125.                         if (t) {
  126.                             if (t = !1,
  127.                                 o)
  128.                                 return o = !1,
  129.                                     clearTimeout(r),
  130.                                     clearTimeout(R),
  131.                                     clearTimeout(g),
  132.                                     void m((function () {
  133.                                             e.insertRule(l(), e.cssRules.length)
  134.                                         }
  135.                                     ));
  136.                             m((function () {
  137.                                     e.insertRule(s(), e.cssRules.length)
  138.                                 }
  139.                             )),
  140.                                 r = setTimeout((function () {
  141.                                         clearTimeout(r),
  142.                                             clearTimeout(R),
  143.                                             clearTimeout(g),
  144.                                             m((function () {
  145.                                                     e.insertRule(l(), e.cssRules.length)
  146.                                                 }
  147.                                             ))
  148.                                     }
  149.                                 ), 800)
  150.                         }
  151.                     },
  152.                     reset: function () {
  153.                         t = !1,
  154.                             o = !1,
  155.                             clearTimeout(r),
  156.                             clearTimeout(g),
  157.                             clearTimeout(R),
  158.                             m((function () {
  159.                                     e.insertRule(l(), e.cssRules.length)
  160.                                 }
  161.                             ))
  162.                     }
  163.                 }
  164.             }
  165.         };
  166.         !function () {
  167.             const n = document.getElementById("progressStyles");
  168.             n && n.sheet && (window.seewhen_progress_bar = g(n),
  169.             window.seewhen_progress_bar && window.seewhen_progress_bar.start && window.seewhen_progress_bar.start())
  170.         }()
  171.     </script>
  172.     {#    <script src="{{ asset('packages/ui.js') }}"></script>#}
  173.     {{ encore_entry_script_tags('app') }}
  174. {% endblock javascripts %}
  175. {% block modals %}
  176. {% endblock modals%}
  177. </body>
  178. </html>