Skip to content

Commit

Permalink
Fix color
Browse files Browse the repository at this point in the history
  • Loading branch information
popunbom committed Dec 4, 2024
1 parent 4b09ca2 commit 8f85f3c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/app/components/modules/map/map-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export const TownList = [
name: "チェアタウン",
centerCoordinate: { latitude: 0, longitude: 0 },
image: { src: "/images/town.svg", width: 500, height: 500 },
color: "emerald",
color: "#FF3600",
},
{
name: "コシカケシティ",
centerCoordinate: { latitude: 300, longitude: 300 },
image: { src: "/images/town.svg", width: 500, height: 500 },
color: "amber",
color: "#0089A2",
},
] satisfies Town[];
6 changes: 4 additions & 2 deletions frontend/app/components/modules/map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ const TownLayer = memo(function TownLayer() {
>
<div
role="presentation"
className={`absolute rounded-full bg-neutral-300 bg-opacity-40 border-4 border-${color}-500`}
className="absolute rounded-full bg-neutral-100 bg-opacity-40 border-4 border-neutral-200"
style={{
width: image.width + 20,
height: image.width + 20,
top: -10,
left: -10,
borderColor: color,
}}
></div>
<img
Expand All @@ -300,7 +301,8 @@ const TownLayer = memo(function TownLayer() {
<div className="absolute bottom-[-54px] w-full text-center">
<Text
tagName="span"
className={`px-3 py-1 bg-${color}-600 text-white rounded-md`}
className="px-3 py-1 text-white rounded-md"
style={{ backgroundColor: color }}
size="sm"
>
{name}
Expand Down
1 change: 1 addition & 0 deletions frontend/app/components/primitives/text/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type TextProps = PropsWithChildren<{
size?: Size;
variant?: Variant;
className?: string;
style?: React.CSSProperties;
}>;

const getSizeClass = (size?: Size) => {
Expand Down
1 change: 0 additions & 1 deletion frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ import type { Config } from "tailwindcss";
export default {
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
plugins: [],
safelist: [{ pattern: /bg-.+-600/ }, { pattern: /border-.+-500/ }],
} satisfies Config;

0 comments on commit 8f85f3c

Please sign in to comment.