File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
games-vue-client/src/components/games Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 4141 Give clue
4242 </v-btn >
4343 <template v-if =" myTurn && actionChoice && actionChoice .choices [0 ] === player .index " >
44- <v-btn v-for =" (act, actIndex) in actions.GiveClue" @click =" onAction('GiveClue', actIndex)" :key =" actIndex" >{{ actIndex }}</v-btn >
44+ <v-btn v-for =" (act, actIndex) in actions.GiveClue" :class = " [actIndex.includes('color-') ? actIndex : ''] " @click =" onAction('GiveClue', actIndex)" :key =" actIndex" >{{ actIndex }}</v-btn >
4545 </template >
4646 </v-card-actions >
4747 </v-card >
6767 <transition name =" number-transition" mode =" out-in" ><p :key =" view.score" >{{ view.score }}</p ></transition >
6868 </v-col >
6969 </v-row >
70+
7071 <v-row justify =" center" class =" translate-animation-wrapper" >
7172 <transition name =" translate-animation" >
7273 <v-card :key =" view.hand.index" class =" animate-all player-hand" :class =" { 'active-player': view.currentPlayer == view.hand.index }" >
8990 </v-card >
9091 </transition >
9192 </v-row >
93+
9294 <v-row >
9395 <h2 >Actions</h2 >
94-
9596 </v-row >
9697 </v-container >
9798</template >
99+
98100<script >
99101import HanabiCard from " ./HanabiCard"
100102
@@ -122,6 +124,22 @@ export default {
122124<style scoped>
123125@import " ../../assets/games-style.css" ;
124126
127+ .color-RED {
128+ background-color : #ef476f !important ;
129+ }
130+ .color-BLUE {
131+ background-color : #118AB2 !important ;
132+ }
133+ .color-GREEN {
134+ background-color : #06D6A0 !important ;
135+ }
136+ .color-YELLOW {
137+ background-color : #FFD166 !important ;
138+ }
139+ .color-WHITE {
140+ background-color : #F5F5F5 !important ;
141+ }
142+
125143.animate-all {
126144 transition : all 1.5s ease ;
127145}
You can’t perform that action at this time.
0 commit comments