about summary refs log tree commit diff
path: root/components/Ranking/RankingFirstEntry.vue
blob: b7142ae65150d6dbf22db6e8b16501c442eb2178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<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;
  display: grid;

  width: 150%;
  grid-template-columns: 15% 60% 25%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);

  font-size: 26px;
}

.crown {
  margin: auto;
}

.ranking-first-entry__troop {
  grid-column: 2;
}

.ranking-first-entry__points {
  grid-column: 3;
}
</style>