@dcrackel/meyersquaredui 1.0.169 → 1.0.171
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/dist/meyersquaredui.es.js +895 -962
- package/dist/meyersquaredui.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/mocks/getDEWithBouts.js +1556 -414
- package/src/mocks/getDEWithBouts2.js +1658 -320
- package/src/stories/Organisms/Cards/TournamentListCard/TournamentListCard.vue +4 -0
- package/src/stories/Organisms/Headers/TournamentHeader/TournamentHeader.stories.js +1 -1
- package/src/stories/Organisms/Headers/TournamentHeader/TournamentHeader.vue +1 -0
- package/src/stories/Organisms/Tableau/Tableau.stories.js +2 -2
- package/src/stories/Organisms/Tableau/Tableau.vue +1 -1
- package/src/stories/Organisms/Tableau/TableauActiveBoutCard/SpacingConfig.js +1 -1
- package/src/stories/Organisms/Tableau/TableauBoutCard/SpacingConfig.js +8 -37
- package/src/stories/Organisms/Tableau/TableauBoutCard/TableauBoutCard.vue +8 -8
- package/src/stories/Organisms/Tableau/TableauFencerCard/TableauFencerCard.vue +2 -2
- package/src/stories/Organisms/Tableau/TableauLines/SpacingConfig.js +3 -36
- package/src/stories/Organisms/Tableau/TableauLines/TableauLines.vue +7 -1
|
@@ -78,6 +78,9 @@ export default {
|
|
|
78
78
|
type: Object,
|
|
79
79
|
required: true,
|
|
80
80
|
},
|
|
81
|
+
index: {
|
|
82
|
+
type: Number
|
|
83
|
+
},
|
|
81
84
|
isLoading: {
|
|
82
85
|
type: Boolean,
|
|
83
86
|
default: false,
|
|
@@ -109,6 +112,7 @@ export default {
|
|
|
109
112
|
return this.data.TotalParticipants || 0;
|
|
110
113
|
},
|
|
111
114
|
},
|
|
115
|
+
emits: ['toggle-bookmark', 'grid-card-click'],
|
|
112
116
|
methods: {
|
|
113
117
|
toggleBookmark() {
|
|
114
118
|
this.$emit('toggle-bookmark', !this.isBookmarked);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Tableau from './Tableau.vue';
|
|
2
|
-
|
|
3
|
-
import getDEWithBouts from '../../../mocks/getDEWithBouts2.js';
|
|
2
|
+
import getDEWithBouts from '../../../mocks/getDEWithBouts.js';
|
|
3
|
+
//import getDEWithBouts from '../../../mocks/getDEWithBouts2.js';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Organisms/Tableau',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="w-full overflow-x-auto mt-4 scrollbar-thin">
|
|
3
|
-
<div class="min-w-
|
|
3
|
+
<div class="min-w-[1300px] flex justify-center">
|
|
4
4
|
<div v-for="(bouts, roundName) in groupedBouts" :key="roundName">
|
|
5
5
|
<TableauColumn :bouts="bouts"
|
|
6
6
|
:hostingClubColors="hostingClubColors"
|
|
@@ -20,7 +20,7 @@ export const SpacingConfig = {
|
|
|
20
20
|
},
|
|
21
21
|
small: {
|
|
22
22
|
'Table of 8': { topSpace: 'mt-0 mb-4', leftLine: 'h-0', timeBox: '-right-[35px]', gap: 0},
|
|
23
|
-
Semifinal: { topSpace: 'mt-[0.7rem] mb-[1.8rem]', leftLine: 'h-[56px] mt-[19px] -ml-[
|
|
23
|
+
Semifinal: { topSpace: 'mt-[0.7rem] mb-[1.8rem]', leftLine: 'h-[56px] mt-[19px] -ml-[1px]', timeBox: '-right-[35px]', gap: 32,},
|
|
24
24
|
Final: { topSpace: 'mt-[6rem] ml-4', leftLine: 'h-0', timeBox: '-right-[35px] top-[53px]',gap: 32,},
|
|
25
25
|
'Third Place': { topSpace: '-mt-8 -ml-40', leftLine: 'h-0', timeBox: '-right-[35px] top-[69px]',gap: 0,}
|
|
26
26
|
}
|
|
@@ -13,13 +13,10 @@ export const SpacingConfig = {
|
|
|
13
13
|
},
|
|
14
14
|
'Table of 8': {
|
|
15
15
|
large: {
|
|
16
|
-
'Table of 8': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
17
|
-
Semifinal: { getTopSpace: 'mt-[1.34rem] mb-[3.4rem]', getCardSpace: 'mt-[4.5rem]' },
|
|
18
|
-
Final: { getTopSpace: 'mt-[11rem]', getCardSpace: 'mt-1' },
|
|
19
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[19.2rem]', getCardSpace: 'mt-1' },
|
|
20
16
|
},
|
|
21
17
|
small: {
|
|
22
18
|
'Table of 8': { getTopSpace: 'mt-[0rem] mb-4', getCardSpace: 'mt-1' },
|
|
19
|
+
Quarterfinal: { getTopSpace: 'mt-[0.7rem] mb-[1.75rem]', getCardSpace: 'mt-[2.3rem]' },
|
|
23
20
|
Semifinal: { getTopSpace: 'mt-[0.7rem] mb-[1.8rem]', getCardSpace: 'mt-[2.3rem]' },
|
|
24
21
|
Final: { getTopSpace: 'mt-[6rem] ml-4', getCardSpace: 'mt-1' },
|
|
25
22
|
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[10rem]', getCardSpace: 'mt-1' },
|
|
@@ -27,47 +24,29 @@ export const SpacingConfig = {
|
|
|
27
24
|
},
|
|
28
25
|
'Table of 16': {
|
|
29
26
|
large: {
|
|
30
|
-
'Table of 16': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
31
|
-
'Table of 8': { getTopSpace: 'mt-[1.34rem] mb-[3.4rem]', getCardSpace: 'mt-[4.5rem]' },
|
|
32
|
-
Semifinal: { getTopSpace: 'mt-[4.6rem] mb-[7rem]', getCardSpace: 'mt-[11.5rem]' },
|
|
33
|
-
Final: { getTopSpace: 'mt-[22.5rem]', getCardSpace: 'mt-1' },
|
|
34
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[19.2rem]', getCardSpace: 'mt-1' },
|
|
35
27
|
},
|
|
36
28
|
small: {
|
|
37
29
|
'Table of 16': { getTopSpace: 'mt-[0rem] mb-4', getCardSpace: 'mt-1' },
|
|
38
30
|
'Table of 8': { getTopSpace: 'mt-[0.7rem] mb-[1.75rem]', getCardSpace: 'mt-[2.3rem]' },
|
|
39
31
|
Semifinal: { getTopSpace: 'mt-[2.25rem] mb-[3.63rem]', getCardSpace: 'mt-[5.9rem]' },
|
|
40
|
-
Final: { getTopSpace: 'mt-[12.
|
|
41
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[
|
|
32
|
+
Final: { getTopSpace: 'mt-[12.5rem]', getCardSpace: 'mt-1' },
|
|
33
|
+
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[10rem]', getCardSpace: 'mt-1' },
|
|
42
34
|
}
|
|
43
35
|
},
|
|
44
36
|
'Table of 32': {
|
|
45
37
|
large: {
|
|
46
|
-
'Table of 32': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
47
|
-
'Table of 16': { getTopSpace: 'mt-[1.34rem] mb-[3.4rem]', getCardSpace: 'mt-[4.5rem]' },
|
|
48
|
-
'Table of 8': { getTopSpace: 'mt-[4.6rem] mb-[7.15rem]', getCardSpace: 'mt-[11.5rem]' },
|
|
49
|
-
Semifinal: { getTopSpace: 'mt-[11.7rem] mb-[14rem]', getCardSpace: 'mt-[25.5rem]' },
|
|
50
|
-
Final: { getTopSpace: 'mt-[51.5rem] ', getCardSpace: 'mt-1' },
|
|
51
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[19.2rem]', getCardSpace: 'mt-1' },
|
|
52
38
|
},
|
|
53
39
|
small: {
|
|
54
|
-
'Table of 32': { getTopSpace: 'mt-[0rem] mb-
|
|
55
|
-
'Table of 16': { getTopSpace: 'mt-[0.7rem] mb-[
|
|
56
|
-
'Table of 8': { getTopSpace: 'mt-[2.
|
|
57
|
-
Semifinal: { getTopSpace: 'mt-[
|
|
58
|
-
Final: { getTopSpace: 'mt-[
|
|
40
|
+
'Table of 32': { getTopSpace: 'mt-[0rem] mb-4', getCardSpace: 'mt-1' },
|
|
41
|
+
'Table of 16': { getTopSpace: 'mt-[0.7rem] mb-[1.76rem]', getCardSpace: 'mt-[2.3rem]' },
|
|
42
|
+
'Table of 8': { getTopSpace: 'mt-[2.4rem] mb-[3.45rem]', getCardSpace: 'mt-[5.9rem]' },
|
|
43
|
+
Semifinal: { getTopSpace: 'mt-[5.5rem] mb-[7.5rem]', getCardSpace: 'mt-[12.8rem]' },
|
|
44
|
+
Final: { getTopSpace: 'mt-[26rem]', getCardSpace: 'mt-1' },
|
|
59
45
|
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[11rem]', getCardSpace: 'mt-1' },
|
|
60
46
|
}
|
|
61
47
|
},
|
|
62
48
|
'Table of 64': {
|
|
63
49
|
large: {
|
|
64
|
-
'Table of 64': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
65
|
-
'Table of 32': { getTopSpace: 'mt-[1.34rem] mb-[3.4rem]', getCardSpace: 'mt-[4.5rem]' },
|
|
66
|
-
'Table of 16': { getTopSpace: 'mt-[4.6rem] mb-[7.15rem]', getCardSpace: 'mt-[11.5rem]' },
|
|
67
|
-
'Table of 8': { getTopSpace: 'mt-[11.7rem] mb-[13.78rem]', getCardSpace: 'mt-[25.76rem]' },
|
|
68
|
-
Semifinal: { getTopSpace: 'mt-[24.45rem] mb-[29rem]', getCardSpace: 'mt-[53.6rem]' },
|
|
69
|
-
Final: { getTopSpace: 'mt-[223rem] ', getCardSpace: 'mt-1' },
|
|
70
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[19.2rem]', getCardSpace: 'mt-1' },
|
|
71
50
|
},
|
|
72
51
|
small: {
|
|
73
52
|
'Table of 64': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
@@ -81,14 +60,6 @@ export const SpacingConfig = {
|
|
|
81
60
|
},
|
|
82
61
|
'Table of 128': {
|
|
83
62
|
large: {
|
|
84
|
-
'Table of 128': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
85
|
-
'Table of 64': { getTopSpace: 'mt-[1.34rem] mb-[3.4rem]', getCardSpace: 'mt-[4.5rem]' },
|
|
86
|
-
'Table of 32': { getTopSpace: 'mt-[4.6rem] mb-[7.15rem]', getCardSpace: 'mt-[11.5rem]' },
|
|
87
|
-
'Table of 16': { getTopSpace: 'mt-[11.7rem] mb-[13.78rem]', getCardSpace: 'mt-[25.76rem]' },
|
|
88
|
-
'Table of 8': { getTopSpace: 'mt-[24.45rem] mb-[29rem]', getCardSpace: 'mt-[53.6rem]' },
|
|
89
|
-
Semifinal: { getTopSpace: 'mt-[47.5rem] mb-[62rem]', getCardSpace: 'mt-[109.5rem]' },
|
|
90
|
-
Final: { getTopSpace: 'mt-[223rem] ', getCardSpace: 'mt-1' },
|
|
91
|
-
'Third Place': { getTopSpace: '-mt-[2rem] -ml-[19.2rem]', getCardSpace: 'mt-1' },
|
|
92
63
|
},
|
|
93
64
|
small: {
|
|
94
65
|
'Table of 128': { getTopSpace: 'mt-[0rem] mb-[2rem]', getCardSpace: 'mt-1' },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<BaseText size="sm" color="quaternary">{{roundName}}</BaseText>
|
|
5
5
|
</div>
|
|
6
6
|
<div v-if="roundName === 'Final'" class="flex justify-center border-accent border-b mb-4 mt-0" :class="large ? 'w-72': 'w-40'">
|
|
7
|
-
<BaseText size="sm" color="quaternary">{{roundName}}</BaseText>
|
|
7
|
+
<BaseText size="sm" color="quaternary" weight="bold">{{roundName}}</BaseText>
|
|
8
8
|
</div>
|
|
9
9
|
<!-- Replacement headers for finals -->
|
|
10
10
|
<section>
|
|
@@ -132,29 +132,29 @@ export default {
|
|
|
132
132
|
},
|
|
133
133
|
getScoreColor(isPerson1) {
|
|
134
134
|
if (isPerson1) {
|
|
135
|
-
if (this.bout.Person2.DisplayName === 'BYE' && !((this.bout.Person1.DisplayName === 'BYE') && (this.bout.Person2.DisplayName === 'BYE'))) return 'bg-
|
|
135
|
+
if (this.bout.Person2.DisplayName === 'BYE' && !((this.bout.Person1.DisplayName === 'BYE') && (this.bout.Person2.DisplayName === 'BYE'))) return 'bg-accent'
|
|
136
136
|
|
|
137
137
|
if (this.bout.Score1 > this.bout.Score2) {
|
|
138
|
-
return 'bg-
|
|
138
|
+
return 'bg-accent';
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
if (this.bout.Score1 < this.bout.Score2 && this.bout.Status === 'Active') {
|
|
142
|
-
return 'bg-
|
|
142
|
+
return 'bg-secondary';
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
if (!isPerson1) {
|
|
147
|
-
if (this.bout.Person1.DisplayName === 'BYE' && !((this.bout.Person1.DisplayName === 'BYE') && (this.bout.Person2.DisplayName === 'BYE'))) return 'bg-
|
|
147
|
+
if (this.bout.Person1.DisplayName === 'BYE' && !((this.bout.Person1.DisplayName === 'BYE') && (this.bout.Person2.DisplayName === 'BYE'))) return 'bg-accent'
|
|
148
148
|
|
|
149
149
|
if (this.bout.Score1 < this.bout.Score2) {
|
|
150
|
-
return 'bg-
|
|
150
|
+
return 'bg-accent';
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (this.bout.Score1 > this.bout.Score2 && this.bout.Status === 'Active') {
|
|
154
|
-
return 'bg-
|
|
154
|
+
return 'bg-secondary';
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
return 'bg-
|
|
157
|
+
return 'bg-secondary';
|
|
158
158
|
},
|
|
159
159
|
}
|
|
160
160
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- TableauFencerCard.vue -->
|
|
2
2
|
<template>
|
|
3
|
-
<section class="bg-poolSetup flex rounded-sm bg-
|
|
3
|
+
<section class="bg-poolSetup flex rounded-sm bg-secondary border border-primary z-40 " :class="[width]">
|
|
4
4
|
<!-- Left position -->
|
|
5
5
|
<div class="text-center px-1 w-5 flex items-center justify-center z-40" :class="[`bg-${color}`]">
|
|
6
6
|
<BaseText size="xs" color="secondary font-sourceCodePro">{{position}}</BaseText>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<!-- Right position (Score) :class="scoreColor" -->
|
|
26
26
|
<div class="flex text-center w-5 items-center justify-center z-40 h-4" :class="scoreColor">
|
|
27
|
-
<div :class="scoreColor === 'bg-primary' ? '' : 'block border-l border-primary w-5
|
|
27
|
+
<div :class="scoreColor === 'bg-primary' ? 'w-5' : 'block border-l border-primary w-5'">
|
|
28
28
|
<BaseText size="xs" v-if="showScore" :color="scoreColor === 'bg-primary' ? 'white' : 'primary'" class="font-sourceCodePro">{{score}}</BaseText>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
export const SpacingConfig = {
|
|
3
3
|
'Semifinal': {
|
|
4
4
|
'large': {
|
|
5
|
-
Semifinal: { getTopSpace: 'mt-0', getConnectorHeight: 'h-[3rem]', getTopSpaceForLine: 'mt-[1.5rem]' },
|
|
6
|
-
Final: { getTopSpace: 'h-[8.5rem] mt-[5rem] -ml-[309px]', getBottomLine: 'h-[6.7rem] mt-[2.5rem] -ml-[309px]' },
|
|
7
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
8
5
|
},
|
|
9
6
|
'small': {
|
|
10
7
|
Semifinal: { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[3.5rem]', getTopSpaceForLine: 'mt-[1.6rem]' },
|
|
@@ -14,10 +11,6 @@ export const SpacingConfig = {
|
|
|
14
11
|
},
|
|
15
12
|
'Table of 8': {
|
|
16
13
|
'large': {
|
|
17
|
-
'Table of 8': { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[2.7rem]', getTopSpaceForLine: 'mt-[1.2rem]' },
|
|
18
|
-
Semifinal: { getTopSpace: 'mt-[2.5rem]', getConnectorHeight: 'h-[7rem]', getTopSpaceForLine: 'mt-[3.25rem]' },
|
|
19
|
-
Final: { getTopSpace: 'h-[6rem] mt-[22rem] -ml-[309px]', getBottomLine: 'h-[6rem] mt-[2.5rem] -ml-[309px]' },
|
|
20
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
21
14
|
},
|
|
22
15
|
'small': {
|
|
23
16
|
'Table of 8': { getTopSpace: '-mt-[0.6rem]', getConnectorHeight: 'h-[1.5rem]', getTopSpaceForLine: 'mt-[0.6rem]' },
|
|
@@ -28,11 +21,6 @@ export const SpacingConfig = {
|
|
|
28
21
|
},
|
|
29
22
|
'Table of 16': {
|
|
30
23
|
large: {
|
|
31
|
-
'Table of 16': { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[2.7rem]', getTopSpaceForLine: 'mt-[1.2rem]' },
|
|
32
|
-
'Table of 8': { getTopSpace: 'mt-[1.3rem]', getConnectorHeight: 'h-[7rem]', getTopSpaceForLine: 'mt-[3.25rem]' },
|
|
33
|
-
Semifinal: { getTopSpace: 'mt-[5.8rem]', getConnectorHeight: 'h-[14rem]', getTopSpaceForLine: 'mt-[7rem]' },
|
|
34
|
-
Final: { getTopSpace: 'mt-[14rem] h-[12rem] -ml-[309px]', getBottomLine: 'h-[12rem] mt-[2.5rem] -ml-[309px]' },
|
|
35
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
36
24
|
},
|
|
37
25
|
small: {
|
|
38
26
|
'Table of 16': { getTopSpace: '-mt-[0.6rem]', getConnectorHeight: 'h-[1.5rem]', getTopSpaceForLine: 'mt-[0.6rem]' },
|
|
@@ -44,31 +32,18 @@ export const SpacingConfig = {
|
|
|
44
32
|
},
|
|
45
33
|
'Table of 32': {
|
|
46
34
|
large: {
|
|
47
|
-
'Table of 32': { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[2.7rem]', getTopSpaceForLine: 'mt-[1.2rem]' },
|
|
48
|
-
'Table of 16': { getTopSpace: 'mt-[1.3rem]', getConnectorHeight: 'h-[7rem]', getTopSpaceForLine: 'mt-[3.25rem]' },
|
|
49
|
-
'Table of 8': { getTopSpace: 'mt-[4.7rem]', getConnectorHeight: 'h-[14rem]', getTopSpaceForLine: 'mt-[7rem]' },
|
|
50
|
-
Semifinal: { getTopSpace: 'mt-[12.8rem]', getConnectorHeight: 'h-[28rem]', getTopSpaceForLine: 'mt-[7rem]' },
|
|
51
|
-
Final: { getTopSpace: 'h-[25.1rem] mt-[30.1rem] -ml-[309px]', getBottomLine: 'h-[25.1rem] mt-[2.5rem] -ml-[309px]' },
|
|
52
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
53
35
|
},
|
|
54
36
|
small: {
|
|
55
37
|
'Table of 32': { getTopSpace: '-mt-[0.6rem]', getConnectorHeight: 'h-[1.5rem]', getTopSpaceForLine: 'mt-[0.65rem]' },
|
|
56
|
-
'Table of 16': { getTopSpace: '-mt-[0rem]', getConnectorHeight: 'h-[
|
|
57
|
-
'Table of 8': { getTopSpace: 'mt-[
|
|
58
|
-
Semifinal: { getTopSpace: 'mt-[
|
|
38
|
+
'Table of 16': { getTopSpace: '-mt-[0rem]', getConnectorHeight: 'h-[3.6rem]', getTopSpaceForLine: 'mt-[1.7rem]' },
|
|
39
|
+
'Table of 8': { getTopSpace: 'mt-[1.8rem]', getConnectorHeight: 'h-[7.1rem]', getTopSpaceForLine: 'mt-[3rem]' },
|
|
40
|
+
Semifinal: { getTopSpace: 'mt-[6rem]', getConnectorHeight: 'h-[14rem]', getTopSpaceForLine: 'mt-[3.8rem]' },
|
|
59
41
|
Final: { getTopSpace: 'h-[12.6rem] mt-[24.4rem] -ml-[181px]', getBottomLine: 'h-[8rem] mt-[1.4rem] -ml-[181px]' },
|
|
60
42
|
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
61
43
|
}
|
|
62
44
|
},
|
|
63
45
|
'Table of 64': {
|
|
64
46
|
large: {
|
|
65
|
-
'Table of 64': { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[2.7rem]', getTopSpaceForLine: 'mt-[1.2rem]' },
|
|
66
|
-
'Table of 32': { getTopSpace: 'mt-[1.3rem]', getConnectorHeight: 'h-[7rem]', getTopSpaceForLine: 'mt-[3.25rem]' },
|
|
67
|
-
'Table of 16': { getTopSpace: 'mt-[4.7rem]', getConnectorHeight: 'h-[14rem]', getTopSpaceForLine: 'mt-[7rem]' },
|
|
68
|
-
'Table of 8': { getTopSpace: 'mt-[11.7rem]', getConnectorHeight: 'h-[28rem]', getTopSpaceForLine: 'mt-[12.5rem]' },
|
|
69
|
-
Semifinal: { getTopSpace: 'mt-[25.5rem]', getConnectorHeight: 'h-[56rem]', getTopSpaceForLine: 'mt-[23rem]' },
|
|
70
|
-
Final: { getTopSpace: 'mt-[148.5rem] h-[81rem] -ml-[309px]', getBottomLine: 'h-[80rem] mt-[2.5rem] -ml-[309px]' },
|
|
71
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
72
47
|
},
|
|
73
48
|
small: {
|
|
74
49
|
'Table of 64': { getTopSpace: '-mt-[0.6rem]', getConnectorHeight: 'h-[1.5rem]', getTopSpaceForLine: 'mt-[0.65rem]' },
|
|
@@ -82,14 +57,6 @@ export const SpacingConfig = {
|
|
|
82
57
|
},
|
|
83
58
|
'Table of 128': {
|
|
84
59
|
large: {
|
|
85
|
-
'Table of 128': { getTopSpace: 'mt-[0rem]', getConnectorHeight: 'h-[2.7rem]', getTopSpaceForLine: 'mt-[1.2rem]' },
|
|
86
|
-
'Table of 64': { getTopSpace: 'mt-[1.3rem]', getConnectorHeight: 'h-[7rem]', getTopSpaceForLine: 'mt-[3.25rem]' },
|
|
87
|
-
'Table of 32': { getTopSpace: 'mt-[4.7rem]', getConnectorHeight: 'h-[14rem]', getTopSpaceForLine: 'mt-[7rem]' },
|
|
88
|
-
'Table of 16': { getTopSpace: 'mt-[11.7rem]', getConnectorHeight: 'h-[28rem]', getTopSpaceForLine: 'mt-[12.5rem]' },
|
|
89
|
-
'Table of 8': { getTopSpace: 'mt-[24.5rem]', getConnectorHeight: 'h-[56rem]', getTopSpaceForLine: 'mt-[23rem]' },
|
|
90
|
-
Semifinal: { getTopSpace: 'mt-[48.7rem]', getConnectorHeight: 'h-[112rem]', getTopSpaceForLine: '' },
|
|
91
|
-
Final: { getTopSpace: 'mt-[146.5rem] h-[80rem] -ml-[309px]', getBottomLine: 'h-[80rem] mt-[2.5rem] -ml-[309px]' },
|
|
92
|
-
'Third Place': { getTopSpace: 'hidden', getConnectorHeight: 'hidden', getTopSpaceForLine: 'hidden' },
|
|
93
60
|
},
|
|
94
61
|
small: {
|
|
95
62
|
'Table of 128': { getTopSpace: '-mt-[0.6rem]', getConnectorHeight: 'h-[1.5rem]', getTopSpaceForLine: 'mt-[0.65rem]' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section v-if="roundName !== 'Semifinal' && roundName !== 'Final'" class="flex z-0" :class="getTopSpace">
|
|
3
|
-
<div class="mt-[1.1rem]">
|
|
3
|
+
<div class="flex flex-col mt-[1.1rem]">
|
|
4
4
|
<div class="border-primary border-t border-b border-r w-5 rounded-sm -ml-[0.3rem] z-0" :class="[getConnectorHeight, opacity]"></div>
|
|
5
5
|
</div>
|
|
6
6
|
<div :class="getTopSpaceForLine">
|
|
@@ -81,3 +81,9 @@ export default {
|
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
83
|
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped>
|
|
86
|
+
.split-border {
|
|
87
|
+
border-color: blue red; /* Top/bottom is blue, left/right is red */
|
|
88
|
+
}
|
|
89
|
+
</style>
|