Initial commit

This commit is contained in:
Andrey Golovizin 2020-01-19 15:58:54 +01:00
commit 02ad5fed3d
17 changed files with 1232 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{% load cms_tags menu_tags sekizai_tags %}
<!doctype html>
<html>
<head>
<title>{% block title %}This is my new project home page{% endblock title %}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/static/style.css" rel="stylesheet">
<style type="text/css">
.nav {
padding-left: 0;
}
.nav li {
display: inline;
list-style-type: none;
padding-right: 20px;
}
.container {
max-width: 940px;
margin: 0 auto
}
.content {
float: left;
width: 80%;
}
.sidebar {
float: left;
width: 20%;
}
</style>
{% render_block "css" %}
</head>
<body>
{% cms_toolbar %}
<div class="container">
<h1>{% page_attribute "page_title" %}</h1>
<nav id="page-nav">
<label for="hamburger">&#9776;</label>
<input type="checkbox" id="hamburger"/>
<ul class="nav">
{% show_menu 0 100 100 100 %}
</ul>
</nav>
{% block content %}{% endblock content %}
</div>
{% render_block "js" %}
</body>
</html>

View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
{% block content %}
{% placeholder "content" %}
{% endblock content %}

View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
{% block content %}
<div class="sidebar">
{% placeholder "sidebar" %}
</div>
<div class="content">
{% placeholder "content" %}
</div>
{% endblock content %}

View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
{% block content %}
<div class="content">
{% placeholder "content" %}
</div>
<div class="sidebar">
{% placeholder "sidebar" %}
</div>
{% endblock content %}