fancy navbar

This commit is contained in:
tresabhi committed 2026-11-28 15:42:45 -06:00
1 parent ec4338c447
commit b9482e3164
17 files changed
+422 -198

No files matched your search

+36 -2
View File
@@ -10,7 +10,6 @@ export interface Tool {
banner_background_position: "top" | "center" | "bottom";
hide_in_navbar?: boolean;
hide_in_navbar_desktop?: boolean;
}
export const tools: Record<string, Tool> = {
@@ -18,7 +17,6 @@ export const tools: Record<string, Tool> = {
id: "home",
slug: "",
banner_background_position: "center",
hide_in_navbar_desktop: true,
},
tanks: {
id: "tanks",
@@ -97,6 +95,42 @@ export const tools: Record<string, Tool> = {
},
};
export interface ToolGroup {
// Key into strings.home, which titles the group on the home page
id: string;
// Where clicking the group's title in the navbar goes
default: string;
tools: string[];
}
export const toolGroups: ToolGroup[] = [
{
id: "tanks",
default: "tanks",
tools: ["tanks", "compare", "performance", "tier_list"],
},
{
id: "players",
default: "players",
tools: ["players", "session", "embed", "playlist"],
},
{
id: "games",
default: "mixer",
tools: ["mixer", "guesser"],
},
{
id: "cosmetics",
default: "avatars",
tools: ["avatars", "backgrounds"],
},
{
id: "technical",
default: "api",
tools: ["api", "changelogs"],
},
];
export enum ToolBannerSize {
Thumbnail = "thumbnail",
Poster = "poster",