2018-08-20 12:59:08 +00:00
|
|
|
<template>
|
|
|
|
<div :class="$store.state.theme" class="theme">
|
|
|
|
<div class="nav horizontal-align">
|
2018-11-24 18:49:19 +00:00
|
|
|
<NuxtLink class="nav-item" to="/">
|
|
|
|
Home
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink class="nav-item" to="/about">
|
|
|
|
About
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink class="nav-item" to="/parent">
|
|
|
|
Parent page
|
|
|
|
</NuxtLink>
|
2018-08-20 12:59:08 +00:00
|
|
|
</div>
|
2018-11-24 18:49:19 +00:00
|
|
|
<Nuxt class="container" />
|
2018-08-20 12:59:08 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body,
|
|
|
|
html {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
.nav-item {
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
.theme {
|
|
|
|
min-height: 100vh;
|
|
|
|
padding-top: 2rem;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
** Light theme
|
|
|
|
*/
|
|
|
|
.theme.light {
|
|
|
|
background: #f5f5f5;
|
|
|
|
color: #202020;
|
|
|
|
}
|
|
|
|
.theme.light a {
|
|
|
|
color: #555;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
** Dark theme
|
|
|
|
*/
|
|
|
|
.theme.dark {
|
|
|
|
background: #202020;
|
|
|
|
color: #f5f5f5;
|
|
|
|
}
|
|
|
|
.theme.dark a {
|
|
|
|
color: #eee;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
** Orange theme
|
|
|
|
*/
|
|
|
|
.theme.orange {
|
|
|
|
background: #ffc107;
|
|
|
|
color: #795548;
|
|
|
|
}
|
|
|
|
.theme.orange a {
|
|
|
|
color: #202020;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
** Blue theme
|
|
|
|
*/
|
|
|
|
.theme.blue {
|
|
|
|
background: #3f51b5;
|
|
|
|
color: #f5f5f5;
|
|
|
|
}
|
|
|
|
.theme.blue a {
|
|
|
|
color: #eee;
|
|
|
|
}
|
|
|
|
</style>
|