Skip to content

Commit

Permalink
map backgrounds for matches
Browse files Browse the repository at this point in the history
  • Loading branch information
ebshimizu committed Mar 24, 2018
1 parent 96ec607 commit 84d08b6
Show file tree
Hide file tree
Showing 18 changed files with 82 additions and 3 deletions.
77 changes: 77 additions & 0 deletions assets/css/matches.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,90 @@
#match-list .match-summary {
cursor: pointer;
height: 170px;
width: 99%;
margin: 0 auto;
}

#match-list .match-summary .match-basic-info {
height: 50px;
margin-bottom: 2px;
}

#match-list td {
background-size: cover;
position: relative;
}

.bg-dimmer {
position: absolute;
height: 100%;
width: 100%;
z-index: 0;
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.8);
}

#match-list td:hover .bg-dimmer {
background: rgba(32, 32, 32, 0.7);
}

#match-list td.Towers-of-Doom {
background-image: url('../images/towers-of-doom-banner.png');
}

#match-list td.Battlefield-of-Eternity {
background-image: url('../images/boe-banner.png');
}

#match-list td.Blackheart-s-Bay {
background-image: url('../images/blackhearts-banner.png');
}

#match-list td.Cursed-Hollow {
background-image: url('../images/cursed-banner.png');
}

#match-list td.Warhead-Junction {
background-image: url('../images/warhead-banner.png');
}

#match-list td.Sky-Temple {
background-image: url('../images/sky-temple-banner.png');
}

#match-list td.Tomb-of-the-Spider-Queen {
background-image: url('../images/spider-banner.png');
}

#match-list td.Volskaya-Foundry {
background-image: url('../images/volskaya-banner.png');
}

#match-list td.Dragon-Shire {
background-image: url('../images/dragon-shire-banner.png');
}

#match-list td.Haunted-Mines {
background-image: url('../images/haunted-mines-banner.png');
}

#match-list td.Garden-of-Terror {
background-image: url('../images/garden-banner.png');
}

#match-list td.Braxis-Holdout {
background-image: url('../images/braxis-banner.png');
}

#match-list td.Infernal-Shrines {
background-image: url('../images/shrines-banner.png');
}

#match-list td.Hanamura {
background-image: url('../images/hanamura-banner.png');
}

#match-list .match-map-name {
margin-bottom: 0.1em;
}
Expand Down
Binary file added assets/images/blackhearts-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/boe-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/braxis-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cursed-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/dragon-shire-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/garden-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/hanamura-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/haunted-mines-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/shrines-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sky-temple-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/spider-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/towers-of-doom-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/volskaya-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/warhead-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions js/matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ function showPage(pageNum) {
function renderToSlot(gameData, slot) {
let context = {};
context.map = gameData.map;
context.mapClass = gameData.map.replace(/[^A-Z0-9]/ig, "-");
context.mode = ReplayTypes.GameModeStrings[gameData.mode];
context.id = gameData._id;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stats-of-the-storm",
"version": "0.5.2",
"version": "1.0.0-dev",
"main": "main.js",
"description": "A Heroes of the Storm stat tracking application.",
"bugs": "[email protected]",
Expand Down
5 changes: 3 additions & 2 deletions templates/matches-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ <h1 class="ui inverted header">Matches</h1>
</template>

<template id="match-summary-row">
<td>
<div class="match-summary" match-id="{{id}}">
<td class="{{mapClass}}">
<div class="bg-dimmer"></div>
<div class="match-summary {{mapClass}}" match-id="{{id}}">
<div class="ui three column grid match-basic-info">
<div class="column match-map-name">
<h2 class="ui inverted header match-map-name">{{map}}</h2>
Expand Down

0 comments on commit 84d08b6

Please sign in to comment.