Added display for transcendence and subauras

This commit is contained in:
Justin Edmund 2024-03-25 05:54:16 -04:00
parent de8e3b322c
commit 4c536955aa
4 changed files with 32 additions and 0 deletions

View file

@ -39,6 +39,8 @@ const CharacterResult = (props: Props) => {
type="character" type="character"
flb={character.uncap.flb} flb={character.uncap.flb}
ulb={character.uncap.ulb} ulb={character.uncap.ulb}
transcendence={character.uncap.transcendence}
transcendenceStage={5}
special={character.special} special={character.special}
/> />
<div className={styles.tags}> <div className={styles.tags}>

View file

@ -1,4 +1,5 @@
.result { .result {
align-items: center;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
gap: $unit; gap: $unit;
@ -53,6 +54,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: calc($unit / 2); gap: calc($unit / 2);
align-items: center;
.WeaponLabelIcon { .WeaponLabelIcon {
$aspect-ratio: calc(25 / 60); $aspect-ratio: calc(25 / 60);
@ -62,6 +64,25 @@
height: $height; height: $height;
width: calc($height / $aspect-ratio); width: calc($height / $aspect-ratio);
} }
.subaura {
align-items: center;
display: flex;
flex-direction: row;
gap: $unit-half;
svg {
fill: var(--text-secondary);
width: $unit-2x;
height: $unit-2x;
}
span {
color: var(--text-secondary);
font-size: $font-small;
font-weight: $bold;
}
}
} }
} }
} }

View file

@ -3,6 +3,7 @@ import { useRouter } from 'next/router'
import UncapIndicator from '~components/uncap/UncapIndicator' import UncapIndicator from '~components/uncap/UncapIndicator'
import WeaponLabelIcon from '~components/weapon/WeaponLabelIcon' import WeaponLabelIcon from '~components/weapon/WeaponLabelIcon'
import CheckIcon from '~public/icons/Check.svg'
import styles from './index.module.scss' import styles from './index.module.scss'
@ -32,10 +33,16 @@ const SummonResult = (props: Props) => {
type="summon" type="summon"
flb={summon.uncap.flb} flb={summon.uncap.flb}
ulb={summon.uncap.ulb} ulb={summon.uncap.ulb}
transcendence={summon.uncap.transcendence}
transcendenceStage={5}
special={false} special={false}
/> />
<div className={styles.tags}> <div className={styles.tags}>
<WeaponLabelIcon labelType={Element[summon.element]} /> <WeaponLabelIcon labelType={Element[summon.element]} />
<div className={styles.subaura}>
<CheckIcon />
<span>Subaura</span>
</div>
</div> </div>
</div> </div>
</li> </li>

View file

@ -44,6 +44,8 @@ const WeaponResult = (props: Props) => {
type="weapon" type="weapon"
flb={weapon.uncap.flb} flb={weapon.uncap.flb}
ulb={weapon.uncap.ulb} ulb={weapon.uncap.ulb}
transcendence={weapon.uncap.transcendence}
transcendenceStage={5}
special={false} special={false}
/> />
<div className={styles.tags}> <div className={styles.tags}>