-
Notifications
You must be signed in to change notification settings - Fork 7
/
Web3Tools.astro
35 lines (31 loc) · 1.04 KB
/
Web3Tools.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
import DetailedListView from "../components/DetailedListView.astro";
import HeaderSection from "../components/HeaderSection.astro";
import NewsletterSignupForm from "../components/NewsletterSignupForm.astro";
import { tools } from "../data/tools";
const t = (x: string): string => x;
const items = tools.map((tool) => {
return {
title: tool.title,
intro: tool.intro,
badges: tool.badges.map((x, i) => {
return {
...x,
// For typescript only
id: i.toString(),
slug: i.toString(),
};
}),
tagSize: "sm",
category: tool.category,
icon: tool.icon,
href: tool.path || `/web3-tools/${tool.slug}/`,
isExternal: tool.isExternal,
};
});
---
<HeaderSection color={"basic"} alignment={"center"} heading={t("Web3 Tools")} />
<div class="tools container">
<DetailedListView title="" subtitle="" items={items} showArrow />
</div>
<NewsletterSignupForm heading="Sign up for our newsletter" text="Be the first to know about releases and industry news and insights." showFeedButtons={false} />