home button

This commit is contained in:
tresabhi committed 2026-11-19 11:20:42 -06:00
1 parent 73917b46d8
commit 6ad21a19a7
5 files changed
+57 -76

No files matched your search

@@ -17,7 +17,7 @@ const { locale } = Astro.props;
const strings = await api.strings(locale);
export const filtered = Object.values(tools).filter(
(tool) => !tool.href && (tool.navbar ?? true) && !tool.disabled,
(tool) => !tool.href && !tool.hide_in_navbar && !tool.disabled,
);
---
@@ -170,25 +170,27 @@ export const filtered = Object.values(tools).filter(
</LinkI18nWrapper>
<div class="tools">
{filtered.map((tool) => (
<>
<LinkI18nWrapper {locale} href={`/${tool.slug ?? tool.id}`}>
<div class="tool">
<div
style={`background-image: url(${alias(
"api",
`/tools/${tool.id}/banners/thumbnail.webp`,
)})`}
class="logo"
/>
{filtered
.filter((tool) => !tool.hide_in_navbar_desktop)
.map((tool) => (
<>
<LinkI18nWrapper {locale} href={`/${tool.slug ?? tool.id}`}>
<div class="tool">
<div
style={`background-image: url(${alias(
"api",
`/tools/${tool.id}/banners/thumbnail.webp`,
)})`}
class="logo"
/>
<Text className="name">
{strings.tools[tool.id as keyof typeof strings.tools].name}
</Text>
</div>
</LinkI18nWrapper>
</>
))}
<Text className="name">
{strings.tools[tool.id as keyof typeof strings.tools].name}
</Text>
</div>
</LinkI18nWrapper>
</>
))}
</div>
<LinkI18nWrapper {locale} href="/settings">