1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-08-30 05:57:30 +00:00

start styling searchMatch and few changes

This commit is contained in:
devfake
2015-06-22 10:47:05 +02:00
parent b03d9dcbb1
commit 9b4dbe39e2
12 changed files with 62 additions and 7 deletions

View File

@@ -16,7 +16,6 @@ var app = new Vue({
components: {
lobby: require('./components/lobby'),
navigation: require('./components/navigation'),
chat: require('./components/chat')
}

View File

@@ -1,5 +1,16 @@
module.exports = {
template: require('../views/lobby.html')
template: require('../views/lobby.html'),
data: function() {
return {
modal: false
}
},
components: {
searchmatch: require('./modals/searchMatch'),
navigation: require('./navigation')
}
};

View File

@@ -0,0 +1,7 @@
module.exports = {
template: require('../../views/modals/searchMatch.html'),
inherit: true
};

View File

@@ -4,9 +4,16 @@ module.exports = {
template: require('../views/navigation.html'),
inherit: true,
methods: {
changeView: function(view) {
router.changeRoute(view);
},
searchMatch: function() {
this.modal = true;
// trigger match functions
}
}

View File

@@ -13,9 +13,7 @@ var routes = {
};
var options = {
html5history: true,
run_handler_in_init: false,
convert_hash_in_init: false
html5history: true
}
var Router = require('director').Router;

View File

@@ -5,7 +5,7 @@
<navigation></navigation>
<section class="container-content">
blaa
<searchmatch></searchmatch>
</section>
</main>

View File

@@ -0,0 +1,10 @@
<div class="modal" v-class="active: modal">
<div class="modal-banner">
<div class="wrap-modal-search">
<i class="icon-content-load"></i>
<p class="modal-para">Search for Player</p>
</div>
</div>
</div>

View File

@@ -4,6 +4,6 @@
<li><a v-on="click: changeView('deck-builder')">Deck Builder</a></li>
<li><a v-on="click: changeView('highscore')">Highscore</a></li>
<li class="sub-nav"><a>Quick Match</a></li>
<li class="sub-nav" v-on="click: searchMatch"><a>Quick Match</a></li>
</ul>
</nav>