hide some tools

This commit is contained in:
tresabhi committed 2026-11-15 21:48:11 -06:00
1 parent e14b8cad38
commit 966651284d
10 files changed
+25 -10

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

@@ -29,7 +29,12 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
overflow: hidden;
&[data-disabled="true"] {
opacity: 0.25;
opacity: calc(1 / 8);
cursor: not-allowed;
.link {
pointer-events: none;
}
}
}
@@ -76,6 +81,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
<div
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
class="container"
data-disabled={String(tool.disabled ?? false)}
>
<LinkI18n
{locale}
@@ -87,8 +93,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
<div
class="background"
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
>
</div>
></div>
<div class="content" data-minor={minor}>
<div class="wrapper">
+14 -2
View File
@@ -4,6 +4,8 @@ export interface Tool {
path?: string;
href?: string;
disabled?: boolean;
banner_background_position: "top" | "center" | "bottom";
}
@@ -13,6 +15,7 @@ export const tools: Record<string, Tool> = {
banner_background_position: "top",
},
players: {
disabled: true,
id: "players",
banner_background_position: "top",
},
@@ -21,14 +24,17 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom",
},
performance: {
disabled: true,
id: "performance",
banner_background_position: "bottom",
},
playlist: {
disabled: true,
id: "playlist",
banner_background_position: "bottom",
},
mixer: {
disabled: true,
id: "mixer",
banner_background_position: "bottom",
},
@@ -37,14 +43,17 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom",
},
avatars: {
disabled: true,
id: "avatars",
banner_background_position: "bottom",
},
backgrounds: {
disabled: true,
id: "backgrounds",
banner_background_position: "bottom",
},
session: {
disabled: true,
id: "session",
banner_background_position: "bottom",
},
@@ -62,19 +71,22 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom",
},
api: {
disabled: true,
id: "api",
banner_background_position: "bottom",
},
changelogs: {
disabled: true,
id: "changelogs",
banner_background_position: "bottom",
},
settings: {
id: "changelogs",
id: "settings",
banner_background_position: "center",
},
credits: {
disabled: true,
id: "credits",
button: "bronze",
banner_background_position: "center",
},
};
@@ -5,7 +5,6 @@ import locales from "@blitzkit/i18n/locales.json";
import { api } from "../../../api/dynamic";
import { mixStaticPaths } from "../../../astro/mixStaticPaths";
import { AesonPlug } from "../../../components/AesonPlug";
import { Beg } from "../../../components/Beg";
import HelpTranslate from "../../../components/HelpTranslate.astro";
import HomeCosmetics from "../../../components/HomeCosmetics.astro";
import HomeGames from "../../../components/HomeGames.astro";
@@ -68,8 +67,6 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
<HelpTranslate {locale} />
<Beg />
{environment === "preview" && <AesonPlug />}
<Section>