pleroma-fe/src/App.vue

32 lines
1.1 KiB
Vue
Raw Normal View History

2016-11-08 04:03:36 +11:00
<template>
<div id="app" v-bind:style="style" class="base02-background">
<nav class='container base01-background base04'>
2017-01-17 04:57:03 +11:00
<div class='inner-nav'>
<div class='item'>
<a route-to='friends-timeline' href="#">{{sitename}}</a>
2017-01-17 04:57:03 +11:00
</div>
<style-switcher></style-switcher>
2016-11-08 04:03:36 +11:00
</div>
</nav>
<div class="container" id="content">
2017-01-18 03:27:39 +11:00
<div class="panel-switcher">
<button @click="activatePanel('sidebar')">Sidebar</button>
<button @click="activatePanel('timeline')">Timeline</button>
</div>
<div class="sidebar" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar' }">
2016-11-08 04:03:36 +11:00
<user-panel></user-panel>
<nav-panel></nav-panel>
2016-11-28 05:44:56 +11:00
<notifications v-if="currentUser"></notifications>
2016-12-03 00:33:03 +11:00
</div>
2017-01-18 03:27:39 +11:00
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
2016-12-03 00:33:03 +11:00
<transition name="fade">
<router-view></router-view>
</transition>
</div>
2016-11-08 04:03:36 +11:00
</div>
</div>
</template>
2016-10-27 01:46:32 +11:00
2016-10-27 04:03:55 +11:00
<script src="./App.js"></script>
<style lang="scss" src="./App.scss"></style>