Skip to content

Commit

Permalink
Homepage: Developers feed from blog, style facelift
Browse files Browse the repository at this point in the history
Revised the Download link to have a button-like appearance. Changed
more fonts to Open Sans. The latest version shown in the homepage
header now omits zeroes (down to two version number components).
Minor style tweaks (margins, icons).
  • Loading branch information
skyjake committed Nov 14, 2015
1 parent a1e1267 commit 96e1cf6
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 19 deletions.
2 changes: 1 addition & 1 deletion web/classes/frontcontroller.class.php
Expand Up @@ -415,7 +415,7 @@ private function outputMainMenu($page=NULL)
$leftTabs = array();
$leftTabs[] = array('page'=>'/engine', 'label'=>'Engine', 'tooltip'=>'About the Doomsday Engine');
$leftTabs[] = array('page'=>'/games', 'label'=>'Games', 'tooltip'=>'Games playable with the Doomsday Engine');
$leftTabs[] = array('page'=>'/dew', 'label'=>'Wiki', 'tooltip'=>'Doomsday Engine wiki (documentation)');
$leftTabs[] = array('page'=>'http://wiki.dengine.net', 'label'=>'Wiki', 'tooltip'=>'Doomsday Engine wiki (documentation)');

$rightTabs = array();
$rightTabs[] = array('page'=>'/addons', 'label'=>'Add-ons', 'tooltip'=>'Add-ons for games playable with the Doomsday Engine');
Expand Down
Binary file modified web/forums/styles/Deng/imageset/icon_topic_attach.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions web/plugins/z#home/home.php
Expand Up @@ -321,20 +321,20 @@ public function execute($args=NULL)
});

$('#column2').interpretFeed({
feedUri: 'http://dengine.net/forums/rss.php?f=24',
feedUri: 'http://dengine.net/blog/category/dev/feed',
dataType: 'json',
clearOnSuccess: false,
useGoogleApi: true,
maxItems: 1,
generateItemHtml: function (n, t) {
var html = '<div class="block"><article class="blogpost content"><header><h1><a href="' + t.link + '" title="&#39;' + t.title + '&#39; (full article in the user forums)">' + t.title + '</a></h1>';
var html = '<div class="block"><article class="blogpost content"><header><h1><a href="' + t.link + '" title="&#39;' + t.title + '&#39; (full article in the blog)">' + t.title + '</a></h1>';

var d = new Date(t.publishedDate);
var niceDate = $.datepicker.formatDate('MM d, yy', d);
html += '<p><time datetime="' + d.toISOString() + '" pubdate>' + niceDate + '</time></p>';

html += '</header><br />';
html += t.content;
html += '<div class="articlecontent">' + t.content + '</div>';
html += '</article>';
html += '<div class="links"><a href="' + n.feedUri + '" class="link-rss" title="Doomsday Engine development blog via RSS">All blogs</a></div></div>';
return '<li>' + html + '</li>';
Expand Down
8 changes: 4 additions & 4 deletions web/plugins/z#home/html/getitnow.html
@@ -1,14 +1,14 @@
<a class="getitnow-label" href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine now for my platform">Get it <strong>NOW</strong> <span class="free-label">- free</span></a>
<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>
</ul>
</div>
<div class="project_links hnav">
<ul>
<li><a href="/builds" title="Build Repository (automated builds).">Build Repository</a></li>
<li><a href="http://tracker.dengine.net/projects/deng/issues?set_filter=1&tracker_id=1" title="Report bugs.">Report Bugs</a></li>
<li><a href="http://tracker.dengine.net/projects/deng/issues?set_filter=1&tracker_id=2" title="Request features.">Request Features</a></li>
<li><a href="/builds" title="Build Repository (automated builds)">Build Repository</a></li>
<li><a href="http://tracker.dengine.net/projects/deng/issues?set_filter=1&tracker_id=1" title="Report bugs">Report Bugs</a></li>
<li><a href="http://tracker.dengine.net/projects/deng/issues?set_filter=1&tracker_id=2" title="Request features">Request Features</a></li>
<li><a href="/source" title="Get source code for the Doomsday Engine.">Source Code</a></li>
</ul>
</div>
13 changes: 12 additions & 1 deletion web/plugins/z#home/html/latestversion.html
Expand Up @@ -16,7 +16,18 @@
if(ob)
{
ob.empty();
var html = '<h1><a href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine ' + json.version + ' (latest stable) for my platform">' + json.version + '</a></h1>';
// Omit zeroes in the end.
var components = json.version.split('.');
while(components.length > 2)
{
if(components[components.length - 1] == '0')
{
components.length--;
}
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>';
ob.append(html);
}
}
Expand Down
40 changes: 30 additions & 10 deletions web/style.css
Expand Up @@ -268,6 +268,13 @@ hr.dashed {

.block a:hover { color: #FFCB0F; }

.block p + p, .block section + p {
margin-top: 1em;
}

.block h1 + p, .block h2, .block h3 { margin-top: 1em; }
.block h2:first-child, .block h3:first-child { margin-top: 0; }

.major_issue { background-color:#ff4444; /* red */ }
.minor_issue { background-color:#ffee00; /* yellow */ }
.no_issue { background-color:#00ee00; /* green */ }
Expand Down Expand Up @@ -813,7 +820,7 @@ div.clear {
#main footer {
width: 100%;
font-size: xx-small;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-family: "Open Sans", sans-serif;
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
Expand Down Expand Up @@ -886,13 +893,13 @@ div.clear {

.asidebox {
display: block;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-family: "Open Sans", sans-serif;
margin:.8em;
}

#downloadbox, #socialbookmarkbox {
text-align: center;
margin-top: 2.4em;
margin-top: 2em;
margin-bottom: 2.4em;
overflow: hidden;
}
Expand Down Expand Up @@ -949,18 +956,31 @@ div.clear {
background-position: 0 0;
}

.getitnow-label {
.download-button {
font-size: x-large;
text-align:center;
text-align: center;
margin-top: 1ex;
margin-bottom: 1.3em;
font-weight: 300;
}

.getitnow-label a, a:hover, a:visited:hover {
text-decoration: none;
.download-button a {
border: 1px solid white;
border-radius: 0.5ex;
padding: 0.4ex 1ex;
margin: 1ex;
}

.getitnow-label span.free-label {
font-style: italic;
font-size: medium;
.download-button a:hover {
border: 1px solid #FFCB0F;
}

.download-button .downarrow {
text-weight: bold;
}

.download-button a, a:hover, a:visited:hover {
text-decoration: none;
}

#socialbookmarkbox .hnav {
Expand Down

0 comments on commit 96e1cf6

Please sign in to comment.