Compare commits

...
Author SHA1 Message Date
legonzaur 77724d5539 ci : remove public directory
release-tag / release-image (push) Successful in 30s
2024-08-04 11:39:41 +02:00
legonzaur 21c41bb9fd ci : fix image directory
release-tag / release-image (push) Successful in 28s
2024-08-04 11:36:52 +02:00
legonzaur bb625b1fee ci : copy pngs into production stage
release-tag / release-image (push) Successful in 29s
2024-08-04 11:35:20 +02:00
legonzaur fd3cf0ba23 ci : fix image not being copied
release-tag / release-image (push) Successful in 28s
2024-08-04 11:33:10 +02:00
legonzaur 4ec29cf811 fix : champion polygon
release-tag / release-image (push) Successful in 29s
2024-08-04 11:21:41 +02:00
legonzaur b92eb4b901 fix : unify font for champion preview 2024-08-04 10:29:25 +02:00
legonzaur e36c916e0b feat : add health point to champion preview 2024-08-04 10:25:39 +02:00
legonzaur ca8e38624e fix : focused player card zone clip 2024-08-03 21:56:14 +02:00
5 changed files with 41 additions and 6 deletions
+2
View File
@@ -9,6 +9,7 @@ RUN python3 -u ./src/generate_cards_mvp.py
FROM install-stage AS build-stage
COPY --from=svg-stage /app/output/heron ./assets/images/cards/heron-svg
COPY --from=svg-stage /app/img/skins ./public/img
ARG NUXT_PUBLIC_ENDPOINT
ARG NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT
@@ -19,4 +20,5 @@ RUN npx nuxi generate
# étape de production
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/.output/public /usr/share/nginx/html
COPY --from=svg-stage /app/img/skins /usr/share/nginx/html/img/skins
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
+36 -4
View File
@@ -56,14 +56,38 @@ const active = ref(false);
></GameCardAtom>
</div>
</foreignObject>
<circle
cx="2"
cy="-1"
r="1"
:fill="card.guard ? 'black' : 'lightgray'"
stroke="white"
stroke-width="0.2"
class="champion_small_defense"
:class="{ active }"
></circle>
<text
text-anchor="middle"
font-family="Helvetica"
font-weight="bold"
class="champion_small_defense"
font-size="1.5"
:class="{ active }"
x="2"
y="-.5"
:fill="card.guard ? 'white' : 'black'"
>
{{ card.defense }}
</text>
</svg>
</div>
</template>
<style>
.champion_small {
z-index: 10;
z-index: 2;
width: 100%;
margin-top: 10px;
}
.champion_small_svg {
@@ -75,8 +99,8 @@ const active = ref(false);
clip-path: polygon(
58% 62%,
67% 56%,
59% 34%,
40% 34%,
59% 35.8%,
40% 35.8%,
31% 55%,
41% 62%,
49% 67.77%
@@ -86,6 +110,15 @@ const active = ref(false);
cursor: pointer;
}
.champion_small_defense {
transition: 0.15s all var(--animation-curve);
pointer-events: none;
}
.champion_small_defense.active {
opacity: 0;
}
.champion_small_foreignObject.active {
clip-path: polygon(100% 100%, 100% 50%, 100% 0, 0 0, 0 50%, 0 100%, 49% 100%);
transform: translate(-50%, -50%);
@@ -97,7 +130,6 @@ const active = ref(false);
transform: translate(0, -20%) scale(50%);
display: flex;
position: relative;
z-index: 10;
}
.champion_small_foreignObject.active .champion_small_inside {
-1
View File
@@ -309,7 +309,6 @@ function discardCardClick(card: Card) {
"turn_buttons";
justify-items: center;
transition: all 1s;
overflow-x: hidden;
}
#current_player_board {
+2
View File
@@ -107,4 +107,6 @@ export interface Card extends GameObject {
cardId: number;
cardType: CardType;
effects: Effect[];
defense?: number;
guard?: boolean;
}
+1 -1
View File
@@ -489,7 +489,7 @@ footer {
display: flex;
flex-direction: column;
justify-content: center;
overflow-x: hidden;
overflow-x: clip;
/* background: url('/img/bg-darkgrass.png'); */
}