diff --git a/frontend/app/components/modules/map/map-data.ts b/frontend/app/components/modules/map/map-data.ts index f47238a2..f29440dd 100644 --- a/frontend/app/components/modules/map/map-data.ts +++ b/frontend/app/components/modules/map/map-data.ts @@ -11,6 +11,7 @@ type Town = { name: string; image: Image; centerCoordinate: Coordinate; + color: string; }; const CityObjectImages = [ @@ -56,10 +57,12 @@ export const TownList = [ name: "チェアタウン", centerCoordinate: { latitude: 0, longitude: 0 }, image: { src: "/images/town.svg", width: 500, height: 500 }, + color: "emerald", }, { name: "コシカケシティ", centerCoordinate: { latitude: 300, longitude: 300 }, image: { src: "/images/town.svg", width: 500, height: 500 }, + color: "amber", }, ] satisfies Town[]; diff --git a/frontend/app/components/modules/map/map.tsx b/frontend/app/components/modules/map/map.tsx index 2ba3e317..06d769dc 100644 --- a/frontend/app/components/modules/map/map.tsx +++ b/frontend/app/components/modules/map/map.tsx @@ -263,7 +263,7 @@ const ChairLayer: FC<{ const TownLayer = memo(function TownLayer() { return (
- {TownList.map(({ centerCoordinate, name, image }) => { + {TownList.map(({ centerCoordinate, name, image, color }) => { const pos = coordinateToPos(centerCoordinate); return (
{name} diff --git a/frontend/tailwind.config.ts b/frontend/tailwind.config.ts index 85e6760d..5248797f 100644 --- a/frontend/tailwind.config.ts +++ b/frontend/tailwind.config.ts @@ -3,4 +3,5 @@ import type { Config } from "tailwindcss"; export default { content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], plugins: [], + safelist: [{ pattern: /bg-.+-[56]00/ }, { pattern: /border-.+-500/ }], } satisfies Config;