header style.. beginning of design language
This commit is contained in:
parent
eb6164ef47
commit
6f037b5e09
4 changed files with 112 additions and 21 deletions
22
app/components/IndexWorldCard.tsx
Normal file
22
app/components/IndexWorldCard.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { HiChevronRight } from "react-icons/hi2";
|
||||
import { World } from "~/utils/saerro";
|
||||
import { CardBase, CardHeader } from "./Card";
|
||||
import { FactionBar } from "./FactionBar";
|
||||
|
||||
export const WorldCard = ({ world }: { world: World }) => {
|
||||
return (
|
||||
<CardBase>
|
||||
<CardHeader to={`/worlds/${world.id}`}>
|
||||
<div>{world.name}</div>
|
||||
<HiChevronRight />
|
||||
</CardHeader>
|
||||
|
||||
<div>
|
||||
<div>Population: {world.population.total.toLocaleString()}</div>
|
||||
<div>
|
||||
<FactionBar {...world.population} />
|
||||
</div>
|
||||
</div>
|
||||
</CardBase>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue