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

add routing

This commit is contained in:
devfake
2015-06-22 18:12:34 +02:00
parent da6f8749db
commit 9654ba6a50
8 changed files with 44 additions and 37 deletions

View File

@@ -4,10 +4,21 @@
<main>
<style>
.test {
transition: all .5s ease;
}
.test-enter, .test-leave {
opacity: 0;
}
</style>
<navigation></navigation>
<section class="container-content">
<component is="lobby"></component>
<router-view class="test" v-transition="test" transition-mode="out-in"></router-view>
</section>
</main>

View File

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