hardlounge/client/components/Sidebar.vue

87 lines
2.1 KiB
Vue
Raw Normal View History

2019-02-22 14:21:32 +00:00
<template>
<div>
<aside id="sidebar">
<div class="scrollable-area">
<div class="logo-container">
<img
:src="`img/logo-${isPublic() ? 'horizontal-' : ''}transparent-bg.svg`"
class="logo"
2019-03-01 14:18:16 +00:00
alt="The Lounge"
2019-08-03 19:03:45 +00:00
/>
2019-02-22 14:21:32 +00:00
<img
2019-08-03 19:03:45 +00:00
:src="
`img/logo-${isPublic() ? 'horizontal-' : ''}transparent-bg-inverted.svg`
"
2019-02-22 14:21:32 +00:00
class="logo-inverted"
2019-03-01 14:18:16 +00:00
alt="The Lounge"
2019-08-03 19:03:45 +00:00
/>
2019-02-22 14:21:32 +00:00
</div>
2019-08-03 19:03:45 +00:00
<NetworkList :networks="networks" :active-channel="activeChannel" />
2019-02-22 14:21:32 +00:00
</div>
<footer id="footer">
2019-08-03 19:03:45 +00:00
<span class="tooltipped tooltipped-n tooltipped-no-touch" aria-label="Sign in"
><button
class="icon sign-in"
data-target="#sign-in"
data-component="SignIn"
aria-label="Sign in"
role="tab"
aria-controls="sign-in"
aria-selected="false"
2019-03-01 14:18:16 +00:00
/></span>
2019-02-22 14:21:32 +00:00
<span
class="tooltipped tooltipped-n tooltipped-no-touch"
2019-03-01 14:18:16 +00:00
aria-label="Connect to network"
2019-08-03 19:03:45 +00:00
><button
class="icon connect"
data-target="#connect"
data-component="Connect"
aria-label="Connect to network"
role="tab"
aria-controls="connect"
aria-selected="false"
2019-03-01 14:18:16 +00:00
/></span>
2019-08-03 19:03:45 +00:00
<span class="tooltipped tooltipped-n tooltipped-no-touch" aria-label="Settings"
><button
class="icon settings"
data-target="#settings"
data-component="Settings"
aria-label="Settings"
role="tab"
aria-controls="settings"
aria-selected="false"
2019-03-01 14:18:16 +00:00
/></span>
2019-08-03 19:03:45 +00:00
<span class="tooltipped tooltipped-n tooltipped-no-touch" aria-label="Help"
><button
class="icon help"
data-target="#help"
data-component="Help"
aria-label="Help"
role="tab"
aria-controls="help"
aria-selected="false"
2019-03-01 14:18:16 +00:00
/></span>
2019-02-22 14:21:32 +00:00
</footer>
</aside>
2019-08-03 19:03:45 +00:00
<div id="sidebar-overlay" @click="$root.setSidebar(false)" />
2019-02-22 14:21:32 +00:00
</div>
</template>
<script>
import NetworkList from "./NetworkList.vue";
export default {
name: "Sidebar",
components: {
NetworkList,
},
props: {
activeChannel: Object,
networks: Array,
},
methods: {
isPublic: () => document.body.classList.contains("public"),
},
};
</script>