You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.0 KiB
65 lines
1.0 KiB
<template> |
|
<div class="score-board"> |
|
<div class="apple"> |
|
<img src="https://app3359.acapp.acwing.com.cn/static/images/apple.png" alt=""> |
|
<div>{{ $store.state.score }}</div> |
|
</div> |
|
<div class="cup"> |
|
<img src="https://app3359.acapp.acwing.com.cn/static/images/cup.png" alt=""> |
|
<div>{{ $store.state.record }}</div> |
|
</div> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
name: "ScoreBoard", |
|
} |
|
</script> |
|
|
|
|
|
<style scoped> |
|
|
|
.score-board { |
|
height: 8vh; |
|
width: 100%; |
|
background-color: #4A752C; |
|
display: flex; |
|
justify-content: space-around; |
|
user-select: none; |
|
} |
|
|
|
.apple { |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.apple > img { |
|
width: 6vh; |
|
height: 6vh; |
|
} |
|
|
|
.apple > div { |
|
color: white; |
|
font-weight: bold; |
|
font-size: 2.5vh; |
|
} |
|
|
|
.cup { |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.cup > img { |
|
width: 4.5vh; |
|
height: 5vh; |
|
} |
|
|
|
.cup > div { |
|
color: white; |
|
font-weight: bold; |
|
font-size: 2.5vh; |
|
margin-left: 1vh; |
|
} |
|
|
|
</style> |