diff --git a/components/WeaponLabelIcon/index.scss b/components/WeaponLabelIcon/index.scss index e8351a73..1e5cd0a5 100644 --- a/components/WeaponLabelIcon/index.scss +++ b/components/WeaponLabelIcon/index.scss @@ -6,74 +6,142 @@ /* Elements */ - &.fire { - background-image: url('/labels/element/Label_Element_Fire.png') + &.fire.en { + background-image: url('/labels/element/fire_en.png') } - &.water { - background-image: url('/labels/element/Label_Element_Water.png') + &.fire.ja { + background-image: url('/labels/element/fire_ja.png') } - &.earth { - background-image: url('/labels/element/Label_Element_Earth.png') + &.water.en { + background-image: url('/labels/element/water_en.png') } - &.wind { - background-image: url('/labels/element/Label_Element_Wind.png') + &.water.ja { + background-image: url('/labels/element/water_ja.png') } - &.dark { - background-image: url('/labels/element/Label_Element_Dark.png') + &.earth.en { + background-image: url('/labels/element/earth_en.png') } - &.light { - background-image: url('/labels/element/Label_Element_Light.png') + &.earth.ja { + background-image: url('/labels/element/earth_ja.png') } - &.null { - background-image: url('/labels/element/Label_Element_Any.png') + &.wind.en { + background-image: url('/labels/element/wind_en.png') + } + + &.wind.ja { + background-image: url('/labels/element/wind_ja.png') + } + + &.dark.en { + background-image: url('/labels/element/dark_en.png') + } + + &.dark.ja { + background-image: url('/labels/element/dark_ja.png') + } + + &.light.en { + background-image: url('/labels/element/light_en.png') + } + + &.light.ja { + background-image: url('/labels/element/light_ja.png') + } + + &.null.en { + background-image: url('/labels/element/any_en.png') + } + + &.null.ja { + background-image: url('/labels/element/any_ja.png') } /* Proficiencies */ - &.sword { - background-image: url('/labels/proficiency/Label_Weapon_Sabre.png') + &.sword.en { + background-image: url('/labels/proficiency/sabre_en.png') } - &.dagger { - background-image: url('/labels/proficiency/Label_Weapon_Dagger.png') + &.sword.ja { + background-image: url('/labels/proficiency/sabre_ja.png') } - &.axe { - background-image: url('/labels/proficiency/Label_Weapon_Axe.png') + &.dagger.en { + background-image: url('/labels/proficiency/dagger_en.png') } - &.spear { - background-image: url('/labels/proficiency/Label_Weapon_Spear.png') + &.dagger.ja { + background-image: url('/labels/proficiency/dagger_ja.png') } - &.staff { - background-image: url('/labels/proficiency/Label_Weapon_Staff.png') + &.axe.en { + background-image: url('/labels/proficiency/axe_en.png') } - &.fist { - background-image: url('/labels/proficiency/Label_Weapon_Melee.png') + &.axe.ja { + background-image: url('/labels/proficiency/axe_ja.png') } - &.harp { - background-image: url('/labels/proficiency/Label_Weapon_Harp.png') + &.spear.en { + background-image: url('/labels/proficiency/spear_en.png') } - &.gun { - background-image: url('/labels/proficiency/Label_Weapon_Gun.png') + &.spear.ja { + background-image: url('/labels/proficiency/spear_ja.png') } - &.bow { - background-image: url('/labels/proficiency/Label_Weapon_Bow.png') + &.staff.en { + background-image: url('/labels/proficiency/staff_en.png') } - &.katana { - background-image: url('/labels/proficiency/Label_Weapon_Katana.png') + &.staff.ja { + background-image: url('/labels/proficiency/staff_ja.png') + } + + &.fist.en { + background-image: url('/labels/proficiency/melee_en.png') + } + + &.fist.ja { + background-image: url('/labels/proficiency/melee_ja.png') + } + + &.harp.en { + background-image: url('/labels/proficiency/harp_en.png') + } + + &.harp.ja { + background-image: url('/labels/proficiency/harp_ja.png') + } + + &.gun.en { + background-image: url('/labels/proficiency/gun_en.png') + } + + &.gun.ja { + background-image: url('/labels/proficiency/gun_ja.png') + } + + &.bow.en { + background-image: url('/labels/proficiency/bow_en.png') + } + + &.bow.ja { + background-image: url('/labels/proficiency/bow_ja.png') + } + + &.katana.en { + background-image: url('/labels/proficiency/katana_en.png') + } + + &.katana.ja { + background-image: url('/labels/proficiency/katana_ja.png') } } diff --git a/components/WeaponLabelIcon/index.tsx b/components/WeaponLabelIcon/index.tsx index e480cb8d..e49f6911 100644 --- a/components/WeaponLabelIcon/index.tsx +++ b/components/WeaponLabelIcon/index.tsx @@ -1,4 +1,5 @@ import React from 'react' +import { useRouter } from 'next/router' import './index.scss' @@ -6,12 +7,12 @@ interface Props { labelType: string } -class WeaponLabelIcon extends React.Component { - render() { - return ( - - ) - } +const WeaponLabelIcon = (props: Props) => { + const router = useRouter() + + return ( + + ) } export default WeaponLabelIcon diff --git a/public/labels/element/Label_Element_Any.png b/public/labels/element/any_en.png similarity index 100% rename from public/labels/element/Label_Element_Any.png rename to public/labels/element/any_en.png diff --git a/public/labels/element/any_ja.png b/public/labels/element/any_ja.png new file mode 100644 index 00000000..cc97f588 Binary files /dev/null and b/public/labels/element/any_ja.png differ diff --git a/public/labels/element/Label_Element_Dark.png b/public/labels/element/dark_en.png similarity index 100% rename from public/labels/element/Label_Element_Dark.png rename to public/labels/element/dark_en.png diff --git a/public/labels/element/dark_ja.png b/public/labels/element/dark_ja.png new file mode 100644 index 00000000..5fee8424 Binary files /dev/null and b/public/labels/element/dark_ja.png differ diff --git a/public/labels/element/Label_Element_Earth.png b/public/labels/element/earth_en.png similarity index 100% rename from public/labels/element/Label_Element_Earth.png rename to public/labels/element/earth_en.png diff --git a/public/labels/element/earth_ja.png b/public/labels/element/earth_ja.png new file mode 100644 index 00000000..ca95c55f Binary files /dev/null and b/public/labels/element/earth_ja.png differ diff --git a/public/labels/element/Label_Element_Fire.png b/public/labels/element/fire_en.png similarity index 100% rename from public/labels/element/Label_Element_Fire.png rename to public/labels/element/fire_en.png diff --git a/public/labels/element/fire_ja.png b/public/labels/element/fire_ja.png new file mode 100644 index 00000000..43ed3522 Binary files /dev/null and b/public/labels/element/fire_ja.png differ diff --git a/public/labels/element/Label_Element_Light.png b/public/labels/element/light_en.png similarity index 100% rename from public/labels/element/Label_Element_Light.png rename to public/labels/element/light_en.png diff --git a/public/labels/element/light_ja.png b/public/labels/element/light_ja.png new file mode 100644 index 00000000..32abe5ee Binary files /dev/null and b/public/labels/element/light_ja.png differ diff --git a/public/labels/element/Label_Element_Water.png b/public/labels/element/water_en.png similarity index 100% rename from public/labels/element/Label_Element_Water.png rename to public/labels/element/water_en.png diff --git a/public/labels/element/water_ja.png b/public/labels/element/water_ja.png new file mode 100644 index 00000000..55c12acf Binary files /dev/null and b/public/labels/element/water_ja.png differ diff --git a/public/labels/element/Label_Element_Wind.png b/public/labels/element/wind_en.png similarity index 100% rename from public/labels/element/Label_Element_Wind.png rename to public/labels/element/wind_en.png diff --git a/public/labels/element/wind_ja.png b/public/labels/element/wind_ja.png new file mode 100644 index 00000000..aae74660 Binary files /dev/null and b/public/labels/element/wind_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Axe.png b/public/labels/proficiency/axe_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Axe.png rename to public/labels/proficiency/axe_en.png diff --git a/public/labels/proficiency/axe_ja.png b/public/labels/proficiency/axe_ja.png new file mode 100644 index 00000000..26ed58d3 Binary files /dev/null and b/public/labels/proficiency/axe_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Bow.png b/public/labels/proficiency/bow_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Bow.png rename to public/labels/proficiency/bow_en.png diff --git a/public/labels/proficiency/bow_ja.png b/public/labels/proficiency/bow_ja.png new file mode 100644 index 00000000..67c4357a Binary files /dev/null and b/public/labels/proficiency/bow_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Dagger.png b/public/labels/proficiency/dagger_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Dagger.png rename to public/labels/proficiency/dagger_en.png diff --git a/public/labels/proficiency/dagger_ja.png b/public/labels/proficiency/dagger_ja.png new file mode 100644 index 00000000..0b5de6e1 Binary files /dev/null and b/public/labels/proficiency/dagger_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Gun.png b/public/labels/proficiency/gun_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Gun.png rename to public/labels/proficiency/gun_en.png diff --git a/public/labels/proficiency/gun_ja.png b/public/labels/proficiency/gun_ja.png new file mode 100644 index 00000000..9835b2d7 Binary files /dev/null and b/public/labels/proficiency/gun_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Harp.png b/public/labels/proficiency/harp_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Harp.png rename to public/labels/proficiency/harp_en.png diff --git a/public/labels/proficiency/harp_ja.png b/public/labels/proficiency/harp_ja.png new file mode 100644 index 00000000..05c37698 Binary files /dev/null and b/public/labels/proficiency/harp_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Katana.png b/public/labels/proficiency/katana_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Katana.png rename to public/labels/proficiency/katana_en.png diff --git a/public/labels/proficiency/katana_ja.png b/public/labels/proficiency/katana_ja.png new file mode 100644 index 00000000..5f6b7f03 Binary files /dev/null and b/public/labels/proficiency/katana_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Melee.png b/public/labels/proficiency/melee_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Melee.png rename to public/labels/proficiency/melee_en.png diff --git a/public/labels/proficiency/melee_ja.png b/public/labels/proficiency/melee_ja.png new file mode 100644 index 00000000..c711fb9f Binary files /dev/null and b/public/labels/proficiency/melee_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Sabre.png b/public/labels/proficiency/sabre_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Sabre.png rename to public/labels/proficiency/sabre_en.png diff --git a/public/labels/proficiency/sabre_ja.png b/public/labels/proficiency/sabre_ja.png new file mode 100644 index 00000000..9bd7d6bf Binary files /dev/null and b/public/labels/proficiency/sabre_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Spear.png b/public/labels/proficiency/spear_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Spear.png rename to public/labels/proficiency/spear_en.png diff --git a/public/labels/proficiency/spear_ja.png b/public/labels/proficiency/spear_ja.png new file mode 100644 index 00000000..77627e7a Binary files /dev/null and b/public/labels/proficiency/spear_ja.png differ diff --git a/public/labels/proficiency/Label_Weapon_Staff.png b/public/labels/proficiency/staff_en.png similarity index 100% rename from public/labels/proficiency/Label_Weapon_Staff.png rename to public/labels/proficiency/staff_en.png diff --git a/public/labels/proficiency/staff_ja.png b/public/labels/proficiency/staff_ja.png new file mode 100644 index 00000000..822efb3f Binary files /dev/null and b/public/labels/proficiency/staff_ja.png differ