feat(14): template in showdown-table, show choice

This commit is contained in:
efim
2023-07-01 14:20:52 +00:00
parent 69a464a767
commit 66013ae1c6
3 changed files with 22 additions and 6 deletions

View File

@@ -74,8 +74,8 @@
<!-- This badge is fragment to be repeated in other pages as well -->
<div
th:fragment="choiceBadge (choiceBadgeData)"
id="paper"
th:id="${choiceBadgeData.c.name}"
id="paper"
class="top-[var(--top-offset)] left-[var(--left-offset)] w-[var(--diameter)] h-[var(--diameter)] bg-gradient-to-b rounded-full -translate-x-[var(--translation)] -translate-y-[var(--translation)] from-[var(--bg-bright)] to-[var(--bg-dark)]"
style="
--diameter: 8rem;

View File

@@ -63,7 +63,10 @@
class="flex relative flex-col items-center pt-10"
>
<!-- This will be imported fragment -->
<!-- <p th:text="${playersChoiceData.c.toString}">Hello</p> -->
<div th:replace="index::choiceBadge (${playersChoiceData})"> </div>
<div
th:remove="all"
id="rock"
class="top-[var(--top-offset)] left-[var(--left-offset)] w-[var(--diameter)] h-[var(--diameter)] bg-gradient-to-b rounded-full -translate-x-[var(--translation)] -translate-y-[var(--translation)] from-[var(--bg-bright)] to-[var(--bg-dark)]"
style="