Pārlūkot izejas kodu

:fire: adjusting bad css | rename friends to matches

tags/0.0.1
J 4 gadus atpakaļ
vecāks
revīzija
7f218b0533

+ 1
- 14
frontend/src/App.vue Parādīt failu

@@ -15,24 +15,11 @@ export default {
15 15
 @import './sss/theme.sss'
16 16
 
17 17
 #app
18
-    -webkit-font-smoothing: antialiased
19
-    -moz-osx-font-smoothing: grayscale
18
+    width: 100%
20 19
     text-align: center
21 20
     color: $primary
22 21
     font-family: $sans
23 22
     padding: $ms-0
24 23
     background-color: $secondary
25 24
     overflow-x: hidden
26
-
27
-::-webkit-scrollbar
28
-    width: 10px
29
-
30
-::-webkit-scrollbar-track
31
-    background: #f1f1f1
32
-
33
-::-webkit-scrollbar-thumb
34
-    background: #888
35
-
36
-::-webkit-scrollbar-thumb:hover
37
-    background: #555
38 25
 </style>

+ 4
- 10
frontend/src/router/index.js Parādīt failu

@@ -1,11 +1,10 @@
1 1
 import { createRouter, createWebHistory } from 'vue-router'
2 2
 import home from '../views/home.vue'
3 3
 import Profile from '../views/Profile.vue'
4
-import Friends from '../views/Friends.vue'
4
+import Matches from '../views/Matches.vue'
5 5
 import Chats from '../views/Chats.vue'
6 6
 import Login from '../views/Login.vue'
7 7
 import Register from '../views/Register.vue'
8
-import Forget from '../views/Forget.vue'
9 8
 
10 9
 const routes = [
11 10
     {
@@ -21,9 +20,9 @@ const routes = [
21 20
         meta: { requiresAuth: true },
22 21
     },
23 22
     {
24
-        path: '/friends',
25
-        component: Friends,
26
-        name: 'friends',
23
+        path: '/matches',
24
+        component: Matches,
25
+        name: 'matches',
27 26
         meta: { requiresAuth: true, requiresProfile: true },
28 27
     },
29 28
     {
@@ -43,11 +42,6 @@ const routes = [
43 42
         component: Register,
44 43
         name: `register`,
45 44
     },
46
-    {
47
-        path: `/forget`,
48
-        component: Forget,
49
-        name: 'forget',
50
-    },
51 45
 ]
52 46
 
53 47
 const router = createRouter({

+ 1
- 1
frontend/src/shared/Sidebar.vue Parādīt failu

@@ -1,5 +1,5 @@
1 1
 <template lang="pug">
2
-.sidebar__messages
2
+aside.sidebar__messages
3 3
     h4.message__title {{ title }}
4 4
     router-link(
5 5
         :class='[uid == user.uid ? "active" : "", "sidebar__message"]'

+ 4
- 2
frontend/src/sss/import.css Parādīt failu

@@ -1,2 +1,4 @@
1
-@import './partials/_reset.sss' @import './partials/_ratios.sss' @import
2
-    './partials/_helpers.sss' @import './partials/_typography.sss';
1
+@import './partials/_reset.sss'
2
+@import './partials/_ratios.sss'
3
+@import './partials/_helpers.sss'
4
+@import './partials/_typography.sss'

+ 0
- 8
frontend/src/views/Chats.vue Parādīt failu

@@ -161,14 +161,6 @@ html
161 161
   padding: 0
162 162
   box-sizing: inherit
163 163
 
164
-body
165
-  display: flex
166
-  justify-content: center
167
-  align-items: center
168
-  height: 100vh
169
-  background-image: var(--body-bg)
170
-  font-family: Helvetica, sans-serif
171
-
172 164
 .msger
173 165
   height: calc(100% - 50px)
174 166
   border: var(--border)

+ 0
- 191
frontend/src/views/Forget.vue Parādīt failu

@@ -1,191 +0,0 @@
1
-<template lang="pug">
2
-.forget__box
3
-    h2 Forget
4
-    form(@submit.prevent='onSubmit')
5
-        .user__box
6
-            input(required='' type='email' v-model='form.email')
7
-            label Email
8
-        button(type='submit')
9
-            span
10
-            span
11
-            span
12
-            span {{ requesting ? "Log..." : "Send" }}
13
-        router-link(to='/login') Login
14
-</template>
15
-
16
-<script>
17
-export default {
18
-    data: () => ({
19
-        valid: true,
20
-        requesting: false,
21
-        form: {
22
-            email: '',
23
-        },
24
-    }),
25
-    methods: {
26
-        onSubmit() {
27
-            this.requesting = true
28
-        },
29
-    },
30
-}
31
-</script>
32
-
33
-<style lang="postcss">
34
-html
35
-  background-color: #e90d77
36
-
37
-.content
38
-  background: none
39
-
40
-.wrapper
41
-  position: unset
42
-
43
-.forget__box
44
-  position: absolute
45
-  top: 50%
46
-  left: 50%
47
-  width: 300px
48
-  padding: 40px
49
-  transform: translate(-50%, -50%)
50
-  background: rgba(0, 0, 0, 0.5)
51
-  box-sizing: border-box
52
-  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6)
53
-  border-radius: 10px
54
-
55
-.forget__box h2
56
-  margin: 0 0 30px
57
-  padding: 0
58
-  color: #fff
59
-  text-align: center
60
-
61
-.forget__box .user__box
62
-  position: relative
63
-
64
-.forget__box .user__box input
65
-  width: 100%
66
-  padding: 10px 0
67
-  font-size: 16px
68
-  color: #fff
69
-  margin-bottom: 30px
70
-  border: none
71
-  border-bottom: 1px solid #fff
72
-  outline: none
73
-  background: transparent
74
-
75
-.forget__box .user__box label
76
-  position: absolute
77
-  top: 0
78
-  left: 0
79
-  padding: 10px 0
80
-  font-size: 16px
81
-  color: #fff
82
-  pointer-events: none
83
-  transition: 0.5s
84
-
85
-.forget__box .user__box input:focus ~ label,
86
-.forget__box .user__box input:valid ~ label
87
-  top: -20px
88
-  left: 0
89
-  color: #e90d77
90
-  font-size: 12px
91
-
92
-.forget__box form button
93
-  position: relative
94
-  display: inline-block
95
-  padding: 10px 20px
96
-  color: #e90d77
97
-  font-size: 16px
98
-  text-decoration: none
99
-  text-transform: uppercase
100
-  overflow: hidden
101
-  transition: 0.5s
102
-  margin-top: 40px
103
-  letter-spacing: 4px
104
-  background: none
105
-  border: none
106
-
107
-.forget__box button:hover
108
-  background: #e90d77
109
-  color: #fff
110
-  border-radius: 5px
111
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77, 0 0 100px #e90d77
112
-
113
-.forget__box button span
114
-  position: absolute
115
-  display: block
116
-
117
-.forget__box button span:nth-child(1)
118
-  top: 0
119
-  left: -100%
120
-  width: 100%
121
-  height: 2px
122
-  background: linear-gradient(90deg, transparent, #e90d77)
123
-  animation: btn-anim1 1s linear infinite
124
-
125
-.forget__box form a
126
-  color: white
127
-  text-decoration: none
128
-  margin-left: 5px
129
-  padding: 10px
130
-
131
-.forget__box form a:hover
132
-  background: #e90d77
133
-  color: #fff
134
-  border-radius: 5px
135
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77, 0 0 100px #e90d77
136
-
137
-@keyframes btn-anim1
138
-  0%
139
-    left: -100%
140
-  50%,
141
-  100%
142
-    left: 100%
143
-
144
-.forget__box button span:nth-child(2)
145
-  top: -100%
146
-  right: 0
147
-  width: 2px
148
-  height: 100%
149
-  background: linear-gradient(180deg, transparent, #e90d77)
150
-  animation: btn-anim2 1s linear infinite
151
-  animation-delay: 0.25s
152
-
153
-@keyframes btn-anim2
154
-  0%
155
-    top: -100%
156
-  50%,
157
-  100%
158
-    top: 100%
159
-
160
-.forget__box button span:nth-child(3)
161
-  bottom: 0
162
-  right: -100%
163
-  width: 100%
164
-  height: 2px
165
-  background: linear-gradient(270deg, transparent, #e90d77)
166
-  animation: btn-anim3 1s linear infinite
167
-  animation-delay: 0.5s
168
-
169
-@keyframes btn-anim3
170
-  0%
171
-    right: -100%
172
-  50%,
173
-  100%
174
-    right: 100%
175
-
176
-.forget__box a span:nth-child(4)
177
-  bottom: -100%
178
-  left: 0
179
-  width: 2px
180
-  height: 100%
181
-  background: linear-gradient(360deg, transparent, #e90d77)
182
-  animation: btn-anim4 1s linear infinite
183
-  animation-delay: 0.75s
184
-
185
-@keyframes btn-anim4
186
-  0%
187
-    bottom: -100%
188
-  50%,
189
-  100%
190
-    bottom: 100%
191
-</style>

+ 0
- 13
frontend/src/views/Friends.vue Parādīt failu

@@ -1,13 +0,0 @@
1
-<template>
2
-    <!-- <CometChatUserListWithMessages /> -->
3
-</template>
4
-
5
-<script>
6
-// import { CometChatUserListWithMessages } from "../cometchat-pro-vue-ui-kit";
7
-export default {
8
-    name: 'friends',
9
-    components: {
10
-        // CometChatUserListWithMessages,
11
-    },
12
-}
13
-</script>

+ 0
- 49
frontend/src/views/Match.vue Parādīt failu

@@ -1,49 +0,0 @@
1
-<template lang="pug">
2
-.match
3
-    .matches
4
-        h1 Matches
5
-        .row
6
-            card
7
-                card
8
-                    card
9
-    .messages
10
-        h2 Messages
11
-        .matched.active
12
-            icon
13
-                .messagecontent
14
-                    h3 NSE Tropical
15
-                    |
16
-                    | Recently active, match now!
17
-        .matched
18
-            icon
19
-                .messagecontent
20
-                    h3 Golden Communications
21
-                    |
22
-                    | Click to match now!
23
-        .matched
24
-            icon
25
-                .messagecontent
26
-                    h3 Mojo Solutions
27
-                    |
28
-                    | Click to match now!
29
-</template>
30
-
31
-<script>
32
-import { defineComponent } from 'vue'
33
-
34
-import icon from '@/components/icon.vue'
35
-import card from '@/components/card.vue'
36
-
37
-export default defineComponent({
38
-    components: {
39
-        card,
40
-        icon,
41
-    },
42
-})
43
-</script>
44
-
45
-<style lang="postcss">
46
-.row
47
-    display: flex
48
-    flex-direction: row
49
-</style>

+ 43
- 0
frontend/src/views/Matches.vue Parādīt failu

@@ -0,0 +1,43 @@
1
+<template lang="pug">
2
+.match
3
+    .matches
4
+        h1 Matches
5
+        .row
6
+    .messages
7
+        h2 Messages
8
+        .matched.active
9
+            .messagecontent
10
+                h3 NSE Tropical
11
+                |
12
+                | Recently active, match now!
13
+        .matched
14
+            .messagecontent
15
+                h3 Golden Communications
16
+                |
17
+                | Click to match now!
18
+        .matched
19
+            .messagecontent
20
+                h3 Mojo Solutions
21
+                |
22
+                | Click to match now!
23
+</template>
24
+
25
+<script>
26
+import { defineComponent } from 'vue'
27
+
28
+// import icon from '@/components/icon.vue'
29
+// import card from '@/components/card.vue'
30
+
31
+export default defineComponent({
32
+    components: {
33
+        // card,
34
+        // icon,
35
+    },
36
+})
37
+</script>
38
+
39
+<style lang="postcss">
40
+.row
41
+    display: flex
42
+    flex-direction: row
43
+</style>

+ 19
- 28
frontend/src/views/home.vue Parādīt failu

@@ -1,10 +1,8 @@
1 1
 <template lang="pug">
2
-#home
3
-    .content-wrapper
4
-        .content
5
-            main-header
6
-            profile-cards(:uid='uid' :users='swipables')
7
-    sidebar
2
+article#home
3
+    main-header
4
+    profile-cards(:uid='uid' :users='swipables')
5
+sidebar
8 6
 </template>
9 7
 
10 8
 <script>
@@ -17,7 +15,7 @@ export default {
17 15
     data() {
18 16
         return {
19 17
             swipables: [],
20
-            uid: '',
18
+            uid: null,
21 19
         }
22 20
     },
23 21
     created() {
@@ -27,30 +25,23 @@ export default {
27 25
     },
28 26
     methods: {
29 27
         getUsers() {
30
-            const users = []
31
-            this.swipables = users.filter(
32
-                u => (u.id = Date.now() + (Math.random() * 100000).toFixed()),
33
-            )
28
+            const users = [
29
+                {
30
+                    name: "bob",
31
+                    id: 1234,
32
+                    metadata: { age: '21', rawMetadata: 'Some Text Here!' }
33
+                },
34
+                {
35
+                    name: "rob",
36
+                    id: 1235,
37
+                    metadata: { age: '21', rawMetadata: 'Some Text Here!' }
38
+                }
39
+            ]
40
+            this.swipables = users
34 41
         },
35 42
     },
36 43
 }
37 44
 </script>
38
-<style lang="postcss">
39
-html
40
-  background-color: #f9f9f9
41
-.wrapper
42
-  position: relative
43
-.content
44
-  margin-left: 320px
45
-  clear: both
46
-  overflow: auto
47
-  background: #f9f9ff
48
-  min-height: 100vh
49
-  &-wrapper
50
-    float: right
51
-    width: 100%
52 45
 
53
-@media only screen and (max-width: 768px)
54
-  .content
55
-    margin-left: 0
46
+<style lang="postcss">
56 47
 </style>

Notiek ielāde…
Atcelt
Saglabāt