OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
master @ 54 LINES
 
[ HISTORY ]  [ UP ]
 

---
import "./CompletionTiers.scss";
import type { StatsCompletionTier } from "../../../lib/types";

interface Props {
  gold: StatsCompletionTier;
  platinum: StatsCompletionTier;
  title: StatsCompletionTier;
}

const { gold, platinum, title } = Astro.props;

// Tier labels use the time-tier color tokens (matches the in-game/addon palette
// for gold / platinum / title-aka-remarkable times).
const tiers = [
  { key: "gold", label: "9/9 Gold", data: gold },
  { key: "platinum", label: "9/9 Platinum", data: platinum },
  { key: "title", label: "9/9 Title", data: title },
];
---

<div class="completion-tiers">
  {
    tiers.map(({ key, label, data }) => (
      <article class={`completion-tiers__tier completion-tiers__tier--${key}`}>
        <header class="completion-tiers__header">
          <span
            class={`completion-tiers__label completion-tiers__label--${key}`}
          >
            {label}
          </span>
          <span class="completion-tiers__count">
            {data.count.toLocaleString("en-US")}
          </span>
        </header>
        <dl class="completion-tiers__pcts">
          <div>
            <dt>of season characters</dt>
            <dd>{data.percentile_of_all_players.toFixed(2)}%</dd>
          </div>
          <div>
            <dt>of 9/9 characters</dt>
            <dd>{data.percentile_of_completed_players.toFixed(2)}%</dd>
          </div>
          <div>
            <dt>of all-time characters</dt>
            <dd>{data.percentile_of_all_time_players.toFixed(2)}%</dd>
          </div>
        </dl>
      </article>
    ))
  }
</div>

---
import "./CompletionTiers.scss";
import type { StatsCompletionTier } from "..
/../../lib/types";

interface Props {
  gold: StatsCompletionTier;
  platinum: StatsCompletionTier;
  title: StatsCompletionTier;
}

const { gold, platinum, title } = Astro.prop
s;

// Tier labels use the time-tier color token
s (matches the in-game/addon palette
// for gold / platinum / title-aka-remarkabl
e times).
const tiers = [
  { key: "gold", label: "9/9 Gold", data: go
ld },
  { key: "platinum", label: "9/9 Platinum", 
data: platinum },
  { key: "title", label: "9/9 Title", data: 
title },
];
---

<div class="completion-tiers">
  {
    tiers.map(({ key, label, data }) => (
      <article class={`completion-tiers__tie
r completion-tiers__tier--${key}`}>
        <header class="completion-tiers__hea
der">
          <span
            class={`completion-tiers__label 
completion-tiers__label--${key}`}
          >
            {label}
          </span>
          <span class="completion-tiers__cou
nt">
            {data.count.toLocaleString("en-U
S")}
          </span>
        </header>
        <dl class="completion-tiers__pcts">
          <div>
            <dt>of season characters</dt>
            <dd>{data.percentile_of_all_play
ers.toFixed(2)}%</dd>
          </div>
          <div>
            <dt>of 9/9 characters</dt>
            <dd>{data.percentile_of_complete
d_players.toFixed(2)}%</dd>
          </div>
          <div>
            <dt>of all-time characters</dt>
            <dd>{data.percentile_of_all_time
_players.toFixed(2)}%</dd>
          </div>
        </dl>
      </article>
    ))
  }
</div>
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET