mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-14 16:48:02 -05:00
- fix issue #426: zkEVM project page doesn't display all posts (https://github.com/privacy-scaling-explorations/pse.dev/issues/426) - fix issue #425: make all links elements as tag element across all pages (https://github.com/privacy-scaling-explorations/pse.dev/issues/425) - fix issue #425: Syntax highlights for code snippets #424 wa (https://github.com/privacy-scaling-explorations/pse.dev/issues/424)
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
"use client"
|
|
|
|
import { Banner } from "../banner"
|
|
import { useTranslation } from "@/app/i18n/client"
|
|
import { Icons } from "../icons"
|
|
import { siteConfig } from "@/config/site"
|
|
import Link from "next/link"
|
|
import { Button } from "../ui/button"
|
|
|
|
export const HomepageBanner = ({ lang }: { lang: any }) => {
|
|
const { t } = useTranslation(lang, "homepage")
|
|
const { t: common } = useTranslation(lang, "common")
|
|
|
|
return (
|
|
<Banner
|
|
title={common("connectWithUs")}
|
|
subtitle={common("connectWithUsDescription")}
|
|
>
|
|
<Link
|
|
href={siteConfig.links.discord}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
passHref
|
|
className="mx-auto"
|
|
>
|
|
<Button>
|
|
<div className="flex items-center gap-2">
|
|
<Icons.discord fill="white" className="h-4" />
|
|
<span className="text-[14px] uppercase">{t("joinOurDiscord")}</span>
|
|
<Icons.externalUrl fill="white" className="h-5" />
|
|
</div>
|
|
</Button>
|
|
</Link>
|
|
</Banner>
|
|
)
|
|
}
|