Skip to content

Commit ef14f5f

Browse files
committed
feat: Add authors to resource landing page
1 parent a35c47a commit ef14f5f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

assets/imgs/ORCIDiD_icon24x24.png

1.37 KB
Loading

components/card/authors.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ function getAuthors() {
3131
{{ author.firstName }} {{ author.lastName }}
3232
</td>
3333
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-gray-200">
34-
<a :href="`mailto:${author.email}`">{{ author.email }}</a>
34+
<a class="text-aruna-800 hover:text-aruna-700" :href="`mailto:${author.email}`">{{ author.email }}</a>
3535
</td>
36-
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-gray-200">
37-
<a v-if="author.orcid" :href="`https://:orcid.org/${author.orcid}`" target="_blank">{{ author.orcid }}</a>
36+
<td class="px-6 py-4 whitespace-nowrap text-center text-sm font-medium">
37+
<a v-if="author.orcid" class="inline-flex items-center text-green-700 hover:text-green-600"
38+
:href="`https://orcid.org/${author.orcid}`" target="_blank">
39+
<img :title="author.orcid" alt="orcid-icon" src="assets/imgs/ORCIDiD_icon24x24.png"/>
40+
</a>
3841
</td>
3942
</tr>
4043
</tbody>

components/modal/author.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ function submit() {
112112
firstName: firstName.value,
113113
lastName: lastName.value,
114114
email: email.value,
115-
orcid: orcid.value,
116-
id: userId.value
115+
orcid: orcid.value.length > 0 ? orcid.value : undefined,
116+
id: userId.value.length > 0 ? userId.value : undefined
117117
})
118118
reset()
119119
}

0 commit comments

Comments
 (0)