@golstats/gsc-lineups-reports 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/css/fonts.css +91 -91
- package/dist/gsc-lineups-reports.css +1 -1
- package/dist/gsc-lineups-reports.es.js +2946 -2675
- package/dist/gsc-lineups-reports.umd.js +10 -7
- package/dist/images/canchaRPH.svg +30 -30
- package/dist/images/events/atajada.svg +56 -56
- package/dist/images/events/fin-del-partido.svg +43 -43
- package/dist/images/events/fuera-de-lugar.svg +57 -57
- package/dist/images/events/gol.svg +48 -48
- package/dist/images/events/icn-cambio.svg +6 -6
- package/dist/images/events/icn-falta.svg +4 -4
- package/dist/images/events/icn-play.svg +3 -3
- package/dist/images/events/icn-tarjeta-amarilla.svg +3 -3
- package/dist/images/events/icn-tarjeta-roja.svg +3 -3
- package/dist/images/events/icn-tiro-a-porteria.svg +36 -36
- package/dist/images/events/icn-tiros-de-esquina.svg +18 -18
- package/dist/images/events/inicia-el-partido.svg +45 -45
- package/dist/images/events/jugada-peligrosa.svg +90 -90
- package/dist/images/events/penal-fallado.svg +194 -194
- package/dist/images/events/penal-marcado.svg +189 -189
- package/dist/images/events/tiempo-agregado.svg +74 -74
- package/dist/images/events/tiro-a-porteria.svg +80 -80
- package/dist/images/events/var.svg +30 -30
- package/package.json +7 -3
- package/src/components/Lineup2D/CheckBox.vue +42 -42
- package/src/components/Lineup2D/FilterEmpty.vue +48 -48
- package/src/components/Lineup2D/Icons.vue +29 -29
- package/src/components/Lineup2D/LineupField.vue +274 -274
- package/src/components/Lineup2D/LineupFilter.vue +285 -285
- package/src/components/Lineup2D/LineupMainHeader.vue +222 -222
- package/src/components/Lineup2D/LineupRecentItem.vue +110 -110
- package/src/components/Lineup2D/MatchDetails.vue +66 -66
- package/src/components/gsc-filter.vue +286 -286
- package/src/components/gsc-header-historico-lineup.vue +1064 -1064
- package/src/components/gsc-header-postmatch-lineup.vue +1017 -1017
- package/src/components/gsc-header-probables-lineup.vue +1044 -1044
- package/src/components/gsc-header-recientes-lineup.vue +2337 -2337
- package/src/components/gsc-lineup-dosd.vue +3777 -3752
- package/src/components/gsc-lineup-main.vue +81 -65
- package/src/components/gsc-lineups-reports.vue +10 -0
- package/src/components/gsc-lineups.vue +46 -12
- package/src/components/gsc-player-card.vue +166 -166
- package/src/index.js +4 -4
- package/src/main-test.js +42 -0
- package/src/types.d.ts +45 -45
- package/src/utils/apiUrl.js +33 -0
- package/src/utils/socketConnection.js +29 -29
|
@@ -1,223 +1,223 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="main-header" :class="mainHeaderClass(type)" >
|
|
3
|
-
<div class="team" :class="{ disabled: !isLocalSelected && type === 'Recientes' }">
|
|
4
|
-
<div class="team__img-container" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
|
|
5
|
-
<img :src="localTeam.img" v-if="localTeam.acronym != '-'">
|
|
6
|
-
</div>
|
|
7
|
-
<div class="team__acronym" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'" v-if="localTeam.acronym != '-'">{{ localTeam.acronym }}</div>
|
|
8
|
-
<div v-if="type === 'Probables'" class="team_rival">
|
|
9
|
-
<div class="team__vs">vs</div>
|
|
10
|
-
<img v-if="probablyTeamHome.img!= '-'" :src="probablyTeamHome.img" class="img-post--left">
|
|
11
|
-
<div v-if="probablyTeamHome.acronym != '-'" class="team__acronym--gray team__acronym--gray--left">{{ probablyTeamHome.acronym }}</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div v-if="['Historicos', 'Postmatch'].includes(type)" class="main-header__score">
|
|
15
|
-
{{ score }}
|
|
16
|
-
</div>
|
|
17
|
-
<div v-else-if="type === 'Recientes'" class="main-header__switch">
|
|
18
|
-
<GSCSwitchRadio width="43px" height="20px" heightCircle="17px" widthCircle="17px" circle-color-switch="#cbee6b" :text-option-left="localTeam.acronym" @change="changeSwitchRadio" :text-option-right="visitTeam.acronym" font-color="white" :value-default="teamSelect" :hidden-labels="true" />
|
|
19
|
-
</div>
|
|
20
|
-
<div class="team">
|
|
21
|
-
<div v-if="type === 'Probables'" class="team_rival">
|
|
22
|
-
<div class="team__acronym--gray team__acronym--gray--right" v-if="probablyTeamAway.acronym != '-'">{{ probablyTeamAway.acronym }}</div>
|
|
23
|
-
<img v-if="probablyTeamAway.img != '-'" :src="probablyTeamAway.img" class="img-post">
|
|
24
|
-
<div class="team__vs">vs</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="team__acronym" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">{{ visitTeam.acronym }}</div>
|
|
27
|
-
<div class="team__img-container left" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
|
|
28
|
-
<img v-if="visitTeam.img != '-'" :src="visitTeam.img">
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
</template>
|
|
34
|
-
<script setup>
|
|
35
|
-
import { GSCSwitchRadio } from '@golstats/gsc-switch-radio'
|
|
36
|
-
import { ref } from 'vue'
|
|
37
|
-
import '@@/@golstats/gsc-switch-radio/dist/style.css'
|
|
38
|
-
|
|
39
|
-
const props = defineProps({
|
|
40
|
-
type: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: 'Historicos'
|
|
43
|
-
},
|
|
44
|
-
score: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: '2 - 3'
|
|
47
|
-
},
|
|
48
|
-
//{ acronym: '', img: ''}
|
|
49
|
-
localTeam: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default: () => ({})
|
|
52
|
-
},
|
|
53
|
-
visitTeam: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default: () => ({})
|
|
56
|
-
},
|
|
57
|
-
probablyTeamHome: {
|
|
58
|
-
type: Object,
|
|
59
|
-
default: () => ({})
|
|
60
|
-
},
|
|
61
|
-
probablyTeamAway: {
|
|
62
|
-
type: Object,
|
|
63
|
-
default: () => ({})
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
const emit = defineEmits(['change'])
|
|
67
|
-
const changeSwitchRadio = (val) => {
|
|
68
|
-
if(typeof val === 'string') teamSelected.value = val
|
|
69
|
-
emit('change', val)
|
|
70
|
-
}
|
|
71
|
-
const isLocalSelected= ref(true)
|
|
72
|
-
let teamSelected = ref(props.localTeam.acronym)
|
|
73
|
-
</script>
|
|
74
|
-
<script >
|
|
75
|
-
export default {
|
|
76
|
-
methods: {
|
|
77
|
-
mainHeaderClass: function(type) {
|
|
78
|
-
let clase = ''
|
|
79
|
-
if (type === 'Recientes') clase = 'main-header-recientes'
|
|
80
|
-
if (type === 'Probables') clase = 'main-header-probables'
|
|
81
|
-
return clase
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
<style lang="scss" scoped>
|
|
87
|
-
.team_rival {
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: space-between;
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: 0px;
|
|
92
|
-
visibility: visible;
|
|
93
|
-
width: auto;
|
|
94
|
-
@media screen and (max-width: 500px) {
|
|
95
|
-
visibility: hidden;
|
|
96
|
-
width: 0;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.main-header-recientes {
|
|
100
|
-
padding-bottom: 16px;
|
|
101
|
-
border-bottom: 1px solid #3D3D49;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.main-header-probables {
|
|
105
|
-
@media screen and (max-width: 724px) {
|
|
106
|
-
justify-content: center;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
.main-header {
|
|
110
|
-
display: flex;
|
|
111
|
-
align-items: center;
|
|
112
|
-
justify-content: space-between;
|
|
113
|
-
margin-bottom: 16px;
|
|
114
|
-
.team {
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
&__img-container {
|
|
118
|
-
height: 42px;
|
|
119
|
-
width: 42px;
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
border: 0.873px solid #0033C5;
|
|
122
|
-
box-shadow: 0px 1px 8px 0px rgb(0 0 0 / 25%);
|
|
123
|
-
display: flex;
|
|
124
|
-
align-items: center;
|
|
125
|
-
justify-content: center;
|
|
126
|
-
margin: 0 10px 0 0;
|
|
127
|
-
position: relative;
|
|
128
|
-
&.left {
|
|
129
|
-
margin: 0 0 0 10px;
|
|
130
|
-
border: 0.873px solid #CBEE6B;
|
|
131
|
-
}
|
|
132
|
-
img {
|
|
133
|
-
width: 28px;
|
|
134
|
-
height: 28px;
|
|
135
|
-
z-index: 1;
|
|
136
|
-
}
|
|
137
|
-
&::after {
|
|
138
|
-
content: " ";
|
|
139
|
-
height: 80%;
|
|
140
|
-
width: 80%;
|
|
141
|
-
position: absolute;
|
|
142
|
-
border-radius: 109.091px;
|
|
143
|
-
background: #172531;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
&__acronym {
|
|
147
|
-
color: #F4F4F4;
|
|
148
|
-
font-family: Poppins,sans-serif;
|
|
149
|
-
font-size: 14px;
|
|
150
|
-
font-weight: 500;
|
|
151
|
-
line-height: 220.495%;
|
|
152
|
-
letter-spacing: 0.309px;
|
|
153
|
-
&--gray {
|
|
154
|
-
color: rgba(255, 255, 255, 0.70);
|
|
155
|
-
margin-left: 2px;
|
|
156
|
-
@media screen and (max-width: 724px) {
|
|
157
|
-
font-size: 10px;
|
|
158
|
-
&--left {
|
|
159
|
-
margin-right: 13px;
|
|
160
|
-
}
|
|
161
|
-
&--right {
|
|
162
|
-
margin-left: 13px;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
@media screen and (max-width: 724px) {
|
|
167
|
-
/* font-size: 10px; */
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
&__vs {
|
|
172
|
-
color: rgba(255, 255, 255, 0.70);
|
|
173
|
-
font-family: Poppins,sans-serif;
|
|
174
|
-
font-size: 14px;
|
|
175
|
-
font-weight: 500;
|
|
176
|
-
line-height: 20.065px; /* 143.322% */
|
|
177
|
-
letter-spacing: -0.14px;
|
|
178
|
-
margin: 0 5px 0 10px;
|
|
179
|
-
@media screen and (max-width: 724px) {
|
|
180
|
-
font-size: 10px;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
&.disabled {
|
|
184
|
-
opacity: 0.7;
|
|
185
|
-
}
|
|
186
|
-
.img-post {
|
|
187
|
-
width: 30px;
|
|
188
|
-
margin-left: 5px;
|
|
189
|
-
}
|
|
190
|
-
.img-post--left {
|
|
191
|
-
width: 30px;
|
|
192
|
-
margin-right: 5px;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&__score {
|
|
197
|
-
display: flex;
|
|
198
|
-
width: 71px;
|
|
199
|
-
height: 31px;
|
|
200
|
-
justify-content: center;
|
|
201
|
-
align-items: center;
|
|
202
|
-
border-radius: 17px;
|
|
203
|
-
background-color: rgba(255, 255, 255, .1);
|
|
204
|
-
color: #FFF;
|
|
205
|
-
text-align: center;
|
|
206
|
-
font-family: Inter, sans-serif;
|
|
207
|
-
font-size: 15px;
|
|
208
|
-
font-weight: 600;
|
|
209
|
-
padding: 6.524074554443359px 17.397533416748047px;
|
|
210
|
-
gap: 5px;
|
|
211
|
-
text-wrap: nowrap;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
&__switch {
|
|
215
|
-
display: flex;
|
|
216
|
-
width: 71px;
|
|
217
|
-
height: 31px;
|
|
218
|
-
justify-content: center;
|
|
219
|
-
align-items: center;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="main-header" :class="mainHeaderClass(type)" >
|
|
3
|
+
<div class="team" :class="{ disabled: !isLocalSelected && type === 'Recientes' }">
|
|
4
|
+
<div class="team__img-container" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
|
|
5
|
+
<img :src="localTeam.img" v-if="localTeam.acronym != '-'">
|
|
6
|
+
</div>
|
|
7
|
+
<div class="team__acronym" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'" v-if="localTeam.acronym != '-'">{{ localTeam.acronym }}</div>
|
|
8
|
+
<div v-if="type === 'Probables'" class="team_rival">
|
|
9
|
+
<div class="team__vs">vs</div>
|
|
10
|
+
<img v-if="probablyTeamHome.img!= '-'" :src="probablyTeamHome.img" class="img-post--left">
|
|
11
|
+
<div v-if="probablyTeamHome.acronym != '-'" class="team__acronym--gray team__acronym--gray--left">{{ probablyTeamHome.acronym }}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div v-if="['Historicos', 'Postmatch'].includes(type)" class="main-header__score">
|
|
15
|
+
{{ score }}
|
|
16
|
+
</div>
|
|
17
|
+
<div v-else-if="type === 'Recientes'" class="main-header__switch">
|
|
18
|
+
<GSCSwitchRadio width="43px" height="20px" heightCircle="17px" widthCircle="17px" circle-color-switch="#cbee6b" :text-option-left="localTeam.acronym" @change="changeSwitchRadio" :text-option-right="visitTeam.acronym" font-color="white" :value-default="teamSelect" :hidden-labels="true" />
|
|
19
|
+
</div>
|
|
20
|
+
<div class="team">
|
|
21
|
+
<div v-if="type === 'Probables'" class="team_rival">
|
|
22
|
+
<div class="team__acronym--gray team__acronym--gray--right" v-if="probablyTeamAway.acronym != '-'">{{ probablyTeamAway.acronym }}</div>
|
|
23
|
+
<img v-if="probablyTeamAway.img != '-'" :src="probablyTeamAway.img" class="img-post">
|
|
24
|
+
<div class="team__vs">vs</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="team__acronym" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">{{ visitTeam.acronym }}</div>
|
|
27
|
+
<div class="team__img-container left" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
|
|
28
|
+
<img v-if="visitTeam.img != '-'" :src="visitTeam.img">
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
</template>
|
|
34
|
+
<script setup>
|
|
35
|
+
import { GSCSwitchRadio } from '@golstats/gsc-switch-radio'
|
|
36
|
+
import { ref } from 'vue'
|
|
37
|
+
import '@@/@golstats/gsc-switch-radio/dist/style.css'
|
|
38
|
+
|
|
39
|
+
const props = defineProps({
|
|
40
|
+
type: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: 'Historicos'
|
|
43
|
+
},
|
|
44
|
+
score: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: '2 - 3'
|
|
47
|
+
},
|
|
48
|
+
//{ acronym: '', img: ''}
|
|
49
|
+
localTeam: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => ({})
|
|
52
|
+
},
|
|
53
|
+
visitTeam: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: () => ({})
|
|
56
|
+
},
|
|
57
|
+
probablyTeamHome: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => ({})
|
|
60
|
+
},
|
|
61
|
+
probablyTeamAway: {
|
|
62
|
+
type: Object,
|
|
63
|
+
default: () => ({})
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
const emit = defineEmits(['change'])
|
|
67
|
+
const changeSwitchRadio = (val) => {
|
|
68
|
+
if(typeof val === 'string') teamSelected.value = val
|
|
69
|
+
emit('change', val)
|
|
70
|
+
}
|
|
71
|
+
const isLocalSelected= ref(true)
|
|
72
|
+
let teamSelected = ref(props.localTeam.acronym)
|
|
73
|
+
</script>
|
|
74
|
+
<script >
|
|
75
|
+
export default {
|
|
76
|
+
methods: {
|
|
77
|
+
mainHeaderClass: function(type) {
|
|
78
|
+
let clase = ''
|
|
79
|
+
if (type === 'Recientes') clase = 'main-header-recientes'
|
|
80
|
+
if (type === 'Probables') clase = 'main-header-probables'
|
|
81
|
+
return clase
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
<style lang="scss" scoped>
|
|
87
|
+
.team_rival {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 0px;
|
|
92
|
+
visibility: visible;
|
|
93
|
+
width: auto;
|
|
94
|
+
@media screen and (max-width: 500px) {
|
|
95
|
+
visibility: hidden;
|
|
96
|
+
width: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.main-header-recientes {
|
|
100
|
+
padding-bottom: 16px;
|
|
101
|
+
border-bottom: 1px solid #3D3D49;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.main-header-probables {
|
|
105
|
+
@media screen and (max-width: 724px) {
|
|
106
|
+
justify-content: center;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.main-header {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
margin-bottom: 16px;
|
|
114
|
+
.team {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
&__img-container {
|
|
118
|
+
height: 42px;
|
|
119
|
+
width: 42px;
|
|
120
|
+
border-radius: 50%;
|
|
121
|
+
border: 0.873px solid #0033C5;
|
|
122
|
+
box-shadow: 0px 1px 8px 0px rgb(0 0 0 / 25%);
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
margin: 0 10px 0 0;
|
|
127
|
+
position: relative;
|
|
128
|
+
&.left {
|
|
129
|
+
margin: 0 0 0 10px;
|
|
130
|
+
border: 0.873px solid #CBEE6B;
|
|
131
|
+
}
|
|
132
|
+
img {
|
|
133
|
+
width: 28px;
|
|
134
|
+
height: 28px;
|
|
135
|
+
z-index: 1;
|
|
136
|
+
}
|
|
137
|
+
&::after {
|
|
138
|
+
content: " ";
|
|
139
|
+
height: 80%;
|
|
140
|
+
width: 80%;
|
|
141
|
+
position: absolute;
|
|
142
|
+
border-radius: 109.091px;
|
|
143
|
+
background: #172531;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
&__acronym {
|
|
147
|
+
color: #F4F4F4;
|
|
148
|
+
font-family: Poppins,sans-serif;
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
line-height: 220.495%;
|
|
152
|
+
letter-spacing: 0.309px;
|
|
153
|
+
&--gray {
|
|
154
|
+
color: rgba(255, 255, 255, 0.70);
|
|
155
|
+
margin-left: 2px;
|
|
156
|
+
@media screen and (max-width: 724px) {
|
|
157
|
+
font-size: 10px;
|
|
158
|
+
&--left {
|
|
159
|
+
margin-right: 13px;
|
|
160
|
+
}
|
|
161
|
+
&--right {
|
|
162
|
+
margin-left: 13px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
@media screen and (max-width: 724px) {
|
|
167
|
+
/* font-size: 10px; */
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
&__vs {
|
|
172
|
+
color: rgba(255, 255, 255, 0.70);
|
|
173
|
+
font-family: Poppins,sans-serif;
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
line-height: 20.065px; /* 143.322% */
|
|
177
|
+
letter-spacing: -0.14px;
|
|
178
|
+
margin: 0 5px 0 10px;
|
|
179
|
+
@media screen and (max-width: 724px) {
|
|
180
|
+
font-size: 10px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
&.disabled {
|
|
184
|
+
opacity: 0.7;
|
|
185
|
+
}
|
|
186
|
+
.img-post {
|
|
187
|
+
width: 30px;
|
|
188
|
+
margin-left: 5px;
|
|
189
|
+
}
|
|
190
|
+
.img-post--left {
|
|
191
|
+
width: 30px;
|
|
192
|
+
margin-right: 5px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&__score {
|
|
197
|
+
display: flex;
|
|
198
|
+
width: 71px;
|
|
199
|
+
height: 31px;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
align-items: center;
|
|
202
|
+
border-radius: 17px;
|
|
203
|
+
background-color: rgba(255, 255, 255, .1);
|
|
204
|
+
color: #FFF;
|
|
205
|
+
text-align: center;
|
|
206
|
+
font-family: Inter, sans-serif;
|
|
207
|
+
font-size: 15px;
|
|
208
|
+
font-weight: 600;
|
|
209
|
+
padding: 6.524074554443359px 17.397533416748047px;
|
|
210
|
+
gap: 5px;
|
|
211
|
+
text-wrap: nowrap;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&__switch {
|
|
215
|
+
display: flex;
|
|
216
|
+
width: 71px;
|
|
217
|
+
height: 31px;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
align-items: center;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
223
|
</style>
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="recent-item">
|
|
3
|
-
<div class="recent-item__team-info">
|
|
4
|
-
<div class="recent-item__team">
|
|
5
|
-
<div class="recent-item__acronym">
|
|
6
|
-
{{ game.home_team_abbreviation }}
|
|
7
|
-
</div>
|
|
8
|
-
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png'" class="left">
|
|
9
|
-
</div>
|
|
10
|
-
<div class="recent-item__score">
|
|
11
|
-
{{ game.score[0]}} - {{ game.score[4] }}
|
|
12
|
-
</div>
|
|
13
|
-
<div class="recent-item__team">
|
|
14
|
-
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png'">
|
|
15
|
-
<div class="recent-item__acronym">
|
|
16
|
-
{{ game.away_team_abbreviation }}
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="recent-item__status">
|
|
21
|
-
<template v-if="game.home_team_abbreviation == teamSelect">
|
|
22
|
-
<template v-if="game.home_match_result == 1">Ganado</template>
|
|
23
|
-
<template v-if="game.home_match_result == 2">Perdido</template>
|
|
24
|
-
<template v-if="game.home_match_result == 3">Empatado</template>
|
|
25
|
-
</template>
|
|
26
|
-
<template v-if="game.away_team_abbreviation == teamSelect">
|
|
27
|
-
<template v-if="game.visiting_match_result == 1">Ganado</template>
|
|
28
|
-
<template v-if="game.visiting_match_result == 2">Perdido</template>
|
|
29
|
-
<template v-if="game.visiting_match_result == 3">Empatado</template>
|
|
30
|
-
</template>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
<script setup>
|
|
35
|
-
defineProps({
|
|
36
|
-
score: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: '2 - 3'
|
|
39
|
-
},
|
|
40
|
-
status: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: 'Ganado'
|
|
43
|
-
},
|
|
44
|
-
game: {
|
|
45
|
-
type: Object,
|
|
46
|
-
default: () => ({})
|
|
47
|
-
},
|
|
48
|
-
teamSelect: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: '1'
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
</script>
|
|
54
|
-
<style lang="scss" scoped>
|
|
55
|
-
.recent-item {
|
|
56
|
-
width: 200px;
|
|
57
|
-
max-width: 264px;
|
|
58
|
-
margin: auto;
|
|
59
|
-
&__team-info {
|
|
60
|
-
margin-bottom: 10px;
|
|
61
|
-
display: flex;
|
|
62
|
-
justify-content: space-between;
|
|
63
|
-
}
|
|
64
|
-
&__team {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
}
|
|
68
|
-
&__acronym {
|
|
69
|
-
color: rgba(255, 255, 255, 0.70);
|
|
70
|
-
font-family: Poppins, sans-serif;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
line-height: 20.065px; /* 143.322% */
|
|
74
|
-
letter-spacing: -0.14px;
|
|
75
|
-
}
|
|
76
|
-
&__score {
|
|
77
|
-
border-radius: 17.398px;
|
|
78
|
-
border: 0.5px solid #CBEE6B;
|
|
79
|
-
background: rgba(255, 255, 255, 0.10);
|
|
80
|
-
width: 70px;
|
|
81
|
-
height: 32px;
|
|
82
|
-
display: flex;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
align-items: center;
|
|
85
|
-
color: #FFF;
|
|
86
|
-
text-align: center;
|
|
87
|
-
font-family: Inter, sans-serif;
|
|
88
|
-
font-size: 15.223px;
|
|
89
|
-
font-style: normal;
|
|
90
|
-
font-weight: 600;
|
|
91
|
-
line-height: normal;
|
|
92
|
-
}
|
|
93
|
-
img {
|
|
94
|
-
height: 29px;
|
|
95
|
-
width: 29px;
|
|
96
|
-
margin: 0 5px 0 0;
|
|
97
|
-
}
|
|
98
|
-
.left {
|
|
99
|
-
margin: 0 0 0 5px;
|
|
100
|
-
}
|
|
101
|
-
&__status {
|
|
102
|
-
margin: auto;
|
|
103
|
-
color: rgba(255, 255, 255, 0.70);
|
|
104
|
-
text-align: center;
|
|
105
|
-
font-family: Poppins, sans-serif;
|
|
106
|
-
font-size: 12px;
|
|
107
|
-
font-style: normal;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="recent-item">
|
|
3
|
+
<div class="recent-item__team-info">
|
|
4
|
+
<div class="recent-item__team">
|
|
5
|
+
<div class="recent-item__acronym">
|
|
6
|
+
{{ game.home_team_abbreviation }}
|
|
7
|
+
</div>
|
|
8
|
+
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png'" class="left">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="recent-item__score">
|
|
11
|
+
{{ game.score[0]}} - {{ game.score[4] }}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="recent-item__team">
|
|
14
|
+
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png'">
|
|
15
|
+
<div class="recent-item__acronym">
|
|
16
|
+
{{ game.away_team_abbreviation }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="recent-item__status">
|
|
21
|
+
<template v-if="game.home_team_abbreviation == teamSelect">
|
|
22
|
+
<template v-if="game.home_match_result == 1">Ganado</template>
|
|
23
|
+
<template v-if="game.home_match_result == 2">Perdido</template>
|
|
24
|
+
<template v-if="game.home_match_result == 3">Empatado</template>
|
|
25
|
+
</template>
|
|
26
|
+
<template v-if="game.away_team_abbreviation == teamSelect">
|
|
27
|
+
<template v-if="game.visiting_match_result == 1">Ganado</template>
|
|
28
|
+
<template v-if="game.visiting_match_result == 2">Perdido</template>
|
|
29
|
+
<template v-if="game.visiting_match_result == 3">Empatado</template>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script setup>
|
|
35
|
+
defineProps({
|
|
36
|
+
score: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: '2 - 3'
|
|
39
|
+
},
|
|
40
|
+
status: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: 'Ganado'
|
|
43
|
+
},
|
|
44
|
+
game: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: () => ({})
|
|
47
|
+
},
|
|
48
|
+
teamSelect: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: '1'
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
</script>
|
|
54
|
+
<style lang="scss" scoped>
|
|
55
|
+
.recent-item {
|
|
56
|
+
width: 200px;
|
|
57
|
+
max-width: 264px;
|
|
58
|
+
margin: auto;
|
|
59
|
+
&__team-info {
|
|
60
|
+
margin-bottom: 10px;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
}
|
|
64
|
+
&__team {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
}
|
|
68
|
+
&__acronym {
|
|
69
|
+
color: rgba(255, 255, 255, 0.70);
|
|
70
|
+
font-family: Poppins, sans-serif;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
line-height: 20.065px; /* 143.322% */
|
|
74
|
+
letter-spacing: -0.14px;
|
|
75
|
+
}
|
|
76
|
+
&__score {
|
|
77
|
+
border-radius: 17.398px;
|
|
78
|
+
border: 0.5px solid #CBEE6B;
|
|
79
|
+
background: rgba(255, 255, 255, 0.10);
|
|
80
|
+
width: 70px;
|
|
81
|
+
height: 32px;
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
color: #FFF;
|
|
86
|
+
text-align: center;
|
|
87
|
+
font-family: Inter, sans-serif;
|
|
88
|
+
font-size: 15.223px;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
line-height: normal;
|
|
92
|
+
}
|
|
93
|
+
img {
|
|
94
|
+
height: 29px;
|
|
95
|
+
width: 29px;
|
|
96
|
+
margin: 0 5px 0 0;
|
|
97
|
+
}
|
|
98
|
+
.left {
|
|
99
|
+
margin: 0 0 0 5px;
|
|
100
|
+
}
|
|
101
|
+
&__status {
|
|
102
|
+
margin: auto;
|
|
103
|
+
color: rgba(255, 255, 255, 0.70);
|
|
104
|
+
text-align: center;
|
|
105
|
+
font-family: Poppins, sans-serif;
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
font-style: normal;
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
111
|
</style>
|