mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
fancy navbar
This commit is contained in:
17 files changed
+422
-198
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user