|
2 | 2 | <section> |
3 | 3 | <section> |
4 | 4 | <div id="hero" class="hero is-fullheight is-dark"> |
| 5 | + <router-link :to="{name: 'home'}" class="cn-back-home"> |
| 6 | + <img src="/iso-cn.svg" class="image" alt /> |
| 7 | + </router-link> |
5 | 8 | <div class="hero-body"> |
6 | 9 | <div class="container"> |
7 | 10 | <div class="columns"> |
|
14 | 17 | <div class="column"> |
15 | 18 | <h1 class="title is-1 is-size-3-touch">{{userProfile.display_name}}</h1> |
16 | 19 | <div class="content"> |
17 | | - <p class="add-br is-italic">{{userProfile.bio}}</p> |
| 20 | + <p class="add-br is-italic" >{{userProfile.bio || 'I haven\'t completed my bio yet!' }}</p> |
18 | 21 | </div> |
19 | 22 | <div class="columns is-mobile"> |
20 | 23 | <div class="column is-narrow"> |
21 | 24 | <a |
22 | 25 | :href="`https://${userProfile.data.website}`" |
23 | 26 | target="_blank" |
24 | 27 | class="has-text-white" |
25 | | - v-if="userProfile.data.website" |
| 28 | + v-if="userProfile.data && userProfile.data.website" |
26 | 29 | > |
27 | 30 | <i class="fas fa-globe fa-lg fa-fw"></i> |
28 | 31 | </a> |
|
32 | 35 | :href="`https://facebook.com/${userProfile.data.facebook}`" |
33 | 36 | target="_blank" |
34 | 37 | class="has-text-white" |
35 | | - v-if="userProfile.data.facebook" |
| 38 | + v-if="userProfile.data && userProfile.data.facebook" |
36 | 39 | > |
37 | 40 | <i class="fab fa-facebook-f fa-lg fa-fw"></i> |
38 | 41 | </a> |
|
42 | 45 | :href="`https://twitter.com/${userProfile.data.twitter}`" |
43 | 46 | target="_blank" |
44 | 47 | class="has-text-white" |
45 | | - v-if="userProfile.data.twitter" |
| 48 | + v-if="userProfile.data && userProfile.data.twitter" |
46 | 49 | > |
47 | 50 | <i class="fab fa-twitter fa-lg fa-fw"></i> |
48 | 51 | </a> |
|
52 | 55 | :href="`https://${userProfile.data.other_network}`" |
53 | 56 | target="_blank" |
54 | 57 | class="has-text-white" |
55 | | - v-if="userProfile.data.other_network" |
| 58 | + v-if="userProfile.data && userProfile.data.other_network" |
56 | 59 | > |
57 | 60 | <i class="fas fa-external-link-alt fa-lg fa-fw"></i> |
58 | 61 | </a> |
59 | 62 | </div> |
60 | 63 | </div> |
61 | 64 | <h1 class="subtitle is-5 has-text-white"><i class="fas fa-tag"></i> Areas of interest</h1> |
62 | 65 | <div class="content" v-if="userProfile.person.terms.length == 0"> |
63 | | - <p><i>I haven't done this, yet!</i></p> |
| 66 | + <p><i>I haven't completed my areas of interest yet!</i></p> |
64 | 67 | </div> |
65 | 68 | <div class="tags"> |
66 | 69 | <span class="tag is-rounded is-medium is-primary" v-for="area in userProfile.person.terms" :key="area.id">{{area.name}}</span> |
|
0 commit comments