Skip to content

Commit dd6e2ce

Browse files
committed
Add link to Microsoft Store application
Closes #1370
1 parent 5ad3ebf commit dd6e2ce

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

static/sass/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,17 @@ dl {
845845
border-bottom: 1px solid #caccce; }
846846

847847
/* ! ===== Form elements ===== */
848+
div.download-button-container {
849+
overflow: hidden;
850+
*zoom: 1; }
851+
div.download-button-container .microsoft-download-box {
852+
float: right;
853+
padding-top: 0.125em;
854+
width: 16.25em; }
855+
div.download-button-container a > img {
856+
display: inline;
857+
margin: 0; }
858+
848859
.errorlist {
849860
color: #b55863;
850861
margin-bottom: 0; }

static/sass/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,21 @@ form {
185185
ul { @extend .menu; }
186186
}
187187

188+
div.download-button-container {
189+
@include clearfix();
190+
191+
.microsoft-download-box {
192+
float: right;
193+
padding-top: px2em( 2px );
194+
width: px2em( 260px );
195+
}
196+
197+
a > img {
198+
display: inline;
199+
margin: 0;
200+
}
201+
}
202+
188203
.errorlist {
189204
@extend .menu;
190205
color: $red;

templates/downloads/supernav.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ <h3>Python Source</h3>
77
{% else %}
88
<h4>Download for {{ data.os.name }}</h4>
99
{% endif %}
10-
<p>
10+
<div class="download-button-container">
11+
{% if data.os.slug == 'windows' %}
12+
<div class="microsoft-download-box">
13+
<a href="https://www.microsoft.com/store/apps/9NJ46SX7X90P?ocid=badge">
14+
<img
15+
alt="Get it from Microsoft"
16+
src="https://assets.windowsphone.com/85864462-9c82-451e-9355-a3d5f874397a/English_get-it-from-MS_InvariantCulture_Default.svg"
17+
width="100">
18+
</a>
19+
</div>
20+
{% endif %}
1121
<a class="button" href="{{ data.python3.url }}">{{ data.python3.release.name }}</a>
12-
</p>
22+
</div>
1323
{% if data.os.slug == 'windows' %}<p><strong>Note that Python 3.5+ <em>cannot</em> be used on Windows XP or earlier.</strong></p>{% endif %}
1424
<p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href="{% url 'download:download' %}">View the full list of downloads</a>.</p>
1525
</div>

0 commit comments

Comments
 (0)