Skip to content

Commit f10cd3c

Browse files
committed
Add banners for the 2018 edition of Python survey
1 parent 8da7c9e commit f10cd3c

File tree

9 files changed

+80
-9
lines changed

9 files changed

+80
-9
lines changed
Loading
11.1 KB
Loading

static/sass/_layout.scss

+14
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,11 @@
11431143

11441144
a { padding: 0.3em 0.75em; }
11451145
}
1146+
1147+
#python-jetbrains-survey {
1148+
display: block;
1149+
}
1150+
11461151
}
11471152

11481153

@@ -1199,6 +1204,11 @@
11991204
.job-description {
12001205
@include pad( 1,1 );
12011206
}
1207+
1208+
#python-jetbrains-survey {
1209+
display: block;
1210+
}
1211+
12021212
}
12031213

12041214

@@ -1231,4 +1241,8 @@
12311241
}
12321242

12331243
.community-banner { background-position: 90% 0; }
1244+
1245+
#python-jetbrains-survey {
1246+
display: block;
1247+
}
12341248
}

static/sass/mq.css

+11-2
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,9 @@ html[xmlns] .slides { display: block; }
23222322
.footer-links a {
23232323
padding: 0.3em 0.75em; }
23242324

2325+
#python-jetbrains-survey {
2326+
display: block; }
2327+
23252328
.flex-slideshow.home-slideshow .caption-wrapper {
23262329
float: left;
23272330
width: 49%; }
@@ -2481,7 +2484,10 @@ html[xmlns] .slides { display: block; }
24812484
.event-description,
24822485
.job-description {
24832486
padding-left: 8.51064%;
2484-
padding-right: 8.51064%; } }
2487+
padding-right: 8.51064%; }
2488+
2489+
#python-jetbrains-survey {
2490+
display: block; } }
24852491
/* - - - Larger than 1200px - - - */
24862492
@media (min-width: 75em) {
24872493
body:after {
@@ -2514,7 +2520,10 @@ html[xmlns] .slides { display: block; }
25142520
margin-right: 17.3913%; }
25152521

25162522
.community-banner {
2517-
background-position: 90% 0; } }
2523+
background-position: 90% 0; }
2524+
2525+
#python-jetbrains-survey {
2526+
display: block; } }
25182527
/* http://dev.w3.org/csswg/css-device-adapt/
25192528
* http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
25202529
* for IE10 Snap Mode on Metro

static/sass/style.css

+14-3
Original file line numberDiff line numberDiff line change
@@ -3065,9 +3065,20 @@ div.sidebar {
30653065
margin-top: 0.625em;
30663066
margin-bottom: 0; }
30673067

3068-
img.align-right {
3069-
float: right;
3070-
margin-left: 1.25em; }
3068+
#python-jetbrains-survey {
3069+
display: none; }
3070+
#python-jetbrains-survey > img {
3071+
display: block;
3072+
margin: auto; }
3073+
3074+
.python-jetbrains-survey-index-page {
3075+
margin: -0.3125em 0 2.1875em 0; }
3076+
3077+
.python-jetbrains-survey-community-page {
3078+
margin: 0.625em 0 1.5625em 0; }
3079+
3080+
.python-jetbrains-survey-downloads-page {
3081+
margin: 0.3125em 0 1.5625em 0; }
30713082

30723083
span.highlighted {
30733084
background-color: yellow; }

static/sass/style.scss

+19-3
Original file line numberDiff line numberDiff line change
@@ -2284,11 +2284,27 @@ div.sidebar {
22842284
}
22852285
}
22862286

2287-
img.align-right {
2288-
float: right;
2289-
margin-left: px2em( 20px );
2287+
// For Python survey
2288+
2289+
#python-jetbrains-survey {
2290+
display: none;
2291+
> img {
2292+
display: block;
2293+
margin: auto;
2294+
}
22902295
}
22912296

2297+
.python-jetbrains-survey-index-page {
2298+
margin: px2em( -5px ) 0 px2em( 35px ) 0;
2299+
}
2300+
2301+
.python-jetbrains-survey-community-page {
2302+
margin: px2em( 10px ) 0 px2em( 25px ) 0;
2303+
}
2304+
2305+
.python-jetbrains-survey-downloads-page {
2306+
margin: px2em( 5px ) 0 px2em( 25px ) 0;
2307+
}
22922308

22932309
// For django-haystack's highlighter
22942310

templates/community/post_list.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
{% block content %}
2222

2323
<div class="row">
24-
24+
25+
<div id="python-jetbrains-survey" class="python-jetbrains-survey-community-page">
26+
<a href="https://surveys.jetbrains.com/s3/c9-python-developers-survey-2018"
27+
title="Join the official Python Developers Survey 2018 and win valuable prizes!">
28+
<img src="{{ STATIC_URL }}img/survey/jb_banner_download_community_page.png">
29+
</a>
30+
</div>
31+
2532
<div class="small-widget community-widget1">
2633
{% box 'community-widget1' %}
2734
</div>

templates/downloads/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ <h1 class="call-to-action">Download the latest version of Python</h1>
3838
{% block content %}
3939
<div class="row download-list-widget">
4040

41+
<div id="python-jetbrains-survey" class="python-jetbrains-survey-downloads-page">
42+
<a href="https://surveys.jetbrains.com/s3/c8-python-developers-survey-2018"
43+
title="Join the official Python Developers Survey 2018 and win valuable prizes!">
44+
<img src="{{ STATIC_URL }}img/survey/jb_2018_banner_download_community_page.png">
45+
</a>
46+
</div>
47+
4148
<h2 class="widget-title">Looking for a specific release?</h2>
4249
<p class="success-quote">Python releases by version number:</p>
4350

templates/python/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636

3737
{% block content %}
3838

39+
<div id="python-jetbrains-survey" class="python-jetbrains-survey-index-page">
40+
<a href="https://surveys.jetbrains.com/s3/c7-python-developers-survey-2018"
41+
title="Join the official Python Developers Survey 2018 and win valuable prizes!">
42+
<img src="{{ STATIC_URL }}img/survey/jb_2018_banner_index_page.png">
43+
</a>
44+
</div>
45+
3946
<div class="row">
4047

4148
<div class="small-widget get-started-widget">

0 commit comments

Comments
 (0)