From 45e5a794ae423e81afa7fdde329f34e3d4a0bcd3 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Sat, 20 Mar 2021 18:01:09 +0100
Subject: feat: add top authors section

---
 src/components/TopAuthor.vue | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/TopAuthor.vue

(limited to 'src/components/TopAuthor.vue')

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>
-- 
cgit v1.2.3-18-g5258

