From f004d5c95b70ff39950dca2baac375e88e426657 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 24 Mar 2013 20:17:01 -0400 Subject: [PATCH] Add header image, statline, and border box. --- xonstat/static/css/app.css | 16 ++++++++++++++++ xonstat/templates/main_index.mako | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/xonstat/static/css/app.css b/xonstat/static/css/app.css index 01f3be4..eb71103 100644 --- a/xonstat/static/css/app.css +++ b/xonstat/static/css/app.css @@ -15,7 +15,23 @@ body { background: url("img/web_background_4.jpg") no-repeat fixed center center / cover black; color: #D0D0D0; + font-family: "XoloniumNormal", "Helvetica Neue", Helvetica, Arial, sans-serif; } +#statline { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 13px; + position: relative; + top: -25px; +} +#xonborder { + background: rgb(0, 0, 0); /* IE Fallback */ + background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5); + border-radius: 15px 15px 15px 15px; + margin-bottom: 30px; + margin-left: 0px; + padding: 20px; +} + /* Navigation bar */ .navbar-brand { diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 91640ec..e310f8c 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -10,14 +10,14 @@ Leaderboard <%block name="hero_unit"> -
+
% if summary_stats is None:

Tracking Xonotic statistics since October 2011.

% else:

Tracking ${summary_stats.total_players} players, ${summary_stats.total_games} games (${summary_stats.duel_games} duel, ${summary_stats.ctf_games} ctf, ${summary_stats.dm_games} dm), and ${summary_stats.total_servers} servers since October 2011.

% endif -
+
% if len(ranks) < 3: -- 2.39.2