mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 04:40:46 -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
34 lines
943 B
TypeScript
34 lines
943 B
TypeScript
import type { LinksFunction } from "@remix-run/node";
|
|
import { Outlet } from "@remix-run/react";
|
|
import { Main } from "~/components/Main";
|
|
import { SubNav, SubNavLink } from "~/components/SubNav";
|
|
import styles from "~/styles/plus.css";
|
|
import { type SendouRouteHandle } from "~/utils/remix";
|
|
import { navIconUrl, plusSuggestionPage } from "~/utils/urls";
|
|
|
|
export const links: LinksFunction = () => {
|
|
return [{ rel: "stylesheet", href: styles }];
|
|
};
|
|
|
|
export const handle: SendouRouteHandle = {
|
|
navItemName: "plus",
|
|
breadcrumb: () => ({
|
|
imgPath: navIconUrl("plus"),
|
|
href: plusSuggestionPage(),
|
|
type: "IMAGE",
|
|
}),
|
|
};
|
|
|
|
export default function PlusPageLayout() {
|
|
return (
|
|
<Main>
|
|
<SubNav>
|
|
<SubNavLink to="suggestions">Suggestions</SubNavLink>
|
|
<SubNavLink to="voting/results">Results</SubNavLink>
|
|
<SubNavLink to="voting">Voting</SubNavLink>
|
|
</SubNav>
|
|
<Outlet />
|
|
</Main>
|
|
);
|
|
}
|