From ffa03b5a27148c11ca3f5471be67c2a5f39b13cd Mon Sep 17 00:00:00 2001 From: Alexandr Andreyev Date: Sat, 23 Aug 2025 14:02:28 +0300 Subject: [PATCH] sync --- fab-ui/fab-puzzle-grid.ts | 0 fab-ui/index.html | 25 +++++++++++++- .../src/{fab-image.ts => fab-card-image.ts} | 34 +++++++++++++++---- fab-ui/src/fab-card-title.ts | 28 ++++++++++++++- fab-ui/src/fab-card.ts | 28 +-------------- fab-ui/src/main.ts | 2 +- 6 files changed, 81 insertions(+), 36 deletions(-) create mode 100644 fab-ui/fab-puzzle-grid.ts rename fab-ui/src/{fab-image.ts => fab-card-image.ts} (53%) diff --git a/fab-ui/fab-puzzle-grid.ts b/fab-ui/fab-puzzle-grid.ts new file mode 100644 index 0000000..e69de29 diff --git a/fab-ui/index.html b/fab-ui/index.html index 52892ab..cd2ba93 100644 --- a/fab-ui/index.html +++ b/fab-ui/index.html @@ -78,11 +78,34 @@ rarity="R" > +

Foiling

+
+ + +

Dual Printings

Cards Unique Visually

+

Just images

- + + + +
+

Macro Puzzle Grid

+ diff --git a/fab-ui/src/fab-image.ts b/fab-ui/src/fab-card-image.ts similarity index 53% rename from fab-ui/src/fab-image.ts rename to fab-ui/src/fab-card-image.ts index f595c54..4fc3ff5 100644 --- a/fab-ui/src/fab-image.ts +++ b/fab-ui/src/fab-card-image.ts @@ -1,4 +1,4 @@ -import { LitElement, css, html } from 'lit' +import { LitElement, css, html, type CSSResultGroup } from 'lit' import { customElement, property } from 'lit/decorators.js' @customElement('fab-card-image') @@ -10,20 +10,20 @@ export class FabCardImage extends LitElement { render() { return html` -
- ${this.name} +
+ ${this.name}
`; } static styles = css` - .card-img { + .fab-card-image { position: relative; width: 100%; height: auto; padding-bottom: 140%; } - .card-img img { + .fab-card-image img { position: absolute; top: 0; left: 0; @@ -31,7 +31,7 @@ export class FabCardImage extends LitElement { box-shadow: rgba(0,0,0,0.18) 0px 2px 8px; transition: box-shadow 0.2s, z-index 0.2s, opacity 0.2s; } - .card-img img.single-card-img { + .fab-card-image img.single-card-img { width: 100%; left: 0; top: 0; @@ -40,4 +40,26 @@ export class FabCardImage extends LitElement { z-index: 2; } `; +} + +@customElement('fab-card-image-block') +export class FabCardImageBlock extends LitElement { + @property({ type: String }) + setId = ''; + @property({ type: String }) + name = ''; + + render() { + return html` +
+ +
+ `; + } + + static styles = css` + .fab-card-image-block { + width: 220px; + } + ` } \ No newline at end of file diff --git a/fab-ui/src/fab-card-title.ts b/fab-ui/src/fab-card-title.ts index f09084d..845b4bc 100644 --- a/fab-ui/src/fab-card-title.ts +++ b/fab-ui/src/fab-card-title.ts @@ -125,7 +125,7 @@ export class FabCardTitle extends LitElement { render() { return html` - + ${this.name} @@ -138,5 +138,31 @@ export class FabCardTitle extends LitElement { } static styles = css` + .rainbow-foiling .card-name { + background: linear-gradient(90deg, #ffb347, #ffcc33, #b4ffb3, #b3d1ff, #e0b3ff, #ffb3d1, #ffb347); + background-size: 200% 200%; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-shadow: 0 1px 2px rgba(0,0,0,0.08); + animation: rainbow-move 3s linear infinite alternate; + font-weight: bold; + } + @keyframes rainbow-move { + 0% { background-position: 0% 50%; } + 100% { background-position: 100% 50%; } + } + .cold-foiling .card-name { + background: linear-gradient(90deg, #b3e0ff, #e6e6e6, #b3e0ff, #e6e6e6, #b3e0ff); + background-size: 200% 200%; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-shadow: 0 1px 2px rgba(0,0,0,0.08); + animation: cold-move 2.5s linear infinite alternate; + font-weight: bold; + } + @keyframes cold-move { + 0% { background-position: 0% 50%; } + 100% { background-position: 100% 50%; } + } `; } \ No newline at end of file diff --git a/fab-ui/src/fab-card.ts b/fab-ui/src/fab-card.ts index dcb75b3..5549c92 100644 --- a/fab-ui/src/fab-card.ts +++ b/fab-ui/src/fab-card.ts @@ -1,6 +1,6 @@ import { LitElement, css, html } from 'lit' import { customElement, property } from 'lit/decorators.js' -import { FabCardImage } from './fab-image'; +import { FabCardImage } from './fab-card-image'; import { FabCardTitle } from './fab-card-title'; @customElement('fab-card-printing') @@ -46,31 +46,5 @@ export class FabCardPrinting extends LitElement { padding: 10px; font-size: 12px; } - .rainbow-foiling .card-name { - background: linear-gradient(90deg, #ffb347, #ffcc33, #b4ffb3, #b3d1ff, #e0b3ff, #ffb3d1, #ffb347); - background-size: 200% 200%; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - text-shadow: 0 1px 2px rgba(0,0,0,0.08); - animation: rainbow-move 3s linear infinite alternate; - font-weight: bold; - } - @keyframes rainbow-move { - 0% { background-position: 0% 50%; } - 100% { background-position: 100% 50%; } - } - .cold-foiling .card-name { - background: linear-gradient(90deg, #b3e0ff, #e6e6e6, #b3e0ff, #e6e6e6, #b3e0ff); - background-size: 200% 200%; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - text-shadow: 0 1px 2px rgba(0,0,0,0.08); - animation: cold-move 2.5s linear infinite alternate; - font-weight: bold; - } - @keyframes cold-move { - 0% { background-position: 0% 50%; } - 100% { background-position: 100% 50%; } - } `; } \ No newline at end of file diff --git a/fab-ui/src/main.ts b/fab-ui/src/main.ts index bbae67f..5ef8ce5 100644 --- a/fab-ui/src/main.ts +++ b/fab-ui/src/main.ts @@ -1,4 +1,4 @@ // Main entry for Vite. Import all custom elements here. import './fab-card.ts'; -import './fab-image.ts' +import './fab-card-image.ts' import './fab-card-title.ts' \ No newline at end of file