Add UserPanel.
This commit is contained in:
parent
7ba40ff7e2
commit
a7ea9c5195
2 changed files with 57 additions and 0 deletions
18
src/components/user_panel/user_panel.js
Normal file
18
src/components/user_panel/user_panel.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import LoginForm from '../login_form/login_form.vue'
|
||||
|
||||
const UserPanel = {
|
||||
computed: {
|
||||
user () { return this.$store.state.users.currentUser },
|
||||
style () {
|
||||
return {
|
||||
color: `#${this.user.profile_link_color}`,
|
||||
'background-image': `url(${this.user.cover_photo})`
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
LoginForm
|
||||
}
|
||||
}
|
||||
|
||||
export default UserPanel
|
Loading…
Add table
Add a link
Reference in a new issue