Просмотр исходного кода

:recycle: breaking out tabs in summary bar

tags/0.0.1^2
J 3 лет назад
Родитель
Сommit
70e7796b99
2 измененных файлов: 24 добавлений и 4 удалений
  1. 2
    2
      frontend/src/components/ProfileCard.vue
  2. 22
    2
      frontend/src/components/SummaryBar.vue

+ 2
- 2
frontend/src/components/ProfileCard.vue Просмотреть файл

44
 import TagList from './TagList.vue'
44
 import TagList from './TagList.vue'
45
 import PairingButton from './PairingButton.vue'
45
 import PairingButton from './PairingButton.vue'
46
 
46
 
47
-// const isPaired = ref(true)
48
-const isPaired = ref(false)
47
+const isPaired = ref(true)
48
+// const isPaired = ref(false)
49
 
49
 
50
 const props = defineProps({
50
 const props = defineProps({
51
     card: {
51
     card: {

+ 22
- 2
frontend/src/components/SummaryBar.vue Просмотреть файл

9
                     p(v-if="tabContent[item].matchPerc") {{ tabContent[item].matchPerc }}%
9
                     p(v-if="tabContent[item].matchPerc") {{ tabContent[item].matchPerc }}%
10
                     p(v-else)  
10
                     p(v-else)  
11
                     p {{ item }}
11
                     p {{ item }}
12
-            template(v-if="isTab" #item-content="{ item }")
13
-                .tab 
12
+            // About Tab
13
+            template(#item-content.1="{ item }")
14
+                .tab--about
15
+                    p {{ tabContent[item].tab }}
16
+                    br
17
+                    p {{ tabContent[item].tab }}
18
+                    br
19
+                    hr
20
+            
21
+            // Passion Tab
22
+            template(#item-content.2="{ item }")
23
+                .tab--passion
24
+                    p {{ tabContent[item].tab }}
25
+
26
+            // Aspirations Tab
27
+            template(#item-content.3="{ item }")
28
+                .tab--aspirations
29
+                    p {{ tabContent[item].tab }}
30
+
31
+            // Skills Tab
32
+            template(#item-content.4="{ item }")
33
+                .tab--skills
14
                     p {{ tabContent[item].tab }}
34
                     p {{ tabContent[item].tab }}
15
 
35
 
16
         // Untabbed Layout
36
         // Untabbed Layout

Загрузка…
Отмена
Сохранить