From: Ant Zucaro Date: Wed, 4 Mar 2015 03:10:59 +0000 (-0500) Subject: Start styling the home page. Tables, argh... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9140ebb313e290481f42f57866e25f8a7882c95e;p=xonotic%2Fxonstat.git Start styling the home page. Tables, argh... --- diff --git a/xonstat/static/css/app.css b/xonstat/static/css/app.css index dee747b..64dd598 100644 --- a/xonstat/static/css/app.css +++ b/xonstat/static/css/app.css @@ -35,6 +35,37 @@ ul, ol, dl { font-size: 1.1rem; } +table { + background: none repeat scroll 0px 0px rgba(0, 0, 0, 0.70); + border: 1px solid #436688; + border-collapse: collapse; + border-spacing: 0; +} + +table tr td { + font-size: 10px; +} + +table thead { + background-color: #001021; +} + +table td, table th { + border: 1px solid #436688; +} + +table tr.even, table tr.alt, table tr:nth-of-type(2n) { + background: none; +} + +table thead tr th, table thead tr td, table tr th, table tr td { + color: #D0D0D0; +} + +.table-condensed th, .table-condensed td { + padding: 4px 5px; +} + .top-bar { height: 50px; } @@ -123,3 +154,12 @@ ul, ol, dl { position: relative; top: -20px; } + +#title { + color: #08C; + font-size: 1.8rem; + margin-bottom: 10px; + position: relative; + text-align: center; + text-shadow: 2px 2px 3px #333; +} diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 8baec3a..fc7197c 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,7 +1,7 @@ <%inherit file="base.mako"/> <%block name="title"> -Leaderboard + Leaderboard <%block name="css"> @@ -13,13 +13,13 @@ Leaderboard
% if stat_line is None: -

Tracking Xonotic statistics since October 2011.

+

Tracking Xonotic statistics since October 2011.

% else: -

Tracking ${stat_line|n} since October 2011.

+

Tracking ${stat_line|n} since October 2011.

% endif % if day_stat_line is not None: -

${day_stat_line|n} in the past 24 hours.

+

${day_stat_line|n} in the past 24 hours.

% endif
@@ -27,90 +27,88 @@ Leaderboard ##### RANKS ##### % if len(ranks) < 4:
-
-

You don't seem to have any ranks yet.

-
-
+
+

You don't seem to have any ranks yet.

+
+ % else:
% for rs in ranks[:4]: - % if len(rs) > 0: -
- % if rs[0].game_type_cd == 'duel': -

Duel Ranks

- % elif rs[0].game_type_cd == 'ctf': -

CTF Ranks

- % elif rs[0].game_type_cd == 'dm': -

DM Ranks

- % elif rs[0].game_type_cd == 'tdm': -

TDM Ranks

- % endif + % if len(rs) > 0: +
+ % if rs[0].game_type_cd == 'duel': +
Duel Ranks
+ % elif rs[0].game_type_cd == 'ctf': +
CTF Ranks
+ % elif rs[0].game_type_cd == 'dm': +
DM Ranks
+ % elif rs[0].game_type_cd == 'tdm': +
TDM Ranks
+ % endif + + + + + + + + + + + <% i = 1 %> + % for r in rs: + + + + + + <% i = i+1 %> + % endfor + +
#NickElo
${i}${r.nick_html_colors()|n}${int(round(r.elo))}
+
+ % endif + % endfor +
+% endif + + +##### ACTIVE PLAYERS ##### +
+
+
Most Active Players
- + <% i = 1 %> - % for r in rs: - - - - - - <% i = i+1 %> + % for (player_id, nick, alivetime) in top_players: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> % endfor
# NickEloPlay Time
${i}${r.nick_html_colors()|n}${int(round(r.elo))}
${i}${nick|n}${nick|n}${alivetime}
-

More...

-
- % endif - - % endfor -
-% endif - - -##### ACTIVE PLAYERS ##### -
-
-

Most Active Players

- - - - - - - - - - <% i = 1 %> - % for (player_id, nick, alivetime) in top_players: - - - % if player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
-

More...

-
+
##### ACTIVE SERVERS ##### -
-

Most Active Servers

+
+
Most Active Servers
@@ -135,13 +133,12 @@ Leaderboard % endfor
-

More...

-
+
##### ACTIVE MAPS ##### -
-

Most Active Maps

+
+
Most Active Maps
@@ -166,9 +163,8 @@ Leaderboard % endfor
-

More...

-
-
+
+

*Most active stats are from the past 7 days

@@ -177,7 +173,7 @@ Leaderboard ##### RECENT GAMES ##### % if len(recent_games) > 0:
-
+

Recent Games

@@ -209,6 +205,6 @@ Leaderboard

More...

-
-
+
+ % endif