mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 09:20:24 -05:00
* Remove light mode * Trim header * New front page initial * Get rid of build layout * Breadcrumbs * Desktop side nav * Overhaul colors * Add breadcrumbs * New sub nav style * Front page action buttons * Add back add new build button * Add articles page with icon * Minor Object damage page layout tweaks * Remove one unnecessary render from object damage * Fix wrong link in article page * Profile -> My Page in header * Log in/out buttons in front * Add drawings to front page * Remove unnecessary comment
30 lines
791 B
TypeScript
30 lines
791 B
TypeScript
import { lazy } from "react";
|
|
import type { LinksFunction } from "@remix-run/node";
|
|
import styles from "~/styles/plans.css";
|
|
import type { SendouRouteHandle } from "~/utils/remix";
|
|
import { useIsMounted } from "~/hooks/useIsMounted";
|
|
import { navIconUrl, PLANNER_URL } from "~/utils/urls";
|
|
|
|
export const handle: SendouRouteHandle = {
|
|
i18n: ["weapons"],
|
|
breadcrumb: () => ({
|
|
imgPath: navIconUrl("plans"),
|
|
href: PLANNER_URL,
|
|
type: "IMAGE",
|
|
}),
|
|
};
|
|
|
|
export const links: LinksFunction = () => {
|
|
return [{ rel: "stylesheet", href: styles }];
|
|
};
|
|
|
|
const Planner = lazy(() => import("~/components/Planner"));
|
|
|
|
export default function MapPlannerPage() {
|
|
const isMounted = useIsMounted();
|
|
|
|
if (!isMounted) return <div className="plans__placeholder" />;
|
|
|
|
return <Planner />;
|
|
}
|