diff --git a/app/components/index-world.css.ts b/app/components/index-world.css.ts index 62ff0fd..ab5eda9 100644 --- a/app/components/index-world.css.ts +++ b/app/components/index-world.css.ts @@ -99,7 +99,15 @@ export const contBars = style({ export const contBarTitle = style({ fontWeight: "bold", fontSize: "0.7rem", - padding: "0.2rem 0.5rem", + padding: "0.15rem", + lineHeight: 0.8, + display: "flex", + justifyContent: "space-between", +}); + +export const barSeparator = style({ + height: "0.5rem", + width: "100%", }); export const contCircle = style({ @@ -145,6 +153,24 @@ export const alertCont = style({ animation: `${alertFade} 1s ease-in-out 4 alternate`, }); +const alertDotBlink = keyframes({ + from: { + backgroundColor: "#ff2d2d", + }, + to: { + backgroundColor: "#662929", + }, +}); + +export const alertDot = style({ + display: "inline-block", + height: "0.5rem", + width: "0.5rem", + borderRadius: "50%", + background: "#ff2d2d", + animation: `${alertDotBlink} var(--speed) ease-in-out infinite alternate`, +}); + export const nextCont = style({ display: "flex", flexDirection: "row", diff --git a/app/components/index-world.tsx b/app/components/index-world.tsx index 93e236d..4467726 100644 --- a/app/components/index-world.tsx +++ b/app/components/index-world.tsx @@ -13,6 +13,7 @@ import { FactionBar } from "./faction-bar"; import type { MetagameWorld } from "~/utils/metagame"; import type { PopulationWorld } from "~/utils/population"; import { c } from "~/utils/classes"; +import { ReactFragment, useEffect, useState } from "react"; export type IndexWorldProps = { metagame: MetagameWorld; @@ -67,64 +68,10 @@ export const IndexWorld = ({ metagame, population }: IndexWorldProps) => { return a.alert && !b.alert ? -1 : b.alert && !a.alert ? 1 : 0; }) .map((zone) => { - let { - name, - colors: [upper, lower], - } = zones[zone.id]; return worldId !== 19 ? ( -