base.html.twig 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {% block meta %}
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. {% endblock %}
  8. <title>
  9. {% block title %}{% endblock %}
  10. </title>
  11. {% block stylesheets %}
  12. <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans&display=swap" rel="stylesheet">
  13. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}" media="screen and (min-width: 1300px)">
  14. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_mid.css') }}" media="screen and (max-width: 1300px)">
  15. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_small.css') }}" media="screen and (max-width: 750px)">
  16. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
  17. {% endblock %}
  18. </head>
  19. <body>
  20. {% block icons %}
  21. <svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  22. <defs>
  23. <symbol id="icon-attach" viewbox="0 0 32 32">
  24. {{ source('@public_path'~asset('assets/icons/attach.svg')) }}
  25. </symbol>
  26. <symbol id="icon-heart" viewbox="0 0 32 32">
  27. {{ source('@public_path/assets/icons/heart.svg') }}
  28. </symbol>
  29. <symbol id="icon-logo" viewbox="0 0 32 32">
  30. {{ source('@public_path/assets/icons/logo.svg') }}
  31. </symbol>
  32. <symbol id="icon-drop" viewbox="0 0 32 32">
  33. {{ source('@public_path/assets/icons/drop.svg') }}
  34. </symbol>
  35. <symbol id="icon-reply" viewbox="0 0 32 32">
  36. {{ source('@public_path/assets/icons/reply.svg') }}
  37. </symbol>
  38. <symbol id="icon-menu" viewbox="0 0 32 32">
  39. {{ source('@public_path/assets/icons/menu.svg') }}
  40. </symbol>
  41. <symbol id="icon-recycle" viewbox="0 0 32 32">
  42. {{ source('@public_path/assets/icons/recycle.svg') }}
  43. </symbol>
  44. <symbol id="icon-search" viewbox="0 0 32 32">
  45. {{ source('@public_path/assets/icons/search.svg') }}
  46. </symbol>
  47. <symbol id="icon-avatar" viewbox="0 0 32 32">
  48. {{ source('@public_path/assets/icons/avatar.svg') }}
  49. </symbol>
  50. </defs>
  51. </svg>
  52. {% endblock %}
  53. <div class="container">
  54. {% block header %}
  55. <div id='header'>
  56. <div id='top'>
  57. {% block left %}
  58. {% endblock left %}
  59. <nav id='instance'>
  60. <a href="#">
  61. <svg class="icon icon-logo">
  62. <use xlink:href="#icon-logo"></use>
  63. </svg><b>GNU social</b>
  64. </a>
  65. </nav>
  66. <svg id='search' class="icon icon-search">
  67. <use xlink:href="#icon-search"></use>
  68. </svg>
  69. </div>
  70. </div>
  71. {% endblock header%}
  72. {% block nav %}{% endblock %}
  73. {% block body %}{% endblock %}
  74. {% block javascripts %}{% endblock %}
  75. </div>
  76. </body>
  77. </html>