master
fefa4ka 11 years ago
commit 04102d7a09
  1. 5
      .gitignore
  2. 10
      manage.py
  3. 1
      requirements.txt
  4. 0
      zsite/__init__.py
  5. 0
      zsite/menu.py
  6. 239
      zsite/settings.py
  7. 4
      zsite/static/.bowerrc
  8. 10
      zsite/static/bower.json
  9. 22
      zsite/static/imgs/logo_en.svg
  10. BIN
      zsite/static/imgs/logo_ru.png
  11. 23
      zsite/static/imgs/logo_ru.svg
  12. 448
      zsite/static/imgs/pattern.svg
  13. 1
      zsite/static/js/app.js
  14. 135
      zsite/static/less/grid.less
  15. 18
      zsite/static/less/main.less
  16. 41
      zsite/templates/base.html
  17. 13
      zsite/templates/feature.html
  18. 9
      zsite/templates/language_chooser.html
  19. 11
      zsite/templates/mainpage.html
  20. 19
      zsite/templates/menu.html
  21. 8
      zsite/templates/page.html
  22. 24
      zsite/urls.py
  23. 14
      zsite/wsgi.py

5
.gitignore vendored

@ -0,0 +1,5 @@
media/*
static/*
*.pyc
frontend/static/*
zsite/static/vendor/*

@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zsite.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)

@ -0,0 +1 @@
aldryn-newsblog

@ -0,0 +1,239 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
"""
Django settings for zsite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '=%%a@whz46w1#=8ffk^a+8vya5fg-kz0ztyz!_@hdg-(5a9q+s'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
# Application definition
ROOT_URLCONF = 'zsite.urls'
WSGI_APPLICATION = 'zsite.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/
LANGUAGE_CODE = 'ru'
TIME_ZONE = 'Europe/Moscow'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DATA_DIR, 'media')
STATIC_ROOT = os.path.join(DATA_DIR, 'static')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'zsite', 'static'),
)
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
)
PIPELINE_COMPILERS = (
'pipeline.compilers.less.LessCompiler',
)
PIPELINE_JS = {
'main': {
'source_filenames': (
'js/app.js',
),
'output_filename': 'js/*.js',
},
'vendor': {
'source_filenames': (
'vendor/angular/angular.js',
'vendor/angular-bootstrap/ui-bootstrap.js'
),
'output_filename': 'js/vendor.js',
}
}
PIPELINE_CSS = {
'main': {
'source_filenames': (
'less/*.less',
),
'output_filename': 'css/main.css',
}
}
SITE_ID = 1
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader'
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.language.LanguageCookieMiddleware'
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.i18n',
'django.core.context_processors.debug',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.csrf',
'django.core.context_processors.tz',
'sekizai.context_processors.sekizai',
'django.core.context_processors.static',
'cms.context_processors.cms_settings'
)
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'zsite', 'templates'),
)
INSTALLED_APPS = (
'djangocms_admin_style',
'djangocms_text_ckeditor',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.staticfiles',
'django.contrib.messages',
'cms',
'menus',
'sekizai',
'treebeard',
'djangocms_style',
'djangocms_column',
'djangocms_file',
'djangocms_flash',
'djangocms_googlemap',
'djangocms_inherit',
'djangocms_link',
'djangocms_picture',
'djangocms_teaser',
'djangocms_video',
'reversion',
'pipeline',
'zsite'
)
LANGUAGES = (
## Customize this
('ru', u'Русский'),
('en', u'English'),
)
CMS_LANGUAGES = {
## Customize this
'default': {
'public': True,
'hide_untranslated': False,
'redirect_on_fallback': True,
},
1: [
{
'public': True,
'code': 'ru',
'hide_untranslated': False,
'name': u'Русский',
'redirect_on_fallback': True,
},
{
'public': True,
'code': 'en',
'hide_untranslated': False,
'name': u'English',
'redirect_on_fallback': True,
},
],
}
CMS_TEMPLATES = (
## Customize this
('page.html', 'Page'),
('feature.html', 'Page with Feature')
)
CMS_PERMISSION = True
CMS_PLACEHOLDER_CONF = {}
DATABASES = {
'default':
{'ENGINE': 'django.db.backends.mysql', 'NAME': u'zuykov', 'HOST': u'localhost', 'USER': u'root', 'PASSWORD': '', 'PORT': ''}
}
MIGRATION_MODULES = {
'djangocms_column': 'djangocms_column.migrations_django',
'djangocms_flash': 'djangocms_flash.migrations_django',
'djangocms_googlemap': 'djangocms_googlemap.migrations_django',
'djangocms_inherit': 'djangocms_inherit.migrations_django',
'djangocms_link': 'djangocms_link.migrations_django',
'djangocms_style': 'djangocms_style.migrations_django',
'djangocms_file': 'djangocms_file.migrations_django',
'djangocms_picture': 'djangocms_picture.migrations_django',
'djangocms_teaser': 'djangocms_teaser.migrations_django',
'djangocms_video': 'djangocms_video.migrations_django'
}

@ -0,0 +1,4 @@
{
"directory": "vendor",
"json": "bower.json"
}

@ -0,0 +1,10 @@
{
"name": "zuykov",
"version": "0.1.0",
"devDependencies": {
"angular": "1.3.6",
"bootstrap": "3.3.5",
"angular-bootstrap": "~0.10.0"
},
"dependencies": {}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 29 KiB

@ -0,0 +1,448 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="1440px" height="29px" viewBox="0 0 1440 29" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-weight="normal">
<g id="Главная-страница" transform="translate(0.000000, -188.000000)" fill="#000000">
<g id="Header" transform="translate(-14.000000, -17.000000)">
<g id="Services-Menu" transform="translate(0.000000, 191.000000)">
<g id="Services">
<g id="Background">
<text id="™-2" font-family="PT Serif" font-size="39.3797468">
<tspan x="14.6822529" y="42.6666667"></tspan>
</text>
<text id="™-3" font-family="PT Serif" font-size="18.4615385">
<tspan x="26.6950053" y="46.3333333"></tspan>
</text>
<text id="™-4" font-family="PT Serif" font-size="12.0535714">
<tspan x="60.7311371" y="45.3333333"></tspan>
</text>
<text id="™-5" font-family="PT Serif" font-size="14.84375">
<tspan x="112.786397" y="26.3333333"></tspan>
</text>
<text id="®-3" font-family="PT Serif" font-size="31.3482625">
<tspan x="112.786397" y="48">®</tspan>
</text>
<text id="®-5" font-family="PT Serif" font-size="15.7575758">
<tspan x="76.0807651" y="26.6666667">®</tspan>
</text>
<text id="®-6" font-family="PT Serif" font-size="18.1621622">
<tspan x="46.3836344" y="45">®</tspan>
</text>
<text id="®-4" font-family="PT Serif" font-size="24.668435">
<tspan x="0" y="39.6666667">®</tspan>
</text>
<text id="℗-2" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="54.7247609" y="34.3333333"></tspan>
</text>
<text id="℗-3" font-family="Lucida Grande" font-size="12.173913">
<tspan x="14.6822529" y="41.3333333"></tspan>
</text>
<text id="©-2" font-family="PT Serif" font-size="8.55555556">
<tspan x="7.34112646" y="21">©</tspan>
</text>
<text id="©-3" font-family="PT Serif" font-size="14.84375">
<tspan x="75.0786397" y="39.6666667">©</tspan>
</text>
<text id="©-4" font-family="PT Serif" font-size="35.8189135">
<tspan x="85.424017" y="38">©</tspan>
</text>
<text id="℗-4" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="129.805526" y="26"></tspan>
</text>
<text id="℠" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="134.809777" y="48.6666667"></tspan>
</text>
<text id="℠-3" font-family="Lucida Grande" font-size="38.9556853">
<tspan x="166.509033" y="44"></tspan>
</text>
<text id="™-9" font-family="PT Serif" font-size="30.0491803">
<tspan x="288.973433" y="37"></tspan>
</text>
<text id="™-6" font-family="PT Serif" font-size="18.4615385">
<tspan x="171.848034" y="46.3333333"></tspan>
</text>
<text id="™-7" font-family="PT Serif" font-size="12.0535714">
<tspan x="204.884166" y="44.3333333"></tspan>
</text>
<text id="™-8" font-family="PT Serif" font-size="14.84375">
<tspan x="256.939426" y="26.3333333"></tspan>
</text>
<text id="®" font-family="PT Serif" font-size="31.3482625">
<tspan x="256.939426" y="46">®</tspan>
</text>
<text id="®-8" font-family="PT Serif" font-size="15.7575758">
<tspan x="220.233794" y="26.6666667">®</tspan>
</text>
<text id="®-10" font-family="PT Serif" font-size="13.5">
<tspan x="142.818278" y="26.6666667">®</tspan>
</text>
<text id="®-9" font-family="PT Serif" font-size="18.1621622">
<tspan x="190.869288" y="44.6666667">®</tspan>
</text>
<text id="℗-5" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="198.87779" y="33.3333333"></tspan>
</text>
<text id="℗-6" font-family="Lucida Grande" font-size="12.173913">
<tspan x="158.835282" y="40.3333333"></tspan>
</text>
<text id="©-5" font-family="PT Serif" font-size="18.1621622">
<tspan x="152.494155" y="26">©</tspan>
</text>
<text id="©-6" font-family="PT Serif" font-size="14.84375">
<tspan x="218.231668" y="39.6666667">©</tspan>
</text>
<text id="©-13" font-family="PT Serif" font-size="12.3076923">
<tspan x="321.674814" y="23.6666667">©</tspan>
</text>
<text id="©-7" font-family="PT Serif" font-size="35.8189135">
<tspan x="229.577046" y="38">©</tspan>
</text>
<text id="℗-7" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="274.958555" y="26"></tspan>
</text>
<text id="℠-2" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="278.962806" y="49.6666667"></tspan>
</text>
<text id="™" font-family="PT Serif" font-size="39.3797468">
<tspan x="335.022317" y="42.6666667"></tspan>
</text>
<text id="™-10" font-family="PT Serif" font-size="18.4615385">
<tspan x="347.035069" y="46.3333333"></tspan>
</text>
<text id="™-11" font-family="PT Serif" font-size="12.0535714">
<tspan x="381.071201" y="45.3333333"></tspan>
</text>
<text id="™-12" font-family="PT Serif" font-size="14.84375">
<tspan x="433.126461" y="26.3333333"></tspan>
</text>
<text id="®-11" font-family="PT Serif" font-size="31.3482625">
<tspan x="433.126461" y="46">®</tspan>
</text>
<text id="®-12" font-family="PT Serif" font-size="15.7575758">
<tspan x="396.420829" y="26.6666667">®</tspan>
</text>
<text id="®-13" font-family="PT Serif" font-size="18.1621622">
<tspan x="367.723698" y="44">®</tspan>
</text>
<text id="®-14" font-family="PT Serif" font-size="24.668435">
<tspan x="317.003188" y="43.6666667">®</tspan>
</text>
<text id="℗-8" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="375.064825" y="34.3333333"></tspan>
</text>
<text id="℗-9" font-family="Lucida Grande" font-size="12.173913">
<tspan x="335.022317" y="41.3333333"></tspan>
</text>
<text id="℗-14" font-family="Lucida Grande" font-size="13.6296296">
<tspan x="303.655685" y="39.6666667"></tspan>
</text>
<text id="©-8" font-family="PT Serif" font-size="14.84375">
<tspan x="394.418704" y="39.6666667">©</tspan>
</text>
<text id="©-9" font-family="PT Serif" font-size="35.8189135">
<tspan x="405.764081" y="38">©</tspan>
</text>
<text id="℗-10" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="451.14559" y="26"></tspan>
</text>
<text id="℠-4" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="455.149841" y="49.6666667"></tspan>
</text>
<text id="℠-5" font-family="Lucida Grande" font-size="38.9556853">
<tspan x="485.849097" y="44"></tspan>
</text>
<text id="™-14" font-family="PT Serif" font-size="18.4615385">
<tspan x="491.188098" y="46.3333333"></tspan>
</text>
<text id="™-15" font-family="PT Serif" font-size="12.0535714">
<tspan x="525.22423" y="45.3333333"></tspan>
</text>
<text id="™-16" font-family="PT Serif" font-size="14.84375">
<tspan x="577.27949" y="26.3333333"></tspan>
</text>
<text id="®-15" font-family="PT Serif" font-size="31.3482625">
<tspan x="577.27949" y="46">®</tspan>
</text>
<text id="®-16" font-family="PT Serif" font-size="15.7575758">
<tspan x="540.573858" y="26.6666667">®</tspan>
</text>
<text id="®-17" font-family="PT Serif" font-size="13.5">
<tspan x="463.158342" y="24.6666667">®</tspan>
</text>
<text id="®-18" font-family="PT Serif" font-size="18.1621622">
<tspan x="511.209352" y="44.6666667">®</tspan>
</text>
<text id="℗-11" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="519.217853" y="34.3333333"></tspan>
</text>
<text id="℗-12" font-family="Lucida Grande" font-size="12.173913">
<tspan x="479.175345" y="41.3333333"></tspan>
</text>
<text id="©-10" font-family="PT Serif" font-size="18.1621622">
<tspan x="471.834219" y="26">©</tspan>
</text>
<text id="©-11" font-family="PT Serif" font-size="14.84375">
<tspan x="538.571732" y="39.6666667">©</tspan>
</text>
<text id="©-12" font-family="PT Serif" font-size="35.8189135">
<tspan x="549.917109" y="38">©</tspan>
</text>
<text id="™-32" font-family="PT Serif" font-size="39.3797468">
<tspan x="628.667375" y="42.6666667"></tspan>
</text>
<text id="™-17" font-family="PT Serif" font-size="18.4615385">
<tspan x="640.680128" y="46.3333333"></tspan>
</text>
<text id="™-18" font-family="PT Serif" font-size="12.0535714">
<tspan x="674.716259" y="45.3333333"></tspan>
</text>
<text id="™-19" font-family="PT Serif" font-size="14.84375">
<tspan x="726.77152" y="26.3333333"></tspan>
</text>
<text id="®-19" font-family="PT Serif" font-size="31.3482625">
<tspan x="726.77152" y="46">®</tspan>
</text>
<text id="®-20" font-family="PT Serif" font-size="15.7575758">
<tspan x="690.065887" y="26.6666667">®</tspan>
</text>
<text id="®-21" font-family="PT Serif" font-size="18.1621622">
<tspan x="661.368757" y="44">®</tspan>
</text>
<text id="®" font-family="PT Serif" font-size="51.2568306">
<tspan x="595.965994" y="52">®</tspan>
</text>
<text id="℗-15" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="668.709883" y="34.3333333"></tspan>
</text>
<text id="℗-16" font-family="Lucida Grande" font-size="12.173913">
<tspan x="628.667375" y="41.3333333"></tspan>
</text>
<text id="©-14" font-family="PT Serif" font-size="8.55555556">
<tspan x="594.631243" y="21">©</tspan>
</text>
<text id="©-15" font-family="PT Serif" font-size="14.84375">
<tspan x="688.063762" y="39.6666667">©</tspan>
</text>
<text id="©-16" font-family="PT Serif" font-size="35.8189135">
<tspan x="699.409139" y="38">©</tspan>
</text>
<text id="℗-17" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="744.790648" y="26"></tspan>
</text>
<text id="℠-7" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="748.794899" y="49.6666667"></tspan>
</text>
<text id="℠-8" font-family="Lucida Grande" font-size="38.9556853">
<tspan x="779.494155" y="44"></tspan>
</text>
<text id="™-20" font-family="PT Serif" font-size="30.0491803">
<tspan x="902.958555" y="37"></tspan>
</text>
<text id="™-21" font-family="PT Serif" font-size="18.4615385">
<tspan x="784.833156" y="46.3333333"></tspan>
</text>
<text id="™-22" font-family="PT Serif" font-size="12.0535714">
<tspan x="818.869288" y="45.3333333"></tspan>
</text>
<text id="™-23" font-family="PT Serif" font-size="14.84375">
<tspan x="870.924548" y="26.3333333"></tspan>
</text>
<text id="®-23" font-family="PT Serif" font-size="31.3482625">
<tspan x="870.924548" y="46">®</tspan>
</text>
<text id="®-24" font-family="PT Serif" font-size="15.7575758">
<tspan x="834.218916" y="26.6666667">®</tspan>
</text>
<text id="®-25" font-family="PT Serif" font-size="13.5">
<tspan x="756.803401" y="24.6666667">®</tspan>
</text>
<text id="®-26" font-family="PT Serif" font-size="18.1621622">
<tspan x="804.85441" y="44.6666667">®</tspan>
</text>
<text id="℗-18" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="812.862912" y="34.3333333"></tspan>
</text>
<text id="℗-19" font-family="Lucida Grande" font-size="12.173913">
<tspan x="772.820404" y="41.3333333"></tspan>
</text>
<text id="©-17" font-family="PT Serif" font-size="18.1621622">
<tspan x="765.479277" y="26">©</tspan>
</text>
<text id="©-18" font-family="PT Serif" font-size="14.84375">
<tspan x="832.216791" y="39.6666667">©</tspan>
</text>
<text id="©-19" font-family="PT Serif" font-size="12.3076923">
<tspan x="935.659936" y="23.6666667">©</tspan>
</text>
<text id="©-20" font-family="PT Serif" font-size="35.8189135">
<tspan x="843.562168" y="38">©</tspan>
</text>
<text id="℗-20" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="888.943677" y="26"></tspan>
</text>
<text id="℠-9" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="892.947928" y="49.6666667"></tspan>
</text>
<text id="™-24" font-family="PT Serif" font-size="39.3797468">
<tspan x="949.007439" y="42.6666667"></tspan>
</text>
<text id="™-25" font-family="PT Serif" font-size="18.4615385">
<tspan x="961.020191" y="46.3333333"></tspan>
</text>
<text id="™-26" font-family="PT Serif" font-size="12.0535714">
<tspan x="995.056323" y="45.3333333"></tspan>
</text>
<text id="™-27" font-family="PT Serif" font-size="14.84375">
<tspan x="1047.11158" y="26.3333333"></tspan>
</text>
<text id="®-27" font-family="PT Serif" font-size="31.3482625">
<tspan x="1047.11158" y="46">®</tspan>
</text>
<text id="®-28" font-family="PT Serif" font-size="15.7575758">
<tspan x="1010.40595" y="26.6666667">®</tspan>
</text>
<text id="®-29" font-family="PT Serif" font-size="18.1621622">
<tspan x="981.70882" y="44">®</tspan>
</text>
<text id="®-30" font-family="PT Serif" font-size="24.668435">
<tspan x="930.98831" y="43.6666667">®</tspan>
</text>
<text id="℗-21" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="989.049947" y="34.3333333"></tspan>
</text>
<text id="℗-22" font-family="Lucida Grande" font-size="12.173913">
<tspan x="949.007439" y="41.3333333"></tspan>
</text>
<text id="℗-23" font-family="Lucida Grande" font-size="13.6296296">
<tspan x="917.640808" y="39.6666667"></tspan>
</text>
<text id="©-21" font-family="PT Serif" font-size="14.84375">
<tspan x="1008.40383" y="39.6666667">©</tspan>
</text>
<text id="©-22" font-family="PT Serif" font-size="35.8189135">
<tspan x="1019.7492" y="38">©</tspan>
</text>
<text id="℗-24" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="1065.13071" y="26"></tspan>
</text>
<text id="℠-10" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="1069.13496" y="49.6666667"></tspan>
</text>
<text id="℠-11" font-family="Lucida Grande" font-size="38.9556853">
<tspan x="1099.83422" y="44"></tspan>
</text>
<text id="™-28" font-family="PT Serif" font-size="30.0491803">
<tspan x="1223.29862" y="37"></tspan>
</text>
<text id="™-29" font-family="PT Serif" font-size="18.4615385">
<tspan x="1105.17322" y="46.3333333"></tspan>
</text>
<text id="™-30" font-family="PT Serif" font-size="12.0535714">
<tspan x="1139.20935" y="45.3333333"></tspan>
</text>
<text id="™-31" font-family="PT Serif" font-size="14.84375">
<tspan x="1191.26461" y="26.3333333"></tspan>
</text>
<text id="®-31" font-family="PT Serif" font-size="31.3482625">
<tspan x="1191.26461" y="46">®</tspan>
</text>
<text id="®-32" font-family="PT Serif" font-size="15.7575758">
<tspan x="1154.55898" y="26.6666667">®</tspan>
</text>
<text id="®-33" font-family="PT Serif" font-size="13.5">
<tspan x="1077.14346" y="24.6666667">®</tspan>
</text>
<text id="®-34" font-family="PT Serif" font-size="18.1621622">
<tspan x="1125.19447" y="44.6666667">®</tspan>
</text>
<text id="℗-25" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="1133.20298" y="34.3333333"></tspan>
</text>
<text id="℗-26" font-family="Lucida Grande" font-size="12.173913">
<tspan x="1093.16047" y="41.3333333"></tspan>
</text>
<text id="©-23" font-family="PT Serif" font-size="18.1621622">
<tspan x="1085.81934" y="26">©</tspan>
</text>
<text id="©-24" font-family="PT Serif" font-size="14.84375">
<tspan x="1152.55685" y="39.6666667">©</tspan>
</text>
<text id="©-25" font-family="PT Serif" font-size="35.8189135">
<tspan x="1163.90223" y="38">©</tspan>
</text>
<text id="℗-27" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="1209.28374" y="26"></tspan>
</text>
<text id="℠-12" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="1213.28799" y="49.6666667"></tspan>
</text>
<text id="™-27-copy" font-family="PT Serif" font-size="14.84375">
<tspan x="1313.11158" y="26.3333333"></tspan>
</text>
<text id="®-27-copy" font-family="PT Serif" font-size="31.3482625">
<tspan x="1313.11158" y="46">®</tspan>
</text>
<text id="®-28-copy" font-family="PT Serif" font-size="15.7575758">
<tspan x="1276.40595" y="26.6666667">®</tspan>
</text>
<text id="®-29-copy" font-family="PT Serif" font-size="18.1621622">
<tspan x="1247.70882" y="44">®</tspan>
</text>
<text id="℗-21-copy" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="1255.04995" y="34.3333333"></tspan>
</text>
<text id="©-21-copy" font-family="PT Serif" font-size="14.84375">
<tspan x="1274.40383" y="39.6666667">©</tspan>
</text>
<text id="©-22-copy" font-family="PT Serif" font-size="35.8189135">
<tspan x="1285.7492" y="38">©</tspan>
</text>
<text id="℗-24-copy" font-family="Lucida Grande" font-size="14.5714286">
<tspan x="1331.13071" y="26"></tspan>
</text>
<text id="℠-10-copy" font-family="Lucida Grande" font-size="27.9230769">
<tspan x="1335.13496" y="49.6666667"></tspan>
</text>
<text id="℠-11-copy" font-family="Lucida Grande" font-size="38.9556853">
<tspan x="1365.83422" y="44"></tspan>
</text>
<text id="™-29-copy" font-family="PT Serif" font-size="18.4615385">
<tspan x="1371.17322" y="46.3333333"></tspan>
</text>
<text id="™-30-copy" font-family="PT Serif" font-size="12.0535714">
<tspan x="1405.20935" y="45.3333333"></tspan>
</text>
<text id="®-32-copy" font-family="PT Serif" font-size="15.7575758">
<tspan x="1420.55898" y="26.6666667">®</tspan>
</text>
<text id="®-33-copy" font-family="PT Serif" font-size="13.5">
<tspan x="1343.14346" y="24.6666667">®</tspan>
</text>
<text id="®-34-copy" font-family="PT Serif" font-size="18.1621622">
<tspan x="1391.19447" y="44.6666667">®</tspan>
</text>
<text id="℗-25-copy" font-family="Lucida Grande" font-size="25.5319149">
<tspan x="1399.20298" y="34.3333333"></tspan>
</text>
<text id="℗-26-copy" font-family="Lucida Grande" font-size="12.173913">
<tspan x="1359.16047" y="41.3333333"></tspan>
</text>
<text id="©-23-copy" font-family="PT Serif" font-size="18.1621622">
<tspan x="1351.81934" y="26">©</tspan>
</text>
<text id="©-24-copy" font-family="PT Serif" font-size="14.84375">
<tspan x="1418.55685" y="39.6666667">©</tspan>
</text>
<text id="©-24-copy-2" font-family="PT Serif" font-size="14.84375">
<tspan x="1235.69394" y="39.6666667">©</tspan>
</text>
<text id="©-25-copy" font-family="PT Serif" font-size="35.8189135">
<tspan x="1429.90223" y="38">©</tspan>
</text>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 30 KiB

@ -0,0 +1 @@
console.log('Yep');

@ -0,0 +1,135 @@
@grid-columns: 12;
@grid-gutter-width: 30px;
@grid-float-breakpoint: 728px;
// Creates a wrapper for a series of columns
.make-row(@gutter: @grid-gutter-width) {
// Then clear the floated columns
.clearfix();
@media (min-width: @screen-sm-min) {
margin-left: (@gutter / -2);
margin-right: (@gutter / -2);
}
// Negative margin nested rows out to align the content of columns
.row {
margin-left: (@gutter / -2);
margin-right: (@gutter / -2);
}
}
// Generate the extra small columns
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
position: relative;
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@gutter / 2);
padding-right: (@gutter / 2);
// Calculate width based on number of columns available
@media (min-width: @grid-float-breakpoint) {
float: left;
width: percentage((@columns / @grid-columns));
}
}
// Generate the small columns
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
position: relative;
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@gutter / 2);
padding-right: (@gutter / 2);
// Calculate width based on number of columns available
@media (min-width: @screen-sm-min) {
float: left;
width: percentage((@columns / @grid-columns));
}
}
// Generate the small column offsets
.make-sm-column-offset(@columns) {
@media (min-width: @screen-sm-min) {
margin-left: percentage((@columns / @grid-columns));
}
}
.make-sm-column-push(@columns) {
@media (min-width: @screen-sm-min) {
left: percentage((@columns / @grid-columns));
}
}
.make-sm-column-pull(@columns) {
@media (min-width: @screen-sm-min) {
right: percentage((@columns / @grid-columns));
}
}
// Generate the medium columns
.make-md-column(@columns; @gutter: @grid-gutter-width) {
position: relative;
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@gutter / 2);
padding-right: (@gutter / 2);
// Calculate width based on number of columns available
@media (min-width: @screen-md-min) {
float: left;
width: percentage((@columns / @grid-columns));
}
}
// Generate the medium column offsets
.make-md-column-offset(@columns) {
@media (min-width: @screen-md-min) {
margin-left: percentage((@columns / @grid-columns));
}
}
.make-md-column-push(@columns) {
@media (min-width: @screen-md-min) {
left: percentage((@columns / @grid-columns));
}
}
.make-md-column-pull(@columns) {
@media (min-width: @screen-md-min) {
right: percentage((@columns / @grid-columns));
}
}
// Generate the large columns
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
position: relative;
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@gutter / 2);
padding-right: (@gutter / 2);
// Calculate width based on number of columns available
@media (min-width: @screen-lg-min) {
float: left;
width: percentage((@columns / @grid-columns));
}
}
// Generate the large column offsets
.make-lg-column-offset(@columns) {
@media (min-width: @screen-lg-min) {
margin-left: percentage((@columns / @grid-columns));
}
}
.make-lg-column-push(@columns) {
@media (min-width: @screen-lg-min) {
left: percentage((@columns / @grid-columns));
}
}
.make-lg-column-pull(@columns) {
@media (min-width: @screen-lg-min) {
right: percentage((@columns / @grid-columns));
}
}

@ -0,0 +1,18 @@
@import '../vendor/bootstrap/less/bootstrap.less';
@import 'grid.less';
.wrapper {
.make-row();
}
.header-logo {
.make-lg-column(8);
}
.header-contacts {
.make-lg-column(3);
.make-lg-column-offset(1);
}
.logo {
height: 100px;
}

@ -0,0 +1,41 @@
{% load cms_tags staticfiles sekizai_tags menu_tags i18n %}
{% load pipeline %}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}Zuykov and partners{% endblock title %}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
{% stylesheet 'main' %}
{% javascript 'vendor' %}
{% javascript 'main' %}
{% render_block "css" %}
</head>
<body>
{% cms_toolbar %}
<div class="container">
<div class="wrapper">
<div class="header-logo">
<a href="/">
<img src="
{% with 'imgs/logo_'|add:request.LANGUAGE_CODE|add:'.svg' as image_static %}
{% static image_static %}
{% endwith %}
">
</a>
</div>
<div class="header-contacts">
{% language_chooser 'language_chooser.html' %}
<a href="{% page_url "about" %}">{% page_attribute "page_title" "about" %}</a>
</div>
</div>
<ul class="list-unstyled menu">
{% show_menu 0 1 100 100 "menu.html" %}
</ul>
{% block content %}{% endblock content %}
</div>
{% render_block "js" %}
</body>
</html>

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

@ -0,0 +1,9 @@
{% load i18n menu_tags %}
{% if languages|length > 1 %}
{% for language in languages %}
{% ifnotequal current_language language.0 %}
<a href="{% page_language_url language.0 %}" title="{% trans "Change to language:" %} {{ language.1 }}">{{ language.1 }}</a>
{% endifnotequal %}
{% endfor %}
{% endif %}

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block content %}
<div class="jumbotron">
{% placeholder "feature" %}
</div>
<div>
{% placeholder "content" %}
</div>
{% endblock content %}

@ -0,0 +1,19 @@
{% load i18n menu_tags cache %}
{% for child in children %}
<li class="{% if child.ancestor %}ancestor{% endif %}
{% if child.selected %} active{% endif %}
{% if child.children %} dropdown{% endif %}">
{% if child.children %}
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{{ child.get_menu_title }} <span class="caret"></span>
</a>
<ul class="dropdown-menu">
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
{% else %}
<a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a>
{% endif %}
</li>
{% if class and forloop.last and not forloop.parentloop %}{% endif %}
{% endfor %}

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

@ -0,0 +1,24 @@
from __future__ import print_function
from cms.sitemaps import CMSSitemap
from django.conf.urls import * # NOQA
from django.conf.urls.i18n import i18n_patterns
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = i18n_patterns('',
url(r'^admin/', include(admin.site.urls)), # NOQA
url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^select2/', include('django_select2.urls')),
url(r'^', include('cms.urls')),
)
# This is only needed when using runserver.
if settings.DEBUG:
urlpatterns = patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', # NOQA
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
) + staticfiles_urlpatterns() + urlpatterns # NOQA

@ -0,0 +1,14 @@
"""
WSGI config for zsite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zsite.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Loading…
Cancel
Save