Nice cards templates
This commit is contained in:
@@ -23,6 +23,11 @@ The pipeline is deliberately split into three inspectable stages.
|
||||
- **Modular rendering** – each card is written as a *self-contained* `.html` file
|
||||
(CSS inlined, images referenced relatively) so a badly laid-out card can be
|
||||
tweaked by hand and re-rasterised without re-running the earlier stages.
|
||||
- **Official-style card faces** – templates reproduce the printed TCG look: a gold
|
||||
frame with corner stars, HP teardrop, engraved name plaque, the
|
||||
element / faction / weapon tag column, hexagonal cost dice and a frosted
|
||||
description panel. Keyword colours are re-mapped at render time so the
|
||||
dataset's pastel palette stays legible on the light panel.
|
||||
- **Print-ready output** – cards are rendered at the classic 63x88 mm poker
|
||||
format at 300 DPI (configurable) and imposed 3x3 on A4 with optional crop marks.
|
||||
- **Wiki-derived factions** – `genshin-tcg factions` resolves each character's
|
||||
@@ -160,7 +165,7 @@ src/genshin_tcg/
|
||||
├── pipeline.py # fetch / render / impose orchestration
|
||||
├── data/ # remote source, catalogue, asset download, wiki factions
|
||||
├── rendering/ # Jinja environment, view models, converter, renderer
|
||||
│ └── templates/ # base/character/action templates + stylesheet
|
||||
│ └── templates/ # base/character/action templates + macros + stylesheet
|
||||
└── pdf/ # ReportLab imposition
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user