about summary refs log tree commit diff
path: root/components/Ranking/RankingFirstEntry.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-28 07:25:54 -0500
committerGitHub <noreply@github.com>2019-11-28 07:25:54 -0500
commitfaaf63ad895bd51541a9984273d52c71645a0b28 (patch)
tree90e949913650da4b619e3ab1e875731b1410d93f /components/Ranking/RankingFirstEntry.vue
parent72549ed7b81fc01445fecdb7889bab4cf2a1590f (diff)
parent73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d (diff)
downloadpuszcza-faaf63ad895bd51541a9984273d52c71645a0b28.tar.gz
puszcza-faaf63ad895bd51541a9984273d52c71645a0b28.zip
Merge pull request #8 from 19pdh/develop
Posts & ranking
Diffstat (limited to 'components/Ranking/RankingFirstEntry.vue')
-rw-r--r--components/Ranking/RankingFirstEntry.vue52
1 files changed, 52 insertions, 0 deletions
diff --git a/components/Ranking/RankingFirstEntry.vue b/components/Ranking/RankingFirstEntry.vue
new file mode 100644
index 0000000..d9f290b
--- /dev/null
+++ b/components/Ranking/RankingFirstEntry.vue
@@ -0,0 +1,52 @@
+<template>
+  <li class="ranking-first-entry">
+    <img class="crown" src="/assets/crown.svg" />
+    <div class="ranking-first-entry__troop">{{ troop }}</div>
+    <div class="ranking-first-entry__points">{{ points }}</div>
+  </li>
+</template>
+
+<script>
+export default {
+  name: 'RankingFirstEntry',
+  props: {
+    troop: {
+      type: String,
+      required: true
+    },
+    points: {
+      type: Number,
+      required: true
+    }
+  }
+}
+</script>
+
+<style scoped>
+.ranking-first-entry {
+  list-style: none;
+  padding: 10px 20px;
+  margin: 10px;
+  width: 100%;
+
+  display: grid;
+  grid-template-columns: 15% 60% 25%;
+  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
+
+  line-height: 50px;
+  font-size: 26px;
+  font-weight: 600;
+}
+
+.crown {
+  margin: auto;
+}
+
+.ranking-first-entry__troop {
+  grid-column: 2;
+}
+
+.ranking-first-entry__points {
+  grid-column: 3;
+}
+</style>