feat(landing): section-nested tool routes, section index pages, and section-prefixed links

This commit is contained in:
SnapOtter
2026-06-20 23:53:54 +08:00
parent 5dbbac6c43
commit f158be6aaa
7 changed files with 105 additions and 21 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
---
import { TOOLS } from "@snapotter/shared";
import { TOOLS, toolSection } from "@snapotter/shared";
import * as lucideIcons from "lucide";
const MODALITY_META: Record<string, { label: string; color: string }> = {
@@ -56,7 +56,7 @@ function renderIcon(iconName: string): string {
hidden
>
<a
href={`/tools/${tool.id}`}
href={`/tools/${toolSection(tool)}/${tool.id}/`}
class="flex items-center gap-3 px-4 py-2.5 no-underline transition-colors hover:bg-primary-subtle"
>
<svg