diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue new file mode 100644 index 00000000..7ad86e63 --- /dev/null +++ b/src/components/user_card_content/user_card_content.vue @@ -0,0 +1,43 @@ + + + + + + + {{user.name}} + @{{user.screen_name}} + + + + + + Statuses + {{user.statuses_count}} + + + Following + {{user.friends_count}} + + + Followers + {{user.followers_count}} + + + {{user.description}} + + + + + diff --git a/src/components/user_panel/user_panel.js b/src/components/user_panel/user_panel.js index 418c3a6f..15804b88 100644 --- a/src/components/user_panel/user_panel.js +++ b/src/components/user_panel/user_panel.js @@ -1,19 +1,15 @@ import LoginForm from '../login_form/login_form.vue' import PostStatusForm from '../post_status_form/post_status_form.vue' +import UserCardContent from '../user_card_content/user_card_content.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})` - } - } + user () { return this.$store.state.users.currentUser } }, components: { LoginForm, - PostStatusForm + PostStatusForm, + UserCardContent } } diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 6b986f84..8ecf1391 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -1,32 +1,8 @@ - - - - - - {{user.name}} - @{{user.screen_name}} - - - - - - Statuses - {{user.statuses_count}} - - - Following - {{user.friends_count}} - - - Followers - {{user.followers_count}} - - - {{user.description}} - + +
{{user.description}}