import { CardBase, CardHeader } from "~/components/Card"; import { HiChevronRight } from "react-icons/hi2"; import type { IndexResponse, World } from "~/utils/saerro"; import { indexQuery } from "~/utils/saerro"; import { useLoaderData } from "@remix-run/react"; import { json } from "@remix-run/cloudflare"; import { FactionBar } from "~/components/FactionBar"; import { WorldCard } from "~/components/IndexWorldCard"; import { styled } from "styletron-react"; import React, { ReactNode } from "react"; export const loader = async () => { return json(await indexQuery()); }; export default function Index() { // const { allWorlds } = useLoaderData(); return (
{/* {allWorlds.map((world) => ( ))} */}
); } const HeaderBase = styled("div", { display: "flex", flexDirection: "row", borderColor: "#fff", backgroundColor: "#fff", color: "#fff", borderLeftWidth: "0.5rem", borderTopWidth: "0.5rem", borderRightWidth: "0", borderBottomWidth: "0.5rem", borderStyle: "solid", borderTopLeftRadius: "0.5rem", position: "relative", }); const Header = () => ( PS2.LIVE
Realtime tools for PlanetSide 2
Saerro Live Pop API Census API Playground Population API Continents API Discord Character Link Metagame Webhooks
); const QuoteUnquoteLogo = styled("div", { width: "8rem", backgroundColor: "#fff", color: "#000", textAlign: "right", padding: "0.5rem", borderRight: "0.5rem solid #fff", }); const TheList = styled("div", { backgroundColor: "#000", borderRadius: "0.5rem", position: "relative", left: "-0.5rem", display: "flex", flexWrap: "wrap", padding: "0.5rem", gap: "0.5rem", flexDirection: "column", maxHeight: "8rem", alignContent: "flex-start", justifyContent: "center", flex: 1, }); const ListLink = styled("a", ({ color }: { color: string }) => ({ display: "block", padding: "0.5rem", color, textDecoration: "none", borderRadius: "0.4rem", transition: "all 0.2s ease-in-out", ":hover": { backgroundColor: color, color: "#000", }, }));