From a7ea9c519594f4516a3f159976159922a0193c91 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Thu, 27 Oct 2016 18:02:28 +0200
Subject: Add UserPanel.

---
 src/components/user_panel/user_panel.vue | 39 ++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 src/components/user_panel/user_panel.vue

(limited to 'src/components/user_panel/user_panel.vue')

diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue
new file mode 100644
index 00000000..9fcb4856
--- /dev/null
+++ b/src/components/user_panel/user_panel.vue
@@ -0,0 +1,39 @@
+<template>
+  <div class="user-panel">
+    <div v-if='user' class="panel panel-default" v-bind:style="style">
+      <!-- Default panel contents -->
+      <div class="panel-heading text-center">
+        <div class='user-info'>
+          <img :src="user.profile_image_url">
+          <span class="glyphicon glyphicon-user"></span>
+          <div class='user-name'>{{user.name}}</div>
+          <div class='user-screen-name'>@{{user.screen_name}}</div>
+        </div>
+      </div>
+      <div class="panel-body">
+        <div class="user-counts">
+          <div class="user-count">
+            <h5>Statuses</h5>
+            <span>{{user.statuses_count}}</span>
+          </div>
+          <div class="user-count">
+            <h5>Following</h5>
+            <span>{{user.friends_count}}</span>
+          </div>
+          <div class="user-count">
+            <h5>Followers</h5>
+            <span>{{user.followers_count}}</span>
+          </div>
+        </div>
+        <p>{{user.description}}</p>
+      </div>
+
+      <div class="panel-footer">
+        <post-status-form></post-status-form>
+      </div>
+    </div>
+    <login-form v-if='!user'></login-form>
+  </div>
+</template>
+
+<script src="./user_panel.js"></script>
-- 
cgit v1.2.3-70-g09d2

