File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
frontendmu-nuxt/components/speaker Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11
11
"bio" : " Front-End Engineer | Streamer (Twitch)" ,
12
12
"job_title" : " Senior Front-end Engineer @ Livestorm" ,
13
13
"location" : " Mauritius" ,
14
+ "website" : " " ,
14
15
"github" : " cedpoilly" ,
15
16
"twitter" : " "
16
17
}
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ const person = computed(() => props.speaker.person)
16
16
const sessions = computed (() => props .speaker .sessions )
17
17
18
18
const profile = computed (() => props .speaker .profile )
19
- const hasProfileBio = computed (() => profile .value .bio !== ' ' )
20
- const hasProfileLocation = computed (() => profile .value .location !== ' ' )
21
- const hasProfileWebsite = computed (() => profile .value .website !== ' ' )
22
- const hasProfileGithub = computed (() => profile .value .github !== ' ' )
23
- const hasProfileTwitter = computed (() => profile .value .twitter !== ' ' )
19
+ const hasProfileBio = computed (() => profile .value .bio && profile .value .bio !== ' ' )
20
+ const hasProfileJobTitle = computed (() => profile .value .job_title && profile .value .job_title !== ' ' )
21
+ const hasProfileLocation = computed (() => profile .value .location && profile .value .location !== ' ' )
22
+ const hasProfileWebsite = computed (() => profile .value .website && profile .value .website !== ' ' )
23
+ const hasProfileGithub = computed (() => profile .value .github && profile .value .github !== ' ' )
24
+ const hasProfileTwitter = computed (() => profile .value .twitter && profile .value .twitter !== ' ' )
24
25
25
26
const speaker_photo = getGithubUrl (person .value .github_account )
26
27
</script >
@@ -94,6 +95,10 @@ const speaker_photo = getGithubUrl(person.value.github_account)
94
95
</p >
95
96
96
97
<nav class =" grid gap-2 *:flex *:justify-start *:items-center *:gap-2" >
98
+ <span v-if =" hasProfileJobTitle" >
99
+ <Icon name =" lucide:code-xml" mode =" svg" class =" size-6" />{{ profile.job_title }}
100
+ </span >
101
+
97
102
<span v-if =" hasProfileLocation" >
98
103
<Icon name =" lucide:map-pin" mode =" svg" class =" size-6" />{{ profile.location }}
99
104
</span >
You can’t perform that action at this time.
0 commit comments