mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 13:15:18 -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
33 lines
886 B
TypeScript
33 lines
886 B
TypeScript
import { Link } from "@remix-run/react";
|
|
import navItems from "~/components/layout/nav-items.json";
|
|
import { useTranslation } from "~/hooks/useTranslation";
|
|
import { navIconUrl } from "~/utils/urls";
|
|
import { Image } from "../Image";
|
|
|
|
export function SideNav() {
|
|
const { t } = useTranslation(["common"]);
|
|
|
|
return (
|
|
<nav className="layout__side-nav">
|
|
{navItems.map((item) => {
|
|
return (
|
|
<Link
|
|
to={item.url}
|
|
key={item.name}
|
|
prefetch={item.prefetch ? "render" : undefined}
|
|
>
|
|
<div className="layout__side-nav-image-container">
|
|
<Image
|
|
path={navIconUrl(item.name)}
|
|
height={32}
|
|
width={32}
|
|
alt={t(`common:pages.${item.name}` as any)}
|
|
/>
|
|
</div>
|
|
</Link>
|
|
);
|
|
})}
|
|
</nav>
|
|
);
|
|
}
|