mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 03:35:40 -05:00
Add patch badge to obj dmg calc page
This commit is contained in:
@@ -31,6 +31,8 @@ import { Ability } from "~/components/Ability";
|
||||
import { damageTypeTranslationString } from "~/utils/i18next";
|
||||
import { useSetTitle } from "~/hooks/useSetTitle";
|
||||
|
||||
export const CURRENT_PATCH = "1.2";
|
||||
|
||||
export const links: LinksFunction = () => {
|
||||
return [{ rel: "stylesheet", href: styles }];
|
||||
};
|
||||
@@ -106,8 +108,13 @@ export default function ObjectDamagePage() {
|
||||
subWeaponId={subWeaponId}
|
||||
damagesToReceivers={damagesToReceivers}
|
||||
/>
|
||||
<div className="text-lighter text-xs">
|
||||
{t("analyzer:dmgHtdExplanation")}
|
||||
<div className="object-damage__bottom-container">
|
||||
<div className="text-lighter text-xs">
|
||||
{t("analyzer:dmgHtdExplanation")}
|
||||
</div>
|
||||
<div className="object-damage__patch">
|
||||
{t("analyzer:patch")} {CURRENT_PATCH}
|
||||
</div>
|
||||
</div>
|
||||
</Main>
|
||||
);
|
||||
|
||||
@@ -81,3 +81,20 @@
|
||||
letter-spacing: 0.5px;
|
||||
margin-block-start: var(--s-2);
|
||||
}
|
||||
|
||||
.object-damage__bottom-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.object-damage__patch {
|
||||
border-radius: var(--rounded);
|
||||
background-color: var(--theme-transparent);
|
||||
color: var(--text-lighter);
|
||||
font-size: var(--fonts-xxxs);
|
||||
font-weight: var(--bold);
|
||||
padding-block: var(--s-0-5);
|
||||
padding-inline: var(--s-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user