Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { format } from "date-fns";
import { zhCN } from "date-fns/locale";
import { useTranslation } from "next-i18next";
import Image from "@/components/image";

export default function Footer({ isCNRegion }: { isCNRegion: boolean }) {
const dateString = format(LASTCOMMITDATETIME, "yyyy/MM/dd", { locale: zhCN });
Expand Down Expand Up @@ -55,7 +56,9 @@
</div>

<div className="text-left">
<h3 className="text-gray-700 hidden md:block mb-2">{t("footer.aboutUs")}</h3>
<h3 className="text-gray-700 hidden md:block mb-2">
{t("footer.aboutUs")}

Check warning on line 60 in src/components/layout/footer.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/components/layout/footer.tsx#L60

Unsafe call of an `error` type typed value.
</h3>
<ul className="flex md:flex-col">
{AboutUsLinks.map((link) => (
<li key={link.link}>
Expand Down Expand Up @@ -94,6 +97,18 @@
</span>
)}
</div>
{isCNRegion && (
<div className="mt-1 flex items-center md:justify-end gap-1">
<Image alt="beian" src="/ga.png" width={16} height={16} />
<a
href="https://beian.mps.gov.cn/#/query/webSearch?code=31010502007546"
target="_blank"
rel="noreferrer"
>
沪公网安备31010502007546号
</a>
</div>
)}
</div>
</div>
</footer>
Expand Down