add: csb faucet
This commit is contained in:
parent
e29b4d90e2
commit
8758a330c2
|
|
@ -0,0 +1,21 @@
|
||||||
|
"use client"
|
||||||
|
|
||||||
|
import { useTranslations } from "next-intl"
|
||||||
|
|
||||||
|
import { useWalletClaimCSBModal } from "@crossbell/connect-kit"
|
||||||
|
|
||||||
|
import { Button } from "~/components/ui/Button"
|
||||||
|
|
||||||
|
export function ClaimCSBButton() {
|
||||||
|
const t = useTranslations()
|
||||||
|
const claimCSBModal = useWalletClaimCSBModal()
|
||||||
|
return (
|
||||||
|
<Button
|
||||||
|
onClick={() => claimCSBModal.show()}
|
||||||
|
aria-label="claim csb"
|
||||||
|
isAutoWidth
|
||||||
|
>
|
||||||
|
⛽ {t("Claim CSB")}
|
||||||
|
</Button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -276,6 +276,15 @@ export const ConnectButton = ({
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
></Menu>
|
></Menu>
|
||||||
|
<i
|
||||||
|
className={cn(
|
||||||
|
"i-mingcute-currency-euro-line",
|
||||||
|
`${
|
||||||
|
size === "base" ? "size-6 ml-2" : "size-5 ml-1"
|
||||||
|
} text-zinc-500 cursor-pointer hidden sm:block`,
|
||||||
|
)}
|
||||||
|
onClick={() => csbDetailModal.show()}
|
||||||
|
/>
|
||||||
<div className="h-full w-[2px] py-1 ml-2">
|
<div className="h-full w-[2px] py-1 ml-2">
|
||||||
<div className="size-full bg-zinc-200 rounded-full"></div>
|
<div className="size-full bg-zinc-200 rounded-full"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import getQueryClient from "~/lib/query-client"
|
||||||
import { getShowcase } from "~/queries/home.server"
|
import { getShowcase } from "~/queries/home.server"
|
||||||
import { getBlockNumber } from "~/queries/site.server"
|
import { getBlockNumber } from "~/queries/site.server"
|
||||||
|
|
||||||
|
import { ClaimCSBButton } from "../common/ClaimCSBButton"
|
||||||
import { FollowAllButton } from "../common/FollowAllButton"
|
import { FollowAllButton } from "../common/FollowAllButton"
|
||||||
import { BlockNumber } from "./BlockNumber"
|
import { BlockNumber } from "./BlockNumber"
|
||||||
import PromotionLinks from "./PromotionLinks"
|
import PromotionLinks from "./PromotionLinks"
|
||||||
|
|
@ -91,6 +92,10 @@ export async function HomeSidebar({ hideSearch }: { hideSearch?: boolean }) {
|
||||||
</>
|
</>
|
||||||
</ShowMoreContainer>
|
</ShowMoreContainer>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="text-center text-zinc-700 space-y-3">
|
||||||
|
<p className="font-bold text-lg">{t("Need More CSB?")}</p>
|
||||||
|
<ClaimCSBButton />
|
||||||
|
</div>
|
||||||
</Hydrate>
|
</Hydrate>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,5 +117,7 @@
|
||||||
"zh": "Chinese",
|
"zh": "Chinese",
|
||||||
"zh-TW": "Traditional Chinese",
|
"zh-TW": "Traditional Chinese",
|
||||||
"Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks",
|
"Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks",
|
||||||
"Become a patron of {name}": "Become a patron of {name}"
|
"Become a patron of {name}": "Become a patron of {name}",
|
||||||
|
"Need More CSB?": "Need More CSB?",
|
||||||
|
"Claim CSB": "Claim CSB"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -220,5 +220,7 @@
|
||||||
"en": "英語",
|
"en": "英語",
|
||||||
"ja": "日本語",
|
"ja": "日本語",
|
||||||
"zh": "中国語",
|
"zh": "中国語",
|
||||||
"zh-TW": "繁体字中国語"
|
"zh-TW": "繁体字中国語",
|
||||||
|
"Need More CSB?": "もっと CSB が必要ですか?",
|
||||||
|
"Claim CSB": "CSB を請求"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -411,5 +411,7 @@
|
||||||
"New Short": "新增圖文",
|
"New Short": "新增圖文",
|
||||||
"Publishing": "你發佈的內容",
|
"Publishing": "你發佈的內容",
|
||||||
"Support Markdown": "支援 Markdown 語法",
|
"Support Markdown": "支援 Markdown 語法",
|
||||||
"on-chain posting on": "條鏈上發布於"
|
"on-chain posting on": "條鏈上發布於",
|
||||||
|
"Need More CSB?": "需要更多 CSB?",
|
||||||
|
"Claim CSB": "領取 CSB"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -436,5 +436,7 @@
|
||||||
"zh-TW": "繁体中文",
|
"zh-TW": "繁体中文",
|
||||||
"Footer": "页脚",
|
"Footer": "页脚",
|
||||||
"Support Markdown": "支持 Markdown",
|
"Support Markdown": "支持 Markdown",
|
||||||
"on-chain posting on": "条链上发布于"
|
"on-chain posting on": "条链上发布于",
|
||||||
|
"Need More CSB?": "需要更多 CSB?",
|
||||||
|
"Claim CSB": "领取 CSB"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue