Skip to content
Permalink
a4379df259
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
96 lines (80 sloc) 1.79 KB
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about"><img class="navImg" src="./assets/prof-link-placeholder.png"></router-link> |
<router-link to="/profile">Profile</router-link> |
<router-link to="/login" v-if="!authenticated">Log in</router-link>
<a href="#" v-if="authenticated" @click="$store.dispatch('signOut')"><img class="navImg" src="./assets/logout-placeholder.png"></a>
<div id="navSidebar">
<img id ="logo" src="./assets/logo-placeholder.png">
<div id="profPreview">
<img id="profPreviewPic" src="./assets/prof-pic-placeholder.png">
<div>
<span>Profile Name</span>
</div>
</div>
</div>
<!-- figure out how to style the router-view thing -->
</div><router-view/>
</div>
</template>
<script>
export default {
name: 'app',
computed: {
authenticated(){
return this.$store.getters.isAuthenticated;
}
},
mounted() {
// console.log(this.authenticated);
}
};
</script>
<style lang="scss">
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
display: flex;
justify-content: flex-start;
}
#nav {
padding: 23px;
width: 30%;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
filter: brightness(120%);
}
}
img.navImg {
height: 30px;
}
}
#profPreview {
display: flex;
width: 100%;
img {
width: 30%;
max-width:200px;
}
div {
padding-left: 5%;
line-height: 200%;
width: 55%;
}
}
#logo {
height: 170px;
width: 170px;
}
#navSidebar {
width: 100%;
}
</style>