Skip to content

Commit bd23eae

Browse files
committed
django 2.0
1 parent 0e5ebb5 commit bd23eae

File tree

16 files changed

+2873
-0
lines changed

16 files changed

+2873
-0
lines changed

assets/css/css/all.css

Lines changed: 2428 additions & 0 deletions
Large diffs are not rendered by default.

python_ru/templates/base.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% load staticfiles %}
2+
<!DOCTYPE html>
3+
<html xmlns="http://www.w3.org/1999/xhtml">
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="google-site-verification" content="RAskX0UNOnUGX4OiXn7jalIRZj-SwZej5FRKUlBHEnM" />
8+
<title>Python.ru</title>
9+
<link media="all" rel="stylesheet" href="{% static "css/all.css" %}" />
10+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
11+
<link rel="apple-touch-icon" sizes="180x180" href="{% static "favicons/apple-touch-icon.png" %}">
12+
<link rel="icon" type="image/png" href="{% static "favicons/favicon-32x32.png" %}" sizes="32x32">
13+
<link rel="icon" type="image/png" href="{% static "favicons/favicon-16x16.png" %}" sizes="16x16">
14+
<link rel="manifest" href="{% static "favicons/manifest.json" %}">
15+
<link rel="mask-icon" href="{% static "favicons/safari-pinned-tab.svg" %}" color="#5bbad5">
16+
<meta name="theme-color" content="#ffffff">
17+
</head>
18+
<body>
19+
<div id="wrapper">
20+
<div class="w1">
21+
22+
{% block header_block %}
23+
{% include 'blocks/header.html' %}
24+
{% endblock %}
25+
<!-- <div id="top-banner" class="conf">
26+
<a href="http://conf.python.ru/?utm_source=python-ru&amp;utm_medium=banner&amp;utm_campaign=python-ru-top" target="_blank"></a>
27+
</div> -->
28+
29+
<main>
30+
{% block main_content %}{% endblock %}
31+
</main>
32+
33+
{% include 'blocks/footer.html' %}
34+
</div>
35+
</div>
36+
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
37+
<script type="text/javascript" src="{% static "js/masonry.pkgd.min.js" %}"></script>
38+
<script type="text/javascript" src="{% static "js/jquery.main.js" %}"></script>
39+
<script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = 'https://vk.com/rtrg?p=VK-RTRG-140885-7lEHE';</script>
40+
{% include 'blocks/analytics.html' %}
41+
{% block extra_js %}{% endblock %}
42+
</body>
43+
</html>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% load staticfiles %}
2+
<section class="about-us-section" id="about">
3+
<div class="container">
4+
<!-- about us -->
5+
<div class="about-us">
6+
<h1>Немного о нас</h1>
7+
<p>Мы евангелисты сообщества MoscowPython. Занимаемся развитием Python-сообщества: организуем курсы, встречи, конференции и другую движуху.</p>
8+
<p>Представьте, как круто: новички знают, где учиться, середнячки — где работать и что подтянуть, профи делятся опытом, принося пользу и себе и сообществу. Все общаются в одной среде: знают, какие и где проходят мероприятия и могут организовать своё.</p>
9+
{# <div class="btn-holder">#}
10+
{# <a href="#" class="btn-default">Узнать подробнее</a>#}
11+
{# </div>#}
12+
</div>
13+
<div class="project">
14+
<div class="project-holder">
15+
<div class="title"><h1>Что мы делаем</h1></div>
16+
<!-- project list -->
17+
<ul class="project-list">
18+
<!-- project -->
19+
<li>
20+
<div class="image-holder"><a href="http://msk.python.ru"><img src="{% static "images/img-project-1.png" %}" width="75" height="105" alt="image description"></a></div>
21+
<div class="text-holder">
22+
<p>Сообщество, появившееся в 2012-м году. Мы рады объединять российское сообщество Python и вносить свой вклад в развитие IT-экосистемы. </p>
23+
</div>
24+
</li>
25+
<!-- project -->
26+
<li>
27+
<div class="image-holder"><a href="https://conf.python.ru"><img src="{% static "images/img-project-2.png" %}" width="112" height="74" alt="image description"></a></div>
28+
<div class="text-holder">
29+
<p>Ежегодная конференция в Москве. На наши встречи собирается больше 200 человек и мы сотрудничаем с Mail.Ru Group, Rambler&co, Яндекс, #tceh и другими. </p>
30+
</div>
31+
</li>
32+
<!-- project -->
33+
<li>
34+
<div class="image-holder"><a href="https://learn.python.ru"><img src="{% static "images/img-project-3.png" %}" width="115" height="50" alt="image description"></a></div>
35+
<div class="text-holder">
36+
<p>Трехмесячные обучающие оффлайн-курсы Python. Первый русскоязычный курс без «воды». В нем много практики, и ведут его крутые спецы. </p>
37+
</div>
38+
</li>
39+
</ul>
40+
</div>
41+
</div>
42+
</div>
43+
</section>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- Yandex.Metrika counter -->
2+
<script type="text/javascript">
3+
(function (d, w, c) {
4+
(w[c] = w[c] || []).push(function() {
5+
try {
6+
w.yaCounter36362740 = new Ya.Metrika({
7+
id:36362740,
8+
clickmap:true,
9+
trackLinks:true,
10+
accurateTrackBounce:true
11+
});
12+
} catch(e) { }
13+
});
14+
15+
var n = d.getElementsByTagName("script")[0],
16+
s = d.createElement("script"),
17+
f = function () { n.parentNode.insertBefore(s, n); };
18+
s.type = "text/javascript";
19+
s.async = true;
20+
s.src = "https://mc.yandex.ru/metrika/watch.js";
21+
22+
if (w.opera == "[object Opera]") {
23+
d.addEventListener("DOMContentLoaded", f, false);
24+
} else { f(); }
25+
})(document, window, "yandex_metrika_callbacks");
26+
</script>
27+
<noscript><div><img src="https://mc.yandex.ru/watch/36362740" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
28+
<!-- /Yandex.Metrika counter -->
29+
30+
<script>
31+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
32+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
33+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
34+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
35+
36+
ga('create', 'UA-76163383-1', 'auto');
37+
ga('send', 'pageview');
38+
39+
</script>
40+
41+
<script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=rMFPKf5XsBOkyFnhVuuCB*sk2MtYdGxkHpF*/ydkYXmbvvXJXZCE0hZmetQgWrWd1umw7ylDNVS5Whv/pVUzLK0FT4Nrk*399Cy9nWwHw*RHMPDKusRyK0qifR5YFXy/iUv*LGjIB7HmGQ6crvbCv0j3eCS9NVHz5oDy4*FWvf0-';</script>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% load content_filters %}
2+
<section class="form-section">
3+
<div class="container">
4+
<div class="container-inner">
5+
<header class="heading">
6+
<div class="title-holder"><h1>Связаться с нами</h1></div>
7+
<p>Есть идеи и пожелания по развитию сообщества? Пишите, будем рады знать.</p>
8+
</header>
9+
<!-- contact form -->
10+
<form action="#" class="contact-form">
11+
<div class="form-row">
12+
<div class="form-column">
13+
<input type="text" placeholder="Имя">
14+
</div>
15+
<div class="form-column">
16+
<input type="email" placeholder="Email">
17+
</div>
18+
</div>
19+
<div class="form-row textarea-row">
20+
<textarea placeholder="Сообщение" cols="30" rows="10"></textarea>
21+
</div>
22+
<div class="submit-holder">
23+
<input type="submit" value="Отправить">
24+
</div>
25+
</form>
26+
</div>
27+
</div>
28+
</section>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% load staticfiles %}
2+
<section class="events-section" id="events">
3+
<div class="container">
4+
<div class="title-holder">
5+
<h1>Ближайшие события</h1>
6+
</div>
7+
<div class="image-holder">
8+
<img src="{% static "images/russia_outline_map.svg" %}" style="transform: rotate(-5deg);" width="415" height="245" alt="Карта событий">
9+
</div>
10+
<div class="events-holder">
11+
<!-- events list -->
12+
<ul class="events-list">
13+
{% for event in events %}
14+
<li>
15+
<time datetime="{{ event.date|date:"Y-m-d H:m" }}">
16+
<span class="number-holder">{{ event.date|date:"d" }}</span>
17+
<span class="text-holder">{{ event.date|date:"E, l"|lower }}</span>
18+
</time>
19+
<div class="event-holder">
20+
<a href="{{ event.url }}" target="_blank">{{ event.name }}</a>
21+
</div>
22+
</li>
23+
{% endfor %}
24+
</ul>
25+
</div>
26+
</div>
27+
</section>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% load staticfiles %}
2+
<section class="events-section" id="events" style="padding: 49px 0 45px;">
3+
<div class="container">
4+
<div class="title-holder">
5+
<h1>Ближайшие события</h1>
6+
</div>
7+
<div style="margin: 0 auto; max-width: 790px; padding: 0 50px; text-align: center;">
8+
<p>Тут будут анонсы митапов, хакатонов и конференций про Python.<br/>
9+
Если вы организуете такую - <a href="mailto:team@python.ru" style="text-decoration: underline">дайте нам знать</a> и мы напишем о вас.
10+
</p>
11+
</div>
12+
</section>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% load staticfiles %}
2+
<footer class="footer">
3+
<div class="container">
4+
<!-- email -->
5+
<a href="mailto:team@python.ru">team@python.ru</a>
6+
<!-- social networks -->
7+
<ul class="social-networks">
8+
{% for social_link in social_links %}
9+
<li><a href="{{ social_link.url }}" class="icon-{{ social_link.id }}">{{ social_link.name }}</a></li>
10+
{% endfor %}
11+
</ul>
12+
<!-- copyright -->
13+
<p class="copyright">&copy; 2016 <a href="https://python.ru">Python.ru</a></p>
14+
</div>
15+
</footer>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends 'blocks/header_no_menu.html' %}
2+
3+
4+
{% block navigation_menu %}
5+
<ul class="primary-menu js-navigation">
6+
<li><a href="#news">Новости</a></li>
7+
<li><a href="#events">Анонсы</a></li>
8+
<li><a href="#about">О проекте</a></li>
9+
<li><a href="#resources">Ресурсы</a></li>
10+
</ul>
11+
{% endblock %}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{% load staticfiles %}
2+
3+
4+
<header class="header">
5+
<div class="container">
6+
<!-- logo -->
7+
<div class="logo"><a href="/"><img src="{% static 'images/logo.png' %}" width="133" height="27" alt="Python.ru"></a></div>
8+
<!-- main navigation -->
9+
<nav class="main-nav">
10+
<a href="#" class="nav-opener"><span>Menu</span></a>
11+
<div class="nav-drop">
12+
{% block navigation_menu %}{% endblock %}
13+
</div>
14+
</nav>
15+
<!-- social networks -->
16+
<ul class="social-networks">
17+
{% for social_link in social_links %}
18+
<li>
19+
<a href="{{ social_link.url }}" class="icon-{{ social_link.id }}">{{ social_link.name }}</a>
20+
</li>
21+
{% endfor %}
22+
</ul>
23+
</div>
24+
</header>

0 commit comments

Comments
 (0)