about summary refs log tree commit diff
path: root/components/Ranking/RankingFirstEntry.vue
blob: c603424dbdd7693975b7b226cdcb0ea6c8e43831 (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
50
<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;
  width: 100%;

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

  font-size: 26px;
  font-weight: 600;
}

.crown {
  margin: auto;
}

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

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