forked from AkkomaGang/akkoma-fe
42 lines
1.7 KiB
Vue
42 lines
1.7 KiB
Vue
<template>
|
|
<div id="app" v-bind:style="style" class="base02-background">
|
|
<nav class='container base02-background base05' @click="scrollToTop()" id="nav">
|
|
<div class='inner-nav' :style="logoStyle">
|
|
<div class='item'>
|
|
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>
|
|
</div>
|
|
<div class='item right'>
|
|
<user-finder class="nav-icon"></user-finder>
|
|
<router-link :to="{ name: 'settings'}"><i class="icon-cog nav-icon"></i></router-link>
|
|
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout nav-icon" :title="$t('login.logout')"></i></a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div class="container" id="content">
|
|
<div class="panel-switcher">
|
|
<button @click="activatePanel('sidebar')" class="base02-background base05">Sidebar</button>
|
|
<button @click="activatePanel('timeline')" class="base02-background base05">Timeline</button>
|
|
</div>
|
|
<div class="sidebar-flexer" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar'}">
|
|
<div class="sidebar-bounds">
|
|
<div class="sidebar-scroller">
|
|
<div class="sidebar">
|
|
<user-panel></user-panel>
|
|
<nav-panel></nav-panel>
|
|
<chat-panel v-if="currentUser && chat"></chat-panel>
|
|
<notifications v-if="currentUser"></notifications>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
|
|
<transition name="fade">
|
|
<router-view></router-view>
|
|
</transition>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./App.js"></script>
|
|
<style lang="scss" src="./App.scss"></style>
|