mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 05:05:07 -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
27 lines
567 B
TypeScript
27 lines
567 B
TypeScript
import { NavLink } from "@remix-run/react";
|
|
import type { LinkProps } from "@remix-run/react";
|
|
import clsx from "clsx";
|
|
import type * as React from "react";
|
|
|
|
export function SubNav({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div>
|
|
<nav className="sub-nav__container">{children}</nav>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function SubNavLink({
|
|
children,
|
|
className,
|
|
...props
|
|
}: LinkProps & {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<NavLink className={clsx("sub-nav__link", className)} end {...props}>
|
|
{children}
|
|
</NavLink>
|
|
);
|
|
}
|