mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 04:14:12 +01:00
home button
This commit is contained in:
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">
|
||||
|
||||
Reference in new issue
Block a user