@dcrackel/meyersquaredui 1.0.36 → 1.0.38
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 +343 -219
- package/dist/meyersquaredui.umd.js +1 -0
- package/dist/style.css +1 -1
- package/package.json +8 -2
- package/src/assets/fonts/Raleway-Thin.ttf +0 -0
- package/src/assets/images/portrait1.png +0 -0
- package/src/mocks/getArticles.js +19 -0
- package/src/mocks/getTopFencers.js +157 -0
- package/src/mocks/getTournamentsMock.js +185 -0
- package/src/stories/Atoms/BaseButton/BaseButton.stories.js +35 -32
- package/src/stories/Atoms/BaseButton/BaseButton.vue +66 -4
- package/src/stories/Atoms/BaseText/BaseText.vue +25 -8
- package/src/stories/Atoms/Icon/Icon.vue +6 -1
- package/src/stories/Organisms/Cards/ArticleCard/ArticleCard.stories.js +25 -0
- package/src/stories/Organisms/Cards/ArticleCard/ArticleCard.vue +48 -0
- package/src/stories/Organisms/Cards/FencerCard/FencerCard.stories.js +48 -0
- package/src/stories/Organisms/Cards/FencerCard/FencerCard.vue +69 -0
- package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.stories.js +24 -0
- package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.vue +121 -0
- package/src/stories/Organisms/Footer/Foot.stories.js +11 -0
- package/src/stories/Organisms/Footer/Footer.vue +94 -0
- package/src/stories/Organisms/GridLayout/GridLayout.stories.js +148 -0
- package/src/stories/Organisms/GridLayout/GridLayout.vue +98 -0
- package/src/stories/Organisms/Headers/Header.stories.js +1 -1
- package/src/stories/Organisms/Headers/Header.vue +5 -6
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.vue +52 -25
- package/src/stories/Organisms/SectionBanners/DoubleButtonBanner/DoubleButtonBanner.stories.js +28 -0
- package/src/stories/Organisms/SectionBanners/DoubleButtonBanner/DoubleButtonBanner.vue +118 -0
- package/src/stories/Organisms/SectionBanners/SingleButtonBanner/SingleButtonBanner.stories.js +35 -0
- package/src/stories/Organisms/SectionBanners/SingleButtonBanner/SingleButtonBanner.vue +48 -0
- package/src/stories/Templates/HomePage/TestPage.stories.js +7 -2
- package/src/stories/Templates/HomePage/TestPage.vue +73 -1
- package/dist/meyersquaredui.cjs.js +0 -1
- package/src/components/HelloWorld.vue +0 -43
|
@@ -1,77 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
name: "BaseButton",
|
|
9
|
-
props: {
|
|
10
|
-
label: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
altText: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: null
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "primary",
|
|
21
|
-
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
22
|
-
},
|
|
23
|
-
backgroundColor: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "primary",
|
|
26
|
-
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
27
|
-
},
|
|
28
|
-
border: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "none",
|
|
31
|
-
validator: (e) => ["none", "primary", "secondary", "accent", "gradient1", "gradient2"].includes(e)
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
computed: {
|
|
35
|
-
textColorClass() {
|
|
36
|
-
return {
|
|
37
|
-
primary: "text-primary",
|
|
38
|
-
secondary: "text-secondary",
|
|
39
|
-
accent: "text-accent"
|
|
40
|
-
}[this.color] || "text-primary";
|
|
41
|
-
},
|
|
42
|
-
backgroundClass() {
|
|
43
|
-
return {
|
|
44
|
-
primary: "bg-primary hover:bg-accent",
|
|
45
|
-
secondary: "bg-secondary hover:bg-accent",
|
|
46
|
-
accent: "bg-accent hover:bg-accent"
|
|
47
|
-
}[this.backgroundColor] || "bg-primary";
|
|
48
|
-
},
|
|
49
|
-
borderClass() {
|
|
50
|
-
return {
|
|
51
|
-
none: "",
|
|
52
|
-
primary: "border border-primary",
|
|
53
|
-
secondary: "border border-secondary",
|
|
54
|
-
accent: "border border-accent",
|
|
55
|
-
gradient1: "border-gradient-rounded-1",
|
|
56
|
-
gradient2: "border-gradient-rounded-2"
|
|
57
|
-
}[this.border] || "";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, z = ["title", "aria-label"];
|
|
61
|
-
function G(e, t, r, d, n, s) {
|
|
62
|
-
return b(), x("button", {
|
|
63
|
-
class: f([
|
|
64
|
-
"px-4 py-2 rounded-md transition duration-300 ease-in-out",
|
|
65
|
-
s.textColorClass,
|
|
66
|
-
s.backgroundClass,
|
|
67
|
-
s.borderClass
|
|
68
|
-
]),
|
|
69
|
-
title: r.altText || r.label,
|
|
70
|
-
"aria-label": r.altText || r.label,
|
|
71
|
-
onClick: t[0] || (t[0] = (a) => e.$emit("click"))
|
|
72
|
-
}, g(r.label), 11, z);
|
|
73
|
-
}
|
|
74
|
-
const h = /* @__PURE__ */ p(j, [["render", G], ["__scopeId", "data-v-34e83e90"]]), V = {
|
|
1
|
+
import { openBlock as p, createBlock as A, resolveDynamicComponent as k, normalizeClass as x, withCtx as c, renderSlot as z, createElementBlock as b, resolveComponent as d, createElementVNode as o, createVNode as s, createTextVNode as m, toDisplayString as y, mergeProps as B, Fragment as j, normalizeStyle as _, createCommentVNode as w } from "vue";
|
|
2
|
+
const g = (e, r) => {
|
|
3
|
+
const t = e.__vccOpts || e;
|
|
4
|
+
for (const [u, l] of r)
|
|
5
|
+
t[u] = l;
|
|
6
|
+
return t;
|
|
7
|
+
}, G = {
|
|
75
8
|
name: "BaseText",
|
|
76
9
|
props: {
|
|
77
10
|
tag: {
|
|
@@ -81,17 +14,20 @@ const h = /* @__PURE__ */ p(j, [["render", G], ["__scopeId", "data-v-34e83e90"]]
|
|
|
81
14
|
},
|
|
82
15
|
size: {
|
|
83
16
|
type: String,
|
|
84
|
-
default: "md"
|
|
85
|
-
validator: (e) => ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl"].includes(e)
|
|
17
|
+
default: "md"
|
|
86
18
|
},
|
|
87
19
|
color: {
|
|
88
20
|
type: String,
|
|
89
21
|
default: "primary"
|
|
90
22
|
},
|
|
23
|
+
hoverColor: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
91
27
|
weight: {
|
|
92
28
|
type: String,
|
|
93
29
|
default: "normal",
|
|
94
|
-
validator: (e) => ["light", "normal", "semibold", "bold"].includes(e)
|
|
30
|
+
validator: (e) => ["thin", "light", "normal", "semibold", "bold"].includes(e)
|
|
95
31
|
}
|
|
96
32
|
},
|
|
97
33
|
computed: {
|
|
@@ -106,27 +42,31 @@ const h = /* @__PURE__ */ p(j, [["render", G], ["__scopeId", "data-v-34e83e90"]]
|
|
|
106
42
|
"3xl": "text-3xl",
|
|
107
43
|
"4xl": "text-4xl",
|
|
108
44
|
"5xl": "text-5xl"
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
45
|
+
}, r = {
|
|
46
|
+
thin: "font-thin font-[100]",
|
|
47
|
+
light: "font-light font-[300]",
|
|
48
|
+
normal: "font-normal font-[400]",
|
|
49
|
+
semibold: "font-semibold font-[600]",
|
|
50
|
+
bold: "font-bold font-[700]"
|
|
51
|
+
}, t = this.hoverColor ? `hover:text-${this.hoverColor}` : "";
|
|
52
|
+
return `${this.size.split(" ").map((l) => {
|
|
53
|
+
const [n, a] = l.includes(":") ? l.split(":") : [null, l];
|
|
54
|
+
return n ? `${n}:${e[a]}` : e[a];
|
|
55
|
+
}).filter(Boolean).join(" ")} ${r[this.weight]} text-${this.color} ${t} font-raleway`;
|
|
116
56
|
}
|
|
117
57
|
}
|
|
118
58
|
};
|
|
119
|
-
function
|
|
120
|
-
return
|
|
121
|
-
class:
|
|
59
|
+
function I(e, r, t, u, l, n) {
|
|
60
|
+
return p(), A(k(t.tag), {
|
|
61
|
+
class: x(n.textClasses)
|
|
122
62
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
63
|
+
default: c(() => [
|
|
64
|
+
z(e.$slots, "default")
|
|
125
65
|
]),
|
|
126
66
|
_: 3
|
|
127
67
|
}, 8, ["class"]);
|
|
128
68
|
}
|
|
129
|
-
const
|
|
69
|
+
const h = /* @__PURE__ */ g(G, [["render", I]]), V = {
|
|
130
70
|
name: "Icon",
|
|
131
71
|
props: {
|
|
132
72
|
icon: {
|
|
@@ -142,6 +82,11 @@ const v = /* @__PURE__ */ p(V, [["render", X]]), Z = {
|
|
|
142
82
|
type: String,
|
|
143
83
|
default: "md",
|
|
144
84
|
validator: (e) => ["xs", "sm", "md", "lg", "xl", "2xl", "3xl"].includes(e)
|
|
85
|
+
},
|
|
86
|
+
type: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "fa-solid",
|
|
89
|
+
validator: (e) => ["fa-thin", "fa-sharp"].includes(e)
|
|
145
90
|
}
|
|
146
91
|
},
|
|
147
92
|
computed: {
|
|
@@ -165,13 +110,160 @@ const v = /* @__PURE__ */ p(V, [["render", X]]), Z = {
|
|
|
165
110
|
}
|
|
166
111
|
}
|
|
167
112
|
};
|
|
168
|
-
function
|
|
169
|
-
return
|
|
170
|
-
class:
|
|
171
|
-
onClick:
|
|
113
|
+
function N(e, r, t, u, l, n) {
|
|
114
|
+
return p(), b("i", {
|
|
115
|
+
class: x([t.type, t.icon, n.colorClasses, n.sizeClasses]),
|
|
116
|
+
onClick: r[0] || (r[0] = (a) => e.$emit("click"))
|
|
172
117
|
}, null, 2);
|
|
173
118
|
}
|
|
174
|
-
const
|
|
119
|
+
const v = /* @__PURE__ */ g(V, [["render", N]]), T = {
|
|
120
|
+
name: "BaseButton",
|
|
121
|
+
components: {
|
|
122
|
+
BaseText: h,
|
|
123
|
+
Icon: v
|
|
124
|
+
},
|
|
125
|
+
props: {
|
|
126
|
+
label: {
|
|
127
|
+
type: String,
|
|
128
|
+
required: !0
|
|
129
|
+
},
|
|
130
|
+
altText: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: null
|
|
133
|
+
},
|
|
134
|
+
size: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: "md"
|
|
137
|
+
},
|
|
138
|
+
weight: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: "normal"
|
|
141
|
+
},
|
|
142
|
+
color: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: "primary",
|
|
145
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
146
|
+
},
|
|
147
|
+
hoverColor: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: "",
|
|
150
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
151
|
+
},
|
|
152
|
+
backgroundColor: {
|
|
153
|
+
type: String,
|
|
154
|
+
default: "primary",
|
|
155
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
156
|
+
},
|
|
157
|
+
border: {
|
|
158
|
+
type: String,
|
|
159
|
+
default: "none",
|
|
160
|
+
validator: (e) => ["none", "primary", "secondary", "accent", "gradient1", "gradient2"].includes(e)
|
|
161
|
+
},
|
|
162
|
+
padding: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: "px-4 py-2"
|
|
165
|
+
},
|
|
166
|
+
iconName: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: ""
|
|
169
|
+
},
|
|
170
|
+
iconColor: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: "primary",
|
|
173
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
174
|
+
},
|
|
175
|
+
iconSize: {
|
|
176
|
+
control: { type: "select", options: ["xs", "sm", "md", "lg", "xl", "2xl", "3xl"] },
|
|
177
|
+
description: "Icon size"
|
|
178
|
+
},
|
|
179
|
+
iconType: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: "fa-solid",
|
|
182
|
+
validator: (e) => ["fa-thin", "fa-sharp"].includes(e)
|
|
183
|
+
},
|
|
184
|
+
align: {
|
|
185
|
+
type: String,
|
|
186
|
+
default: "center",
|
|
187
|
+
validator: (e) => ["left", "center", "right", "between"].includes(e)
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
computed: {
|
|
191
|
+
paddingClass() {
|
|
192
|
+
return this.padding;
|
|
193
|
+
},
|
|
194
|
+
textColorClass() {
|
|
195
|
+
return {
|
|
196
|
+
primary: "text-primary",
|
|
197
|
+
secondary: "text-secondary",
|
|
198
|
+
accent: "text-accent"
|
|
199
|
+
}[this.color] || "text-primary";
|
|
200
|
+
},
|
|
201
|
+
backgroundClass() {
|
|
202
|
+
return {
|
|
203
|
+
primary: "bg-primary hover:bg-accent",
|
|
204
|
+
secondary: "bg-secondary hover:bg-primary",
|
|
205
|
+
accent: "bg-accent hover:bg-accent"
|
|
206
|
+
}[this.backgroundColor] || "bg-primary";
|
|
207
|
+
},
|
|
208
|
+
borderClass() {
|
|
209
|
+
return {
|
|
210
|
+
none: "",
|
|
211
|
+
primary: "border border-primary",
|
|
212
|
+
secondary: "border border-secondary",
|
|
213
|
+
accent: "border border-accent",
|
|
214
|
+
gradient1: "border-gradient-rounded-1",
|
|
215
|
+
gradient2: "border-gradient-rounded-2"
|
|
216
|
+
}[this.border] || "";
|
|
217
|
+
},
|
|
218
|
+
alignmentClass() {
|
|
219
|
+
return {
|
|
220
|
+
left: "justify-start",
|
|
221
|
+
center: "justify-center",
|
|
222
|
+
right: "justify-end",
|
|
223
|
+
between: "justify-between"
|
|
224
|
+
// New "between" option added
|
|
225
|
+
}[this.align] || "justify-center";
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}, X = ["title", "aria-label"];
|
|
229
|
+
function Z(e, r, t, u, l, n) {
|
|
230
|
+
const a = d("BaseText"), i = d("Icon");
|
|
231
|
+
return p(), b("button", {
|
|
232
|
+
class: x([
|
|
233
|
+
"rounded-md transition duration-300 ease-in-out",
|
|
234
|
+
n.paddingClass,
|
|
235
|
+
n.textColorClass,
|
|
236
|
+
n.backgroundClass,
|
|
237
|
+
n.borderClass
|
|
238
|
+
]),
|
|
239
|
+
title: t.altText || t.label,
|
|
240
|
+
"aria-label": t.altText || t.label,
|
|
241
|
+
onClick: r[0] || (r[0] = (f) => e.$emit("click"))
|
|
242
|
+
}, [
|
|
243
|
+
o("div", {
|
|
244
|
+
class: x(["flex items-center", n.alignmentClass, "space-x-2"])
|
|
245
|
+
}, [
|
|
246
|
+
s(a, {
|
|
247
|
+
color: t.color,
|
|
248
|
+
hoverColor: t.hoverColor,
|
|
249
|
+
size: t.size,
|
|
250
|
+
weight: t.weight
|
|
251
|
+
}, {
|
|
252
|
+
default: c(() => [
|
|
253
|
+
m(y(t.label), 1)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["color", "hoverColor", "size", "weight"]),
|
|
257
|
+
s(i, {
|
|
258
|
+
icon: t.iconName,
|
|
259
|
+
color: t.iconColor,
|
|
260
|
+
size: t.iconSize,
|
|
261
|
+
type: t.iconType
|
|
262
|
+
}, null, 8, ["icon", "color", "size", "type"])
|
|
263
|
+
], 2)
|
|
264
|
+
], 10, X);
|
|
265
|
+
}
|
|
266
|
+
const C = /* @__PURE__ */ g(T, [["render", Z], ["__scopeId", "data-v-e983c5cf"]]), M = {
|
|
175
267
|
name: "InputField",
|
|
176
268
|
props: {
|
|
177
269
|
type: {
|
|
@@ -188,20 +280,20 @@ const w = /* @__PURE__ */ p(Z, [["render", I]]), N = {
|
|
|
188
280
|
}
|
|
189
281
|
}
|
|
190
282
|
}, q = ["type", "placeholder"];
|
|
191
|
-
function
|
|
192
|
-
return
|
|
193
|
-
type:
|
|
194
|
-
placeholder:
|
|
283
|
+
function W(e, r, t, u, l, n) {
|
|
284
|
+
return p(), b("input", B({
|
|
285
|
+
type: t.type,
|
|
286
|
+
placeholder: t.placeholder
|
|
195
287
|
}, e.$attrs, {
|
|
196
288
|
class: "bg-black text-secondary border-b-2 border-secondary focus:outline-none focus:border-accent w-full placeholder-secondary px-2 hover:border-accent duration-300 ease-in-out",
|
|
197
|
-
onInput:
|
|
289
|
+
onInput: r[0] || (r[0] = (a) => e.$emit("update:modelValue", a.target.value))
|
|
198
290
|
}), null, 16, q);
|
|
199
291
|
}
|
|
200
|
-
const
|
|
292
|
+
const E = /* @__PURE__ */ g(M, [["render", W]]), Y = {
|
|
201
293
|
name: "SearchBox",
|
|
202
294
|
components: {
|
|
203
|
-
InputField:
|
|
204
|
-
Icon:
|
|
295
|
+
InputField: E,
|
|
296
|
+
Icon: v
|
|
205
297
|
},
|
|
206
298
|
data() {
|
|
207
299
|
return {
|
|
@@ -213,106 +305,106 @@ const W = /* @__PURE__ */ p(N, [["render", T]]), E = {
|
|
|
213
305
|
console.log("Search Query:", this.searchQuery);
|
|
214
306
|
}
|
|
215
307
|
}
|
|
216
|
-
},
|
|
217
|
-
function
|
|
218
|
-
const a =
|
|
219
|
-
return
|
|
220
|
-
|
|
221
|
-
modelValue:
|
|
222
|
-
"onUpdate:modelValue":
|
|
308
|
+
}, F = { class: "relative flex items-center w-full max-w-md" };
|
|
309
|
+
function J(e, r, t, u, l, n) {
|
|
310
|
+
const a = d("InputField"), i = d("Icon");
|
|
311
|
+
return p(), b("div", F, [
|
|
312
|
+
s(a, {
|
|
313
|
+
modelValue: l.searchQuery,
|
|
314
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => l.searchQuery = f),
|
|
223
315
|
placeholder: "Search"
|
|
224
316
|
}, null, 8, ["modelValue"]),
|
|
225
|
-
|
|
317
|
+
s(i, {
|
|
226
318
|
icon: "fa-search",
|
|
227
319
|
color: "secondary",
|
|
228
320
|
size: "sm",
|
|
229
321
|
class: "absolute right-2",
|
|
230
|
-
onClick:
|
|
322
|
+
onClick: n.onSearch
|
|
231
323
|
}, null, 8, ["onClick"])
|
|
232
324
|
]);
|
|
233
325
|
}
|
|
234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iqlsWEkk+pGBJWgMbAO/WalKvj+0EmR1IH1BhZBqX4V+jIleFRflFWpaApE0symuVaijENgDerdVYFSZ22tOvCS/B2s0XnXf0WqhapitLyfXD8wh+YDmU4OOjcuWEmLR6t1bAQCwLNh4/Qznkg0fcXD/Bw2AEWXVNq6qy9FRiabEeF/4376XrFesq2L+npoAXzu9zTzCBqoLN4TL8a7xMVa9fcvmmU5cgG/9/1NVzxfCJIkssXUTplYAjECvj0LaAwVhQdAzmNl6ajOuwgPxU8qW8/i+Z36jxTnZM+BuSWXCxqnYlqdZFBG5mjcbECooBIlI68pM8IQtiFz0X1T9zgyd2HCtZIuspWeEwJV9A9CxU/b2vnZIhBZehP3C5+l9amrOS6EE1RTFc39jN7zq5Ja+bHuArMX0dfEI11bsOcposFSxeXBrYa1AHFMpriF6hquPdw7fXQQ5LLz22OEDJ5z1QcVG1U/cR81lqjDGwMruCCK4NjZf7+3sZZsQantHXu8lY2F66XuAAJd8kP5Ek2R9QCKEnmU0GVPMt5aV83I81Vg3bK9Y6gJ3Guozyzjdx2CyWVLATvim9/GUSwYyI1OATjBtOXX2lb8zSxvxgp7GsEWPjJvOVHcCirqWs2gnGJR/XTFSLl9isqTxjuHjSSV+4HxnpL4yoLNRWYFGIgOZSkp+WJjNkKaRVWWJGWXpgOGY/Bdi4xFjbM/qzlMaqEjoBRTXOlsuUINON3RHcDgFgxOOz0wD3jSpinjINXUIzYF1cG9uwZMCgvCOf7Qvq8j3p3ps3/wDHS5O0YOBNvAAAAABJRU5ErkJggg==", K = {
|
|
235
327
|
name: "Header",
|
|
236
328
|
components: {
|
|
237
|
-
SearchBox:
|
|
238
|
-
BaseText:
|
|
239
|
-
BaseButton:
|
|
240
|
-
Icon:
|
|
329
|
+
SearchBox: L,
|
|
330
|
+
BaseText: h,
|
|
331
|
+
BaseButton: C,
|
|
332
|
+
Icon: v
|
|
241
333
|
},
|
|
242
334
|
data() {
|
|
243
335
|
return {
|
|
244
|
-
logo:
|
|
336
|
+
logo: O
|
|
245
337
|
};
|
|
246
338
|
}
|
|
247
|
-
},
|
|
248
|
-
function
|
|
249
|
-
const a =
|
|
250
|
-
return
|
|
251
|
-
o("section",
|
|
252
|
-
o("div",
|
|
339
|
+
}, D = { class: "border-b border-lineGrey w-full bg-primary m-0" }, H = { class: "w-full hidden md:flex" }, U = { class: "w-[150px] h-[150px] bg-primary flex-shrink-0 flex items-center justify-center" }, R = ["src"], Q = { class: "flex w-full items-center border-r border-l border-lineGrey" }, P = { class: "hidden lg:flex w-1/3 pl-20" }, $ = { class: "ml-8 w-2/3 flex justify-around" }, ee = { class: "w-[150px] h-[150px] bg-primary flex-shrink-0 flex items-center justify-center" }, te = { class: "w-full flex md:hidden" }, re = { class: "m-2 flex justify-between w-full" }, oe = ["src"];
|
|
340
|
+
function ne(e, r, t, u, l, n) {
|
|
341
|
+
const a = d("SearchBox"), i = d("BaseText"), f = d("BaseButton"), S = d("Icon");
|
|
342
|
+
return p(), b("header", D, [
|
|
343
|
+
o("section", H, [
|
|
344
|
+
o("div", U, [
|
|
253
345
|
o("img", {
|
|
254
|
-
src:
|
|
346
|
+
src: l.logo,
|
|
255
347
|
alt: "Logo",
|
|
256
348
|
class: "h-14 w-18 bg-accent"
|
|
257
|
-
}, null, 8,
|
|
349
|
+
}, null, 8, R)
|
|
258
350
|
]),
|
|
259
|
-
o("section",
|
|
260
|
-
o("div",
|
|
261
|
-
|
|
351
|
+
o("section", Q, [
|
|
352
|
+
o("div", P, [
|
|
353
|
+
s(a, { class: "w-24 md:w-32 lg:w-52 xl:w-64 bg-primary" })
|
|
262
354
|
]),
|
|
263
|
-
o("nav",
|
|
264
|
-
|
|
355
|
+
o("nav", $, [
|
|
356
|
+
s(i, {
|
|
265
357
|
color: "secondary",
|
|
266
358
|
size: "md",
|
|
267
359
|
tag: "p",
|
|
268
360
|
weight: "normal",
|
|
269
361
|
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
270
362
|
}, {
|
|
271
|
-
default:
|
|
363
|
+
default: c(() => r[0] || (r[0] = [
|
|
272
364
|
m("Tournaments")
|
|
273
365
|
])),
|
|
274
366
|
_: 1
|
|
275
367
|
}),
|
|
276
|
-
|
|
368
|
+
s(i, {
|
|
277
369
|
color: "secondary",
|
|
278
370
|
size: "md",
|
|
279
371
|
tag: "p",
|
|
280
372
|
weight: "normal",
|
|
281
373
|
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
282
374
|
}, {
|
|
283
|
-
default:
|
|
375
|
+
default: c(() => r[1] || (r[1] = [
|
|
284
376
|
m("Clubs")
|
|
285
377
|
])),
|
|
286
378
|
_: 1
|
|
287
379
|
}),
|
|
288
|
-
|
|
380
|
+
s(i, {
|
|
289
381
|
color: "secondary",
|
|
290
382
|
size: "md",
|
|
291
383
|
tag: "p",
|
|
292
384
|
weight: "normal",
|
|
293
385
|
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
294
386
|
}, {
|
|
295
|
-
default:
|
|
387
|
+
default: c(() => r[2] || (r[2] = [
|
|
296
388
|
m("Leaderboard")
|
|
297
389
|
])),
|
|
298
390
|
_: 1
|
|
299
391
|
}),
|
|
300
|
-
|
|
392
|
+
s(i, {
|
|
301
393
|
color: "secondary",
|
|
302
394
|
size: "md",
|
|
303
395
|
tag: "p",
|
|
304
396
|
weight: "normal",
|
|
305
397
|
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
306
398
|
}, {
|
|
307
|
-
default:
|
|
399
|
+
default: c(() => r[3] || (r[3] = [
|
|
308
400
|
m("Contact")
|
|
309
401
|
])),
|
|
310
402
|
_: 1
|
|
311
403
|
})
|
|
312
404
|
])
|
|
313
405
|
]),
|
|
314
|
-
o("div",
|
|
315
|
-
|
|
406
|
+
o("div", ee, [
|
|
407
|
+
s(f, {
|
|
316
408
|
backgroundColor: "primary",
|
|
317
409
|
border: "secondary",
|
|
318
410
|
color: "secondary",
|
|
@@ -321,29 +413,29 @@ function re(e, t, r, d, n, s) {
|
|
|
321
413
|
})
|
|
322
414
|
])
|
|
323
415
|
]),
|
|
324
|
-
o("section",
|
|
325
|
-
o("div",
|
|
416
|
+
o("section", te, [
|
|
417
|
+
o("div", re, [
|
|
326
418
|
o("img", {
|
|
327
|
-
src:
|
|
419
|
+
src: l.logo,
|
|
328
420
|
alt: "Logo",
|
|
329
|
-
class: "h-
|
|
330
|
-
}, null, 8,
|
|
331
|
-
|
|
421
|
+
class: "h-6 w-9"
|
|
422
|
+
}, null, 8, oe),
|
|
423
|
+
s(S, {
|
|
332
424
|
icon: "fa-bars",
|
|
333
425
|
color: "secondary",
|
|
334
426
|
size: "xl",
|
|
335
|
-
class: "
|
|
427
|
+
class: "",
|
|
336
428
|
onClick: e.onSearch
|
|
337
429
|
}, null, 8, ["onClick"])
|
|
338
430
|
])
|
|
339
431
|
])
|
|
340
432
|
]);
|
|
341
433
|
}
|
|
342
|
-
const be = /* @__PURE__ */
|
|
434
|
+
const be = /* @__PURE__ */ g(K, [["render", ne]]), le = {
|
|
343
435
|
name: "HeroBanner",
|
|
344
436
|
components: {
|
|
345
|
-
BaseText:
|
|
346
|
-
BaseButton:
|
|
437
|
+
BaseText: h,
|
|
438
|
+
BaseButton: C
|
|
347
439
|
},
|
|
348
440
|
props: {
|
|
349
441
|
imageSrc: {
|
|
@@ -363,109 +455,141 @@ const be = /* @__PURE__ */ p(O, [["render", re]]), oe = {
|
|
|
363
455
|
required: !0
|
|
364
456
|
}
|
|
365
457
|
},
|
|
458
|
+
data() {
|
|
459
|
+
return {
|
|
460
|
+
isMobile: !1
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
computed: {
|
|
464
|
+
backgroundStyle() {
|
|
465
|
+
return {
|
|
466
|
+
backgroundImage: `url(${this.imageSrc})`,
|
|
467
|
+
backgroundSize: "cover",
|
|
468
|
+
backgroundPosition: "center",
|
|
469
|
+
backgroundRepeat: "no-repeat"
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
mounted() {
|
|
474
|
+
this.checkScreenSize(), window.addEventListener("resize", this.checkScreenSize);
|
|
475
|
+
},
|
|
476
|
+
beforeDestroy() {
|
|
477
|
+
window.removeEventListener("resize", this.checkScreenSize);
|
|
478
|
+
},
|
|
366
479
|
methods: {
|
|
480
|
+
checkScreenSize() {
|
|
481
|
+
this.isMobile = window.innerWidth < 768;
|
|
482
|
+
},
|
|
367
483
|
onClick() {
|
|
368
484
|
this.$emit("button-click");
|
|
369
485
|
}
|
|
370
486
|
}
|
|
371
|
-
}, se = { class: "relative w-full
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
487
|
+
}, se = { class: "relative w-full md:border-b md:border-l md:border-r border-lineGrey" }, ae = ["src"], ie = { class: "hidden md:flex absolute inset-0 items-center justify-start px-8" }, ce = { class: "text-left text-white max-w-lg" }, de = {
|
|
488
|
+
key: 1,
|
|
489
|
+
class: "flex justify-center text-left w-full px-6 py-8"
|
|
490
|
+
}, ue = { class: "w-full" };
|
|
491
|
+
function me(e, r, t, u, l, n) {
|
|
492
|
+
const a = d("BaseText"), i = d("BaseButton");
|
|
493
|
+
return p(), b(j, null, [
|
|
494
|
+
o("section", {
|
|
495
|
+
class: "relative w-full h-3/4 flex justify-center bg-primary m-0",
|
|
496
|
+
style: _(n.backgroundStyle)
|
|
497
|
+
}, [
|
|
498
|
+
r[0] || (r[0] = o("div", { class: "hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0" }, null, -1)),
|
|
499
|
+
o("div", se, [
|
|
500
|
+
l.isMobile ? w("", !0) : (p(), b("img", {
|
|
501
|
+
key: 0,
|
|
502
|
+
src: t.imageSrc,
|
|
380
503
|
alt: "Hero Image",
|
|
381
504
|
class: "w-full h-full object-cover"
|
|
382
|
-
}, null, 8,
|
|
383
|
-
o("section",
|
|
505
|
+
}, null, 8, ae)),
|
|
506
|
+
o("section", ie, [
|
|
384
507
|
o("div", ce, [
|
|
385
|
-
|
|
508
|
+
s(a, {
|
|
386
509
|
color: "secondary",
|
|
387
510
|
tag: "h1",
|
|
388
511
|
size: "4xl",
|
|
389
512
|
weight: "bold",
|
|
390
513
|
class: "mb-4"
|
|
391
514
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
m(
|
|
515
|
+
default: c(() => [
|
|
516
|
+
m(y(t.title), 1)
|
|
394
517
|
]),
|
|
395
518
|
_: 1
|
|
396
519
|
}),
|
|
397
|
-
|
|
520
|
+
s(a, {
|
|
398
521
|
color: "secondary",
|
|
399
522
|
tag: "p",
|
|
400
523
|
size: "lg",
|
|
401
524
|
weight: "normal",
|
|
402
525
|
class: "mb-6"
|
|
403
526
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
m(
|
|
527
|
+
default: c(() => [
|
|
528
|
+
m(y(t.description), 1)
|
|
406
529
|
]),
|
|
407
530
|
_: 1
|
|
408
531
|
}),
|
|
409
|
-
|
|
410
|
-
label:
|
|
532
|
+
s(i, {
|
|
533
|
+
label: t.buttonLabel,
|
|
411
534
|
color: "secondary",
|
|
412
535
|
border: "gradient1",
|
|
413
|
-
onClick:
|
|
536
|
+
onClick: n.onClick
|
|
414
537
|
}, null, 8, ["label", "onClick"])
|
|
415
538
|
])
|
|
416
|
-
])
|
|
539
|
+
]),
|
|
540
|
+
l.isMobile ? (p(), b("div", de, [
|
|
541
|
+
o("div", ue, [
|
|
542
|
+
s(a, {
|
|
543
|
+
color: "secondary",
|
|
544
|
+
tag: "h1",
|
|
545
|
+
size: "xl",
|
|
546
|
+
weight: "bold",
|
|
547
|
+
class: "mb-2 w-48"
|
|
548
|
+
}, {
|
|
549
|
+
default: c(() => [
|
|
550
|
+
m(y(t.title), 1)
|
|
551
|
+
]),
|
|
552
|
+
_: 1
|
|
553
|
+
}),
|
|
554
|
+
s(a, {
|
|
555
|
+
color: "secondary",
|
|
556
|
+
tag: "p",
|
|
557
|
+
size: "xs",
|
|
558
|
+
weight: "normal",
|
|
559
|
+
class: "mb-6 w-48"
|
|
560
|
+
}, {
|
|
561
|
+
default: c(() => [
|
|
562
|
+
m(y(t.description), 1)
|
|
563
|
+
]),
|
|
564
|
+
_: 1
|
|
565
|
+
}),
|
|
566
|
+
s(i, {
|
|
567
|
+
label: t.buttonLabel,
|
|
568
|
+
size: "xs",
|
|
569
|
+
color: "secondary",
|
|
570
|
+
border: "gradient1",
|
|
571
|
+
class: "w-1/2 m-auto",
|
|
572
|
+
onClick: n.onClick
|
|
573
|
+
}, null, 8, ["label", "onClick"])
|
|
574
|
+
])
|
|
575
|
+
])) : w("", !0)
|
|
417
576
|
]),
|
|
418
|
-
|
|
419
|
-
]),
|
|
420
|
-
|
|
421
|
-
o("div", { class: "
|
|
577
|
+
r[1] || (r[1] = o("div", { class: "hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0" }, null, -1))
|
|
578
|
+
], 4),
|
|
579
|
+
r[2] || (r[2] = o("section", { class: "hidden md:flex border-t border-lineGrey w-full bg-primary" }, [
|
|
580
|
+
o("div", { class: "w-[150px] bg-primary border-b border-lineGrey flex-shrink-0" }),
|
|
422
581
|
o("div", { class: "relative w-full border-b border-l border-r border-lineGrey h-36" }),
|
|
423
|
-
o("div", { class: "
|
|
424
|
-
], -1))
|
|
425
|
-
o("section", ie, [
|
|
426
|
-
o("div", de, [
|
|
427
|
-
l(a, {
|
|
428
|
-
color: "secondary",
|
|
429
|
-
tag: "h1",
|
|
430
|
-
size: "2xl",
|
|
431
|
-
weight: "bold",
|
|
432
|
-
class: "mb-2"
|
|
433
|
-
}, {
|
|
434
|
-
default: i(() => [
|
|
435
|
-
m(g(r.title), 1)
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
}),
|
|
439
|
-
l(a, {
|
|
440
|
-
color: "secondary",
|
|
441
|
-
tag: "p",
|
|
442
|
-
size: "sm",
|
|
443
|
-
weight: "normal",
|
|
444
|
-
class: "mb-6"
|
|
445
|
-
}, {
|
|
446
|
-
default: i(() => [
|
|
447
|
-
m(g(r.description), 1)
|
|
448
|
-
]),
|
|
449
|
-
_: 1
|
|
450
|
-
}),
|
|
451
|
-
l(c, {
|
|
452
|
-
label: r.buttonLabel,
|
|
453
|
-
color: "secondary",
|
|
454
|
-
border: "gradient1",
|
|
455
|
-
class: "w-1/2 m-auto",
|
|
456
|
-
onClick: s.onClick
|
|
457
|
-
}, null, 8, ["label", "onClick"])
|
|
458
|
-
])
|
|
459
|
-
])
|
|
582
|
+
o("div", { class: "w-[150px] bg-primary border-b border-lineGrey flex-shrink-0" })
|
|
583
|
+
], -1))
|
|
460
584
|
], 64);
|
|
461
585
|
}
|
|
462
|
-
const
|
|
586
|
+
const ge = /* @__PURE__ */ g(le, [["render", me]]);
|
|
463
587
|
export {
|
|
464
|
-
|
|
465
|
-
|
|
588
|
+
C as BaseIcon,
|
|
589
|
+
h as BaseText,
|
|
466
590
|
be as Header,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
591
|
+
ge as HeroBanner,
|
|
592
|
+
v as Icon,
|
|
593
|
+
E as InputField,
|
|
594
|
+
L as Searchbox
|
|
471
595
|
};
|