Browse Source

:recycle: clearing pu some layout for homepage and sidebar

tags/0.0.1
J 4 years ago
parent
commit
b5c8cb33ba
3 changed files with 20 additions and 10 deletions
  1. 11
    6
      frontend/src/shared/Sidebar.vue
  2. 1
    1
      frontend/src/views/Chats.vue
  3. 8
    3
      frontend/src/views/home.vue

+ 11
- 6
frontend/src/shared/Sidebar.vue View File

@@ -1,17 +1,22 @@
1 1
 <template lang="pug">
2 2
 aside.sidebar__messages
3
-    h4.message__title {{ title }}
3
+    h1 messages
4
+    input
5
+    label search 
4 6
     router-link(
5 7
         :class='[uid == user.uid ? "active" : "", "sidebar__message"]'
6 8
         :key='user.uid'
7 9
         :to='`/chats/${user.uid}`'
8 10
         v-for='user in users'
9 11
     )
12
+        h4.message__title {{ title }}
10 13
         .message__left
11
-            p avatar and status
14
+            p avatar picture
15
+            p status doot
12 16
         .message__right
13 17
             h4.message__name {{ user.name }}
14 18
             p.message__content {{ user.metadata.rawMetadata || "Hello!" }}
19
+        hr
15 20
 </template>
16 21
 
17 22
 <script>
@@ -22,14 +27,14 @@ export default {
22 27
             uid: 111,
23 28
             users: [
24 29
                 {
25
-                    name: 'sample',
30
+                    name: 'bob mcrob',
26 31
                     uid: 111,
27
-                    metadata: { rawMetadata: 'rawmeta' },
32
+                    metadata: { rawMetadata: 'howdy howdy howdy' },
28 33
                 },
29 34
                 {
30
-                    name: 'usample',
35
+                    name: 'rob bebob',
31 36
                     uid: 112,
32
-                    metadata: { rawMetadata: 'morerawmeta' },
37
+                    metadata: { rawMetadata: 'this is the last message' },
33 38
                 },
34 39
             ],
35 40
         }

+ 1
- 1
frontend/src/views/Chats.vue View File

@@ -1,5 +1,5 @@
1 1
 <template lang="pug">
2
-#chats
2
+article#chats
3 3
     .content-wrapper
4 4
         .content
5 5
             section.msger

+ 8
- 3
frontend/src/views/home.vue View File

@@ -1,8 +1,10 @@
1 1
 <template lang="pug">
2 2
 article#home
3
-    main-header
4
-    profile-cards(:uid='uid' :users='swipables')
5
-sidebar
3
+    .content-wrapper
4
+        .content
5
+            main-header
6
+            profile-cards(:uid='uid' :users='swipables')
7
+    sidebar
6 8
 </template>
7 9
 
8 10
 <script>
@@ -44,4 +46,7 @@ export default {
44 46
 </script>
45 47
 
46 48
 <style lang="postcss">
49
+#home
50
+    display: flex
51
+    flex-direction: row-reverse
47 52
 </style>

Loading…
Cancel
Save