summaryrefslogtreecommitdiff
path: root/src/components/TopAuthor.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/TopAuthor.vue')
-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>