Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. {% load i18n staticfiles %}
  2.  
  3. <!DOCTYPE html>
  4. <html lang="{{ LANGUAGE_CODE }}">
  5. <head>
  6. <meta charset="utf-8">
  7. <meta name="description" content="Drigan">
  8. <meta name="theme-color" content="#009688">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <title>{% block title %}{% if flatpage %}{{ flatpage.title }}{% endif %}{% endblock %} | drigan</title>
  11. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  12. <script src="{% static "jquery-1.11.1.min.js" %}"></script>
  13. <script src="{% static "scripts.js" %}"></script>
  14. <script src="{% static "materialize.js" %}"></script>
  15. <script src="https://raw.githubusercontent.com/pixelcog/parallax.js/master/parallax.min.js"></script>
  16. <link href="{% static "materialize.css" %}" rel="stylesheet">
  17. {% block head %}{% endblock %}
  18. <script type="text/javascript">
  19. $( document ).ready(function(){
  20. $(".button-collapse").sideNav({menuWidth:270});
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <header>
  26. <div class="navbar-fixed z-depth-1">
  27. <nav>
  28. <div class="nav-wrapper teal">
  29. <a href="/" class="brand-logo center">Drigan</a>
  30. <a data-activates="menu-drigan-morys" class="btn-floating btn-large waves-effect waves-light teal button-collapse left"><i class="material-icons">menu</i></a>
  31. <ul class="side-nav" id="menu-drigan-morys">
  32. <li style="top: 8px; bottom: 4px; text-align: center;"><div style="background-image: url({% static "img/office.jpg" %});">
  33. <img align="middle" src="{% static "img/oratorium.png" %}" style="width:50%; height: auto;">
  34. <a href="http://TODO" class="center-align white-text">Oratorium Tarnowskie Góry<i class="tiny material-icons right white-text">open_in_new</i></a></div></li>
  35. <li><div style="margin-top:5px;margin-bottom:5px;" class="col s12 divider"></div></li>
  36. {% if user.is_staff %}
  37. <li><a style="width: 100%;" class="waves-effect waves-light teal lighten-1" href="{% url 'admin:index' %}">{% trans "Admin" %}</a></li>
  38. {% endif %}
  39. {% if user.is_authenticated %}
  40. <li><a style="width: 100%;" class="waves-effect waves-teal" href="">{{ user }}</a></li>
  41. <li><a style="width: 100%;" class="waves-effect waves-teal" href="{% url "auth_logout" %}?next={{ request.path }}">{% trans "Sign out" %}!</a></li>
  42. {% else %}
  43. <li><a style="width: 100%;" class="waves-effect waves-teal" href="{% url "auth_login" %}?next={{ request.path }}">{% trans "Sign in" %}!</a></li>
  44. {% endif %}
  45. </ul>
  46. </div>
  47. </nav>
  48. </div>
  49. </header>
  50. <div class="parallax-container">
  51. <main>
  52. <div class="container">
  53. {% if messages %}
  54. <div class="messages">
  55. {% for message in messages %}
  56. <div{% if message.tags %} class="alert alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
  57. {% endfor %}
  58. </div>
  59. {% endif %}
  60. {% block content %}{% endblock %}
  61. </div>
  62. <div class="parallax"><img src="https://github.com/Dogfalo/materialize/blob/master/templates/parallax-template/background1.jpg" alt="Unsplashed background img 1"></div>
  63. </main>
  64. </div>
  65. <script type="text/javascript">
  66. (function($){
  67.   $(function(){
  68.     $('.parallax').parallax();
  69.  });
  70. })(jQuery);
  71. </script>
  72. </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement