mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-28 12:23:24 +01:00
faster banners
This commit is contained in:
23 files changed
+67
-4
No files matched your search
@@ -1,4 +1,5 @@
|
||||
---
|
||||
import { alias } from "@blitzkit/core";
|
||||
import { GearIcon } from "@radix-ui/react-icons";
|
||||
import { api } from "../api/dynamic";
|
||||
import { tools, type Tool } from "../constants/tools";
|
||||
@@ -170,7 +171,10 @@ export const filtered = Object.values(tools).filter(
|
||||
<LinkI18nWrapper {locale} href={`/${tool.slug ?? tool.id}`}>
|
||||
<div class="tool">
|
||||
<div
|
||||
style={`background-image: url(/media/tools/banners/${tool.slug ?? tool.id}.webp)`}
|
||||
style={`background-image: url(${alias(
|
||||
"api",
|
||||
`/tools/${tool.id}/banners/thumbnail.webp`,
|
||||
)})`}
|
||||
class="logo"
|
||||
/>
|
||||
|
||||
|
||||
Reference in new issue
Block a user