style rank section
This commit is contained in:
parent
1a69eb21b0
commit
f289d91d58
@ -353,11 +353,48 @@ export class PokemonExplorer extends React.Component<IPokemonExplorerProps, ISta
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section className={ leaugeRankCss }>
|
<section className={ leaugeRankCss }>
|
||||||
<div className="league-pokemon-stat pokemon-rank"><span>{ rankedGrade }</span> Rank</div>
|
<h5 className={ containerTitleCss }>Rank</h5>
|
||||||
<div className="league-pokemon-stat pokemon-cp">CP <span>{ rankedCp }</span></div>
|
<div className={ styles.pokemonInfoWraper }>
|
||||||
<div className="league-pokemon-stat"><span>{ rankedHp }</span> HP</div>
|
<div className={ styles.pokemonInfoLeftColumn }>
|
||||||
<div className="league-pokemon-stat"><span>{ rankedAtk }</span> ATK</div>
|
<div><h1 className={ styles.pokemonRankValue }>{ rankedGrade }</h1> Rank</div>
|
||||||
<div className="league-pokemon-stat"><span>{ rankedDef }</span> DEF</div>
|
<div>CP <span>{ rankedCp }</span></div>
|
||||||
|
</div>
|
||||||
|
<div className={ styles.pokemonInfoRightColumn }>
|
||||||
|
<div className={ styles.baseStatRow }>
|
||||||
|
<span>HP { rankedHp < 100 && String.fromCharCode(160) }{ rankedHp }</span>
|
||||||
|
<progress
|
||||||
|
className={ progressStaminaCss }
|
||||||
|
max={ 100 }
|
||||||
|
value={ leaguePokemon.statsRank.staminaRank }
|
||||||
|
title={ `${leaguePokemon.statsRank.staminaRank}%` }
|
||||||
|
>
|
||||||
|
{ leaguePokemon.statsRank.staminaRank }%
|
||||||
|
</progress>
|
||||||
|
</div>
|
||||||
|
<div className={ styles.baseStatRow }>
|
||||||
|
<span>ATK { rankedAtk < 100 && String.fromCharCode(160) }{ rankedAtk }</span>
|
||||||
|
<progress
|
||||||
|
className={ progressAttackCss }
|
||||||
|
max={ 100 }
|
||||||
|
value={ leaguePokemon.statsRank.attackRank }
|
||||||
|
title={ `${leaguePokemon.statsRank.attackRank}%` }
|
||||||
|
>
|
||||||
|
{ leaguePokemon.statsRank.attackRank }%
|
||||||
|
</progress>
|
||||||
|
</div>
|
||||||
|
<div className={ styles.baseStatRow }>
|
||||||
|
<span>DEF { rankedDef < 100 && String.fromCharCode(160) }{ rankedDef }</span>
|
||||||
|
<progress
|
||||||
|
className={ progressDefenseCss }
|
||||||
|
max={ 100 }
|
||||||
|
value={ leaguePokemon.statsRank.defenseRank }
|
||||||
|
title={ `${leaguePokemon.statsRank.defenseRank}%` }
|
||||||
|
>
|
||||||
|
{ leaguePokemon.statsRank.defenseRank }%
|
||||||
|
</progress>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<LeagueStatsList
|
<LeagueStatsList
|
||||||
|
|||||||
@ -12,7 +12,8 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pokemonInfoWrapper {
|
.pokemonInfoWrapper,
|
||||||
|
.leaguePokemonRank {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
@ -41,6 +42,24 @@
|
|||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.leaguePokemonRank {
|
||||||
|
justify-content: flex-start;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.pokemonInfoWraper {
|
||||||
|
flex: 1 0 100%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pokemonInfoLeftColumn {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pokemonRankValue {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pokemonType {
|
.pokemonType {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
@ -252,14 +271,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popkemonIndividualStats {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.leaguePokemonRank {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.nes-field.is-inline) .ivInput {
|
:global(.nes-field.is-inline) .ivInput {
|
||||||
width: 4.25em;
|
width: 4.25em;
|
||||||
padding-left: 0.7em;
|
padding-left: 0.7em;
|
||||||
|
|||||||
@ -10,9 +10,10 @@ export const levelInput: string;
|
|||||||
export const pokemonBaseStats: string;
|
export const pokemonBaseStats: string;
|
||||||
export const pokemonInfoLeftColumn: string;
|
export const pokemonInfoLeftColumn: string;
|
||||||
export const pokemonInfoRightColumn: string;
|
export const pokemonInfoRightColumn: string;
|
||||||
|
export const pokemonInfoWraper: string;
|
||||||
export const pokemonInfoWrapper: string;
|
export const pokemonInfoWrapper: string;
|
||||||
export const pokemonName: string;
|
export const pokemonName: string;
|
||||||
|
export const pokemonRankValue: string;
|
||||||
export const pokemonType: string;
|
export const pokemonType: string;
|
||||||
export const pokemonTypeWrapper: string;
|
export const pokemonTypeWrapper: string;
|
||||||
export const popkemonIndividualStats: string;
|
|
||||||
export const wrapper: string;
|
export const wrapper: string;
|
||||||
|
|||||||
@ -84,7 +84,7 @@ export class PokemonSelectList extends React.Component<IPokemonSelectListProps,
|
|||||||
className={ inputTextCss }
|
className={ inputTextCss }
|
||||||
onChange={ this.handleChangeFilter }
|
onChange={ this.handleChangeFilter }
|
||||||
value={ this.props.filterTerm }
|
value={ this.props.filterTerm }
|
||||||
placeholder="Pokemon Name"
|
placeholder="Search"
|
||||||
/>
|
/>
|
||||||
{ this.props.filterTerm !== '' &&
|
{ this.props.filterTerm !== '' &&
|
||||||
<i
|
<i
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user