2016-12-11 15:41:52 +00:00
|
|
|
<template>
|
|
|
|
<nuxt-container>
|
|
|
|
<nav class="Navbar clearfix">
|
2016-12-11 23:15:13 +00:00
|
|
|
<h1 class="Navbar__Title">
|
2016-12-13 10:04:48 +00:00
|
|
|
Nuxt Custom Routes
|
2016-12-11 23:15:13 +00:00
|
|
|
</h1>
|
2016-12-11 15:41:52 +00:00
|
|
|
<ul class="Navbar__Links">
|
|
|
|
<li class="Navbar__Links__Item">
|
2016-12-16 17:12:38 +00:00
|
|
|
<nuxt-link to="/team" class="Navbar__Links__Item__Link">
|
2016-12-11 15:41:52 +00:00
|
|
|
Basic route
|
2016-12-16 17:12:38 +00:00
|
|
|
</nuxt-link>
|
2016-12-11 15:41:52 +00:00
|
|
|
</li>
|
|
|
|
<li class="Navbar__Links__Item">
|
2016-12-16 17:12:38 +00:00
|
|
|
<nuxt-link to="/projects" class="Navbar__Links__Item__Link">
|
2016-12-13 10:04:48 +00:00
|
|
|
Dynamic routes
|
2016-12-16 17:12:38 +00:00
|
|
|
</nuxt-link>
|
2016-12-11 15:41:52 +00:00
|
|
|
</li>
|
|
|
|
<li class="Navbar__Links__Item">
|
2016-12-16 17:12:38 +00:00
|
|
|
<nuxt-link to="/users" class="Navbar__Links__Item__Link">
|
2016-12-11 15:41:52 +00:00
|
|
|
Nested routes
|
2016-12-16 17:12:38 +00:00
|
|
|
</nuxt-link>
|
2016-12-11 15:41:52 +00:00
|
|
|
</li>
|
|
|
|
<li class="Navbar__Links__Item">
|
2016-12-16 17:12:38 +00:00
|
|
|
<nuxt-link to="/posts" class="Navbar__Links__Item__Link">
|
2016-12-11 15:41:52 +00:00
|
|
|
Dynamic nested routes
|
2016-12-16 17:12:38 +00:00
|
|
|
</nuxt-link>
|
2016-12-11 15:41:52 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<nuxt/>
|
|
|
|
</nuxt-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
html, body
|
|
|
|
{
|
|
|
|
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
|
|
letter-spacing: 0.25px;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
*, *::before, *::after
|
|
|
|
{
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-weight: 300;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.clearfix:before, .clearfix:after
|
|
|
|
{
|
|
|
|
content: " ";
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
.clearfix:after
|
|
|
|
{
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.container {
|
|
|
|
margin: 30px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
.Navbar
|
|
|
|
{
|
|
|
|
background-color: #fff;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px 30px;
|
|
|
|
}
|
|
|
|
.Navbar__Title
|
|
|
|
{
|
|
|
|
float: left;
|
|
|
|
font-weight: 300;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.Navbar__Links
|
|
|
|
{
|
|
|
|
float: right;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.Navbar__Links__Item
|
|
|
|
{
|
|
|
|
float: left;
|
|
|
|
margin: 5px 15px;
|
|
|
|
}
|
|
|
|
.Navbar__Links__Item__Link
|
|
|
|
{
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
a, a:hover
|
|
|
|
{
|
|
|
|
text-transform: uppercase;
|
|
|
|
text-decoration: none;
|
|
|
|
color: #41B883;
|
|
|
|
}
|
2016-12-15 19:13:54 +00:00
|
|
|
|
2016-12-16 17:12:38 +00:00
|
|
|
.nuxt-link-active {
|
|
|
|
color: #41B883 !important;
|
|
|
|
}
|
|
|
|
|
2016-12-15 19:13:54 +00:00
|
|
|
.fade-enter-active, .fade-leave-active {
|
|
|
|
transition: opacity .3s;
|
|
|
|
}
|
|
|
|
.fade-enter, .fade-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2016-12-16 16:46:30 +00:00
|
|
|
|
|
|
|
.bounce-enter-active {
|
|
|
|
animation: bounce-in .8s;
|
|
|
|
}
|
|
|
|
.bounce-leave-active {
|
|
|
|
animation: bounce-out .5s;
|
|
|
|
}
|
|
|
|
@keyframes bounce-in {
|
|
|
|
0% { transform: scale(0) }
|
|
|
|
100% { transform: scale(1) }
|
|
|
|
}
|
|
|
|
@keyframes bounce-out {
|
|
|
|
0% { transform: scale(1) }
|
|
|
|
100% { transform: scale(0) }
|
|
|
|
}
|
2016-12-11 15:41:52 +00:00
|
|
|
</style>
|