12
12
<p class =" ubuntu mt-2 text-justify" >{{ p.description }}</p >
13
13
</v-col >
14
14
</v-row >
15
- <v-row class =" justify-center" v-for =" p in interns" :key =p.name >
16
- <v-col >
17
- <p class =" text-end" >{{ p.name }}</p >
18
- </v-col >
19
- <v-col >
20
- <p class =" text-center" >{{ p.position }}</p >
15
+ <h1 class =" text-h3 text-center mb-5" >Internship</h1 >
16
+ <v-row class =" justify-center" >
17
+ <v-col cols =" 2" ></v-col >
18
+ <v-col cols =" 6" >
19
+ <v-table >
20
+ <tbody >
21
+ <tr v-for =" (group, i) in intern_groups" :key =" 'g' + i" >
22
+ <td v-for =" p in group" :key =" p.name" >
23
+ {{ p.name }}
24
+ </td >
25
+ </tr >
26
+ </tbody >
27
+ </v-table >
21
28
</v-col >
22
29
</v-row >
23
30
</template >
@@ -71,21 +78,30 @@ export default {
71
78
},
72
79
],
73
80
interns: [
74
- {
75
- name: " Zheng Yao Kong" ,
76
- position: " Internship" ,
77
- },
78
- {
79
- name: " Huijun LIM" ,
80
- position: " Internship" ,
81
- },
82
- {
83
- name: " PHEOBE EDELINE LEE YU YING" ,
84
- position: " Internship" ,
85
- },
81
+ { name: " LIM Hui Jun" },
82
+ { name: " KONG Zheng Yao" },
83
+ { name: " Pheobe Edeline LEE Yu Ying" },
84
+ { name: " WONG Yu Qing" },
85
+ { name: " ZHU Chengan" },
86
+ { name: " Harry ZHONG" }
86
87
]
87
88
}
88
89
},
90
+ computed: {
91
+ intern_groups () {
92
+ const len = Math .floor (this .interns .length / 2 ) * 2
93
+ const result = []
94
+ let i = 0
95
+ while (i < len) {
96
+ result .push ([this .interns [i], this .interns [i + 1 ]])
97
+ i += 2
98
+ }
99
+ if (i < this .interns .length ) {
100
+ result .push ([this .interns [i]])
101
+ }
102
+ return result
103
+ }
104
+ },
89
105
created () {
90
106
this .people .forEach (person => {
91
107
person .imgUrl .then (module => {
101
117
text-decoration : none ;
102
118
color : #257CB7 ;
103
119
}
120
+
121
+ .v-table td {
122
+ border-bottom : none !important ;
123
+ }
104
124
</style >
0 commit comments