1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-11-11 11:18:59 +01:00
pleroma-fe/src/App.vue

50 lines
2.0 KiB
Vue
Raw Normal View History

2016-11-07 18:03:36 +01:00
<template>
<div id="app" v-bind:style="style">
<nav class='container' @click="scrollToTop()" id="nav">
<div class='logo' :style='logoBgStyle'>
<div class='mask' :style='logoMaskStyle'></div>
<img :src='logo' :style='logoStyle'>
</div>
<div class='inner-nav'>
2017-01-16 18:57:03 +01:00
<div class='item'>
2017-02-17 10:16:29 +01:00
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>
2017-01-16 18:57:03 +01:00
</div>
2017-02-16 22:25:41 +01:00
<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>
2017-11-08 11:55:10 +01:00
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout nav-icon" :title="$t('login.logout')"></i></a>
2017-02-16 22:25:41 +01:00
</div>
2016-11-07 18:03:36 +01:00
</div>
</nav>
<div class="container" id="content">
2017-01-17 17:27:39 +01:00
<div class="panel-switcher">
<button @click="activatePanel('sidebar')">Sidebar</button>
<button @click="activatePanel('timeline')">Timeline</button>
2017-01-17 17:27:39 +01:00
</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>
2018-02-03 16:27:33 +01:00
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
2018-09-03 09:02:06 +02:00
<features-panel v-if="!currentUser"></features-panel>
2018-08-22 04:47:36 +02:00
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
<notifications v-if="currentUser"></notifications>
</div>
</div>
</div>
2016-12-02 14:33:03 +01:00
</div>
2017-01-17 17:27:39 +01:00
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
2016-12-02 14:33:03 +01:00
<transition name="fade">
<router-view></router-view>
</transition>
</div>
2016-11-07 18:03:36 +01:00
</div>
<chat-panel v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
2016-11-07 18:03:36 +01:00
</div>
</template>
2016-10-26 16:46:32 +02:00
2016-10-26 19:03:55 +02:00
<script src="./App.js"></script>
<style lang="scss" src="./App.scss"></style>