pleroma-fe/src/App.vue

40 lines
1.6 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' @click="scrollToTop()">
2017-02-17 03:44:36 +11:00
<div class='inner-nav' :style="logoStyle">
2017-01-17 04:57:03 +11:00
<div class='item'>
2017-02-17 20:16:29 +11:00
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>
2017-01-17 04:57:03 +11:00
</div>
2017-02-17 08:25:41 +11:00
<div class='item right'>
<user-finder></user-finder>
2017-02-17 08:25:41 +11:00
<router-link :to="{ name: 'settings'}"><i class="icon-cog"></i></router-link>
2017-07-02 20:25:34 +10:00
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout" title="Logout" ></i></a>
2017-02-17 08:25:41 +11:00
</div>
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')" class="base01-background base04">Sidebar</button>
<button @click="activatePanel('timeline')" class="base01-background base04">Timeline</button>
2017-01-18 03:27:39 +11:00
</div>
<div class="sidebar-flexer" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar'}">
<div class="sidebar" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar' }">
<div class="sidebar-container">
<user-panel></user-panel>
<nav-panel></nav-panel>
<notifications v-if="currentUser"></notifications>
</div>
</div>
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>