diff --git a/src/lib/components/ui/PremierRatingBadge.svelte b/src/lib/components/ui/PremierRatingBadge.svelte index 2aac8ec..31cb50e 100644 --- a/src/lib/components/ui/PremierRatingBadge.svelte +++ b/src/lib/components/ui/PremierRatingBadge.svelte @@ -1,6 +1,7 @@ -
- {#if showIcon} - - {/if} +{#if isLegacyRank} + + +{:else if !rating || rating === 0} + + Unranked +{:else} + +
+ {#if showIcon} + + {/if} - {tierInfo.formatted} + {tierInfo.formatted} - {#if showTier} - ({tierInfo.tier}) - {/if} + {#if showTier} + ({tierInfo.tier}) + {/if} - {#if showChange && changeInfo} - - {#if changeInfo.isPositive} - - {:else if changeInfo.change < 0} - - {/if} - {changeInfo.display} - - {/if} -
+ {#if showChange && changeInfo} + + {#if changeInfo.isPositive} + + {:else if changeInfo.change < 0} + + {/if} + {changeInfo.display} + + {/if} +
+{/if} diff --git a/src/lib/components/ui/RankIcon.svelte b/src/lib/components/ui/RankIcon.svelte new file mode 100644 index 0000000..84ec623 --- /dev/null +++ b/src/lib/components/ui/RankIcon.svelte @@ -0,0 +1,69 @@ + + +{#if showLabel} +
+ {rankName} + {rankName} +
+{:else} + {rankName} +{/if} diff --git a/static/images/static/images/rank_icons/skillgroup.svg b/static/images/static/images/rank_icons/skillgroup.svg new file mode 100644 index 0000000..4aa1203 --- /dev/null +++ b/static/images/static/images/rank_icons/skillgroup.svg @@ -0,0 +1 @@ +Not found. diff --git a/static/images/static/images/rank_icons/skillgroup_expired.svg b/static/images/static/images/rank_icons/skillgroup_expired.svg new file mode 100644 index 0000000..addd6cb --- /dev/null +++ b/static/images/static/images/rank_icons/skillgroup_expired.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/images/static/images/rank_icons/skillgroup_none.svg b/static/images/static/images/rank_icons/skillgroup_none.svg new file mode 100644 index 0000000..94ba8af --- /dev/null +++ b/static/images/static/images/rank_icons/skillgroup_none.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +