Skip to content

Commit

Permalink
Homepage: Tweaks on the front page
Browse files Browse the repository at this point in the history
Move the Download button to the top, place dev blogs on the left
as a poor imitation of a chronological sorting.

[ci skip]
  • Loading branch information
skyjake committed Jul 30, 2016
1 parent 7ead617 commit 2016863
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions web/plugins/z#home/home.php
Expand Up @@ -299,7 +299,7 @@ public function execute($args=NULL)
}
});*/

$('#column1').interpretFeed({
$('#column2').interpretFeed({
feedUri: 'http://dengine.net/blog/category/news/feed',
dataType: 'json',
clearOnSuccess: false,
Expand All @@ -320,7 +320,7 @@ public function execute($args=NULL)
}
});

$('#column2').interpretFeed({
$('#column1').interpretFeed({
feedUri: 'http://dengine.net/blog/category/dev/feed',
dataType: 'json',
clearOnSuccess: false,
Expand Down
1 change: 0 additions & 1 deletion web/plugins/z#home/html/getitnow.html
@@ -1,4 +1,3 @@
<div class="download-button"><a href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine now for my platform">Download <span class="downarrow">&#x21E3;</span></a></div>
<div class="hnav platform_buttons">
<ul>
<li><a href="/windows" class="platform_icon windows_icon" title="Download Doomsday for Windows"><span class="hidden">Download Doomsday for Windows</span></a></li><li><a href="/mac_os" class="platform_icon macos_icon" title="Download Doomsday for Mac OS X"><span class="hidden">Download Doomsday for Mac OS</span></a></li><li><a href="/ubuntu" class="platform_icon ubuntu_icon" title="Download Doomsday for Ubuntu"><span class="hidden">Download Doomsday for Ubuntu</span></a></li><li><a href="/linux" class="platform_icon linux_icon" title="Download Doomsday for Linux"><span class="hidden">Download Doomsday for Linux</span></a></li>
Expand Down
4 changes: 2 additions & 2 deletions web/plugins/z#home/html/latestversion.html
Expand Up @@ -2,7 +2,7 @@
<script type="text/javascript">
// We'll take the version info from the latest stable Doomsday for Windows package.
task = new Array();
task['request'] = 'latestbuild?';
task['request'] = 'latestbuild?';
task['data'] = {
graph: 'json',
platform: 'win-x86'
Expand All @@ -27,7 +27,7 @@
else break;
}
var cleanVersion = components.join('.');
var html = '<h1><a href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine ' + cleanVersion + ' (latest stable) for my platform">' + cleanVersion + '</a></h1>';
var html = '<div class="download-button"><a href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine now for my platform">Download <span class="downarrow">&#x21E3;</span></a></div> <h1><a href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine ' + cleanVersion + ' (latest stable) for my platform">' + cleanVersion + '</a></h1>';
ob.append(html);
}
}
Expand Down
12 changes: 11 additions & 1 deletion web/style.css
Expand Up @@ -782,7 +782,10 @@ a.paddle_left_select, a.paddle_right_select {
}

#pageheading h1 { margin-left: .4em; }
#latestversion h1 { margin-right: .4em; }
#latestversion h1 {
margin-right: .4em;
display: inline;
}

#latestversion a { color: white; }
#latestversion a:hover { color: #FFCB0F; }
Expand All @@ -795,6 +798,10 @@ a.paddle_left_select, a.paddle_right_select {
#panorama { background-position-y: 0; }
}

@media only screen and (max-width: 767px) {
.download-button { display: none !important; }
}

#contentbox, #contentbox2 {
text-align: left;
line-height: 1.65;
Expand Down Expand Up @@ -963,6 +970,9 @@ div.clear {
margin-top: 1ex;
margin-bottom: 1.3em;
font-weight: 300;
display: inline;
position: relative;
bottom: 0.4ex;
}

.download-button a {
Expand Down

0 comments on commit 2016863

Please sign in to comment.