base.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html dir="ltr" lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="description" content="">
  7. <meta name="color-scheme" content="dark">
  8. <link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', path='/apple-touch-icon.png') }}">
  9. <link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', path='/favicon-32x32.png') }}">
  10. <link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', path='/favicon-16x16.png') }}">
  11. <link rel="manifest" href="{{ url_for('static', path='/site.webmanifest') }}">
  12. <title>Dark.Fi Hardware</title>
  13. {% if CACHE == 'enable' %}
  14. <link rel="stylesheet" type="text/css" href="{{ url_for('static', path='/dist/styles-XHZV2ERZ.css') }}">
  15. <link rel="preload" href="{{ url_for('static', path='/dist/fonts/IBMPlexMono-Light.woff2') }}" as="font" type="font/woff2" crossorigin>
  16. <link rel="preload" href="{{ url_for('static', path='/dist/fonts/IBMPlexMono-LightItalic.woff2') }}" as="font" type="font/woff2" crossorigin>
  17. <link rel="preload" href="{{ url_for('static', path='/dist/fonts/Inter-Bold.woff2') }}" as="font" type="font/woff2" crossorigin>
  18. <link rel="preload" href="{{ url_for('static', path='/dist/fonts/Inter-BoldItalic.woff2') }}" as="font" type="font/woff2" crossorigin>
  19. <link rel="preload" href="{{ url_for('static', path='/dist/fonts/weissrundgotisch.regular.woff2') }}" as="font" type="font/woff2" crossorigin>
  20. {% if request.url.path.startswith('/products/') %}
  21. <script type="module" src="{{ url_for('static', path='/dist/product-R6DMP5AX.js') }}"></script>
  22. {% endif %}
  23. {% if request.url.path == '/checkout' %}
  24. <script src="https://js.stripe.com/v3/"></script>
  25. <script type="module" src="{{ url_for('static', path='/dist/checkout-7PTSF3BQ.js') }}"></script>
  26. {% endif %}
  27. {% else %}
  28. <link rel="stylesheet" type="text/css" href="{{ url_for('static', path='/css/styles.css') }}">
  29. <link rel="preload" href="{{ url_for('static', path='/fonts/IBMPlexMono-Light.woff2') }}" as="font" type="font/woff2" crossorigin>
  30. <link rel="preload" href="{{ url_for('static', path='/fonts/IBMPlexMono-LightItalic.woff2') }}" as="font" type="font/woff2" crossorigin>
  31. <link rel="preload" href="{{ url_for('static', path='/fonts/Inter-Bold.woff2') }}" as="font" type="font/woff2" crossorigin>
  32. <link rel="preload" href="{{ url_for('static', path='/fonts/Inter-BoldItalic.woff2') }}" as="font" type="font/woff2" crossorigin>
  33. <link rel="preload" href="{{ url_for('static', path='/fonts/weissrundgotisch.regular.woff2') }}" as="font" type="font/woff2" crossorigin>
  34. {% if request.url.path.startswith('/products/') %}
  35. <script type="module" src="{{ url_for('static', path='/js/product.js') }}"></script>
  36. {% endif %}
  37. {% if request.url.path == '/checkout' %}
  38. <script src="https://js.stripe.com/v3/"></script>
  39. <script type="module" src="{{ url_for('static', path='/js/checkout.js') }}"></script>
  40. {% endif %}
  41. {% endif %}
  42. </head>
  43. <body class="x xdc nav-height bgc-black">
  44. {% include "partials/nav.html" %}
  45. {% block content %}{% endblock %}
  46. </body>
  47. </html>