gear from local test
|
|
@ -1,5 +1,6 @@
|
|||
import { useLingui } from "@lingui/react";
|
||||
import englishToInteral from "lib/englishToInternal.json";
|
||||
import Image from "next/image";
|
||||
import React from "react";
|
||||
|
||||
interface GearImageProps {
|
||||
|
|
@ -7,22 +8,19 @@ interface GearImageProps {
|
|||
mini?: boolean;
|
||||
}
|
||||
|
||||
// TODO: next/image
|
||||
|
||||
const GearImage: React.FC<GearImageProps> = ({ englishName, mini }) => {
|
||||
const { i18n } = useLingui();
|
||||
const wh = "32px";
|
||||
const wh = mini ? 32 : 128;
|
||||
|
||||
const key = englishName as keyof typeof englishToInteral;
|
||||
const gearInternal = englishToInteral[key];
|
||||
return (
|
||||
<img
|
||||
<Image
|
||||
src={`/images/gear/${gearInternal}.png`}
|
||||
alt={i18n._(englishName)}
|
||||
src={`https://raw.githubusercontent.com/Leanny/leanny.github.io/master/splat2/gear/${gearInternal}.png`}
|
||||
title={i18n._(englishName)}
|
||||
style={
|
||||
mini ? { width: wh, height: wh, display: "inline-block" } : undefined
|
||||
}
|
||||
width={wh}
|
||||
height={wh}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
BIN
public/images/gear/Clt_AMB000.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_AMB001.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
public/images/gear/Clt_AMB002.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/images/gear/Clt_AMB003.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_AMB004.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_AMB005.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/images/gear/Clt_AMB006.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_AMB007.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/images/gear/Clt_AMB008.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/gear/Clt_AMB009.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/gear/Clt_AMB010.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/gear/Clt_COP100.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/gear/Clt_COP101.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_COP102.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_COP103.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_COP104.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_COP105.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/gear/Clt_COP106.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/gear/Clt_COP107.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/gear/Clt_COP108.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/gear/Clt_COP109.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/gear/Clt_COP110.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/images/gear/Clt_CRC000.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/gear/Clt_FST001.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/gear/Clt_FST002.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/gear/Clt_HAP001.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_HAP002.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/gear/Clt_JKT000.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT001.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT002.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT003.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/images/gear/Clt_JKT004.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT005.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT006.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/gear/Clt_JKT007.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT008.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT009.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT010.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT011.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT012.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_JKT013.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_JKT014.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT015.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/images/gear/Clt_JKT016.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT017.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT018.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT019.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_JKT020.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT021.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_JKT022.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_JKT023.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT024.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_JKT025.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/images/gear/Clt_JKT026.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT027.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_JKT028.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_JKT029.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_JKT030.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT031.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT032.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_JKT033.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT034.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_JKT035.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_JKT036.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT037.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_JKT038.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_JKT039.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_JKT040.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
public/images/gear/Clt_JKT041.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/gear/Clt_JKT042.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/gear/Clt_JKT043.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_JKT044.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_MSN000.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/gear/Clt_MSN004.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_MSN101.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_MSN104.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images/gear/Clt_MSN105.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_MSN106.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_PLO000.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/gear/Clt_PLO001.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/gear/Clt_PLO002.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_PLO003.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/gear/Clt_PLO004.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/gear/Clt_PLO005.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/images/gear/Clt_PLO006.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/gear/Clt_PLO007.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/gear/Clt_PLO008.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/gear/Clt_PRK000.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_PRK001.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_PRK002.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_PRK004.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/gear/Clt_PRK005.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_PRK006.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_PRK007.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/images/gear/Clt_PRK008.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/gear/Clt_PRK009.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images/gear/Clt_PRK010.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images/gear/Clt_PRK011.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/images/gear/Clt_RVL000.png
Normal file
|
After Width: | Height: | Size: 21 KiB |