summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-20 18:01:09 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-20 18:01:09 +0100
commit45e5a794ae423e81afa7fdde329f34e3d4a0bcd3 (patch)
tree1afd7082ca2570a54bd3ba0687542ba94996bbb4 /src/components
parenta9ece91610c7f33cbc6445b58cfd1a9b43a89a49 (diff)
feat: add top authors section
Diffstat (limited to 'src/components')
-rw-r--r--src/components/TopAuthor.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/TopAuthor.vue b/src/components/TopAuthor.vue
new file mode 100644
index 0000000..e8a0241
--- /dev/null
+++ b/src/components/TopAuthor.vue
@@ -0,0 +1,16 @@
+<template lang="pug">
+ .top-author
+ .user
+ img(:src="'https://gravatar.com/avatar/'+avatar" :alt="data.author_email")
+ strong(:title="data.author_email")
+ | {{ data.author_name }} <{{ data.author_email }}>
+ .number
+ h2 {{ data.num }}
+</template>
+
+<script>
+export default {
+ name: "TopAuthor",
+ props: ['data', 'avatar'],
+}
+</script>