mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-23 07:17:43 +01:00
Update character new grid
This commit is contained in:
parent
11e0dc30b7
commit
0bed4197e0
2 changed files with 10 additions and 3 deletions
|
@ -1888,6 +1888,7 @@ export const characters = {
|
|||
boss: itemList.silken_feather,
|
||||
},
|
||||
element: elements.anemo,
|
||||
new: true,
|
||||
},
|
||||
chevreuse: {
|
||||
id: 'chevreuse',
|
||||
|
@ -8711,6 +8712,7 @@ export const characters = {
|
|||
boss: itemList.lightless_silk_string,
|
||||
},
|
||||
element: elements.electro,
|
||||
new: true,
|
||||
},
|
||||
qiqi: {
|
||||
id: 'qiqi',
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
import { onMount, tick } from 'svelte';
|
||||
import Icon from '../../components/Icon.svelte';
|
||||
|
||||
export let id;
|
||||
export let char;
|
||||
|
@ -28,9 +29,10 @@
|
|||
<a
|
||||
href="/characters/{id}"
|
||||
class="m-2 cell relative cursor-pointer transition duration-100 hover:opacity-100 hover:shadow-xl rounded-xl {!showConstellation ||
|
||||
constellation
|
||||
constellation ||
|
||||
char.new
|
||||
? ''
|
||||
: 'opacity-50'}"
|
||||
: 'opacity-50'} {char.rarity === 5 ? 'ring-legendary-from' : 'ring-rare-from'} {char.new ? 'ring-4' : ''}"
|
||||
>
|
||||
<div
|
||||
class="w-full rounded-t-xl bg-opacity-50 overflow-hidden {char.rarity === 5 ? 'bg-legendary-from' : 'bg-rare-from'}"
|
||||
|
@ -56,10 +58,13 @@
|
|||
C{Math.max(0, constellation.default + constellation.wish + constellation.manual - 1)}
|
||||
</span>
|
||||
{/if}
|
||||
{#if char.new}
|
||||
<span class="mx-1 text-primary text-xs font-semibold">NEW</span>
|
||||
{/if}
|
||||
<img class="w-4 h-4" src={`/images/elements/${char.element.id}.png`} alt={char.element.name} />
|
||||
</div>
|
||||
<div class="relative overflow-hidden bg-item rounded-b-xl" style="height: 29px">
|
||||
<div class="w-full overflow-hidden absolute bottom-0">
|
||||
<div class="w-full overflow-hidden absolute bottom-0">
|
||||
<p class="text-white p-1 text-center text-sm {smallName ? 'small' : ''}" bind:this={nameLabel}>
|
||||
{name}
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue