@everymatrix/tournament-card 0.1.0 → 0.1.1
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/client/index.js +3782 -0
- package/client/package.json +27 -0
- package/client/style.css +1 -0
- package/package.json +14 -16
- package/server/index.js +102 -0
- package/server/package.json +27 -0
- package/wc/components/TournamentCard-BvNMQx8f.js +6715 -0
- package/wc/components/TournamentCard-tI6pPdfP.cjs +4 -0
- package/wc/package.json +27 -0
- package/wc/style.css +1 -0
- package/wc/wc/tournament-card.cjs +1 -0
- package/wc/wc/tournament-card.js +14 -0
package/wc/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.svelte-uizvrn,.svelte-uizvrn:before,.svelte-uizvrn:after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}:host{height:100%}.Hidden.svelte-uizvrn{display:none}.TournamentGamesWrapper.svelte-uizvrn{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}.TournamentDetailsWrapper.svelte-uizvrn{background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px 16px 0;height:100%;display:flex;flex-direction:column;.TournamentImageWrapper:where(.svelte-uizvrn){position:relative;border-radius:14px;background-color:var(--emw-color-bg-primary, #212121);max-width:370px;.StatusBadgesWrapper:where(.svelte-uizvrn){position:absolute;top:10px;right:10px;display:flex;gap:10px;.StatusBadge:where(.svelte-uizvrn){background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);font-size:14px;border-radius:14px;padding:5px 10px;z-index:1;&.Live{background-color:var(--emw-color-green, #2DCB70)}&.Upcoming{background-color:var(--emw-color-green, #5A88D7)}&.Ended{background-color:var(--emw-color-green, #F3514B)}}}img:where(.svelte-uizvrn){border-radius:6px;width:100%;min-height:200px;height:200px;object-fit:cover}}.TournamentDetails:where(.svelte-uizvrn){color:var(--emw-color-typography, #ffffff);margin-top:10px;display:flex;flex-direction:column;gap:10px;height:-webkit-fill-available;justify-content:space-between;.TournamentStartDate:where(.svelte-uizvrn){font-size:12px;opacity:70%;font-weight:300}.TournamentTitle:where(.svelte-uizvrn){font-size:20px;font-weight:500;word-wrap:break-word}.TournamentCriteria:where(.svelte-uizvrn){font-size:12px;opacity:70%;font-weight:200;padding:0;margin:0}}.ViewPrizesContainer:where(.svelte-uizvrn){display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:100%;margin:10px 0;padding:10px;p:where(.svelte-uizvrn){opacity:70%;font-size:14px;font-weight:400}.ViewPrizeButton:where(.svelte-uizvrn){background-color:transparent;border-radius:6px;color:var(--emw-color-typography, #ffffff);border:1px solid var(--emw-color-primary, #FF1D4E);padding:6px 12px;display:flex;align-items:center;font-size:12px;margin-left:6px;transition:background-color .2s ease,transform .15s ease,box-shadow .15s ease;&:hover{box-shadow:0 0 8px 0 var(--emw-color-primary, #FF1D4E);transform:scale(1.05);cursor:pointer}&:active{transform:scale(.95)}svg:where(.svelte-uizvrn){margin-left:5px;justify-self:center}}}.TimeSegment:where(.svelte-uizvrn){background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);padding:6px;border-radius:6px}.TimeToEndTournament:where(.svelte-uizvrn)>p:where(.svelte-uizvrn){margin-bottom:6px;font-size:12px;font-weight:400;opacity:70%}.TimeToEndTournament:where(.svelte-uizvrn){display:flex;flex-direction:column;gap:6px}.ViewDetailsButton:where(.svelte-uizvrn){width:100%;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none}}.svelte-1q5hm0x,.svelte-1q5hm0x:before,.svelte-1q5hm0x:after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CardContainer.svelte-1q5hm0x{display:flex;flex-direction:column;border-radius:6px;background-color:var(--emw-color-bg-secondary, #333232);height:100%;max-width:400px;justify-content:space-between;.ViewDetailsButton:where(.svelte-1q5hm0x){width:100%;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;transition:background-color .2s ease,transform .15s ease;&:hover{background-color:var(--emw-color-bg-primary, #212121);cursor:pointer}&:active{transform:scale(.9)}}.TournamentButtonsWrapper:where(.svelte-1q5hm0x){display:flex;gap:16px;width:100%;padding:0 16px 16px;.ButtonPrimary:where(.svelte-1q5hm0x){display:block;width:100%;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s ease,transform .15s ease;&:hover{background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer}&:active{transform:scale(.9)}&.Enrolled{pointer-events:none;filter:saturate(50%)}}.ButtonSecondary:where(.svelte-1q5hm0x){display:block;width:100%;background-color:transparent;color:var(--emw-color-typography, #ffffff);border:1px solid var(--emw-color-primary, #FF1D4E);border-radius:6px;padding:8px 0;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s ease,transform .15s ease;&:hover{background-color:var(--emw-color-bg-primary, #212121);cursor:pointer}&:active{transform:scale(.9)}}}}.Spinner.svelte-1q5hm0x{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;animation:svelte-1q5hm0x-spin .6s linear infinite}@keyframes svelte-1q5hm0x-spin{to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("../components/TournamentCard-tI6pPdfP.cjs");function r(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}}customElements.define=r(customElements.define);!customElements.get("tournament-card")&&customElements.define("tournament-card",s.TournamentCard_ce.element);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { T as s } from "../components/TournamentCard-BvNMQx8f.js";
|
|
2
|
+
function r(t) {
|
|
3
|
+
return function(...n) {
|
|
4
|
+
try {
|
|
5
|
+
return t.apply(this, n);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
customElements.define = r(customElements.define);
|
|
14
|
+
!customElements.get("tournament-card") && customElements.define("tournament-card", s.element);
|