chore(website): make biome happy

This commit is contained in:
JiPai
2024-09-06 15:42:50 +08:00
parent 7acb86a83e
commit c482230995
23 changed files with 396 additions and 472 deletions

View File

@@ -1,10 +1,10 @@
import { Link } from '@/i18n/routing'
import { Footer } from './Footer'
import { Header } from './Header'
import { useTranslations } from 'next-intl'
import { Link } from "@/i18n/routing";
import { useTranslations } from "next-intl";
import { Footer } from "./Footer";
import { Header } from "./Header";
export function SlimLayout() {
const t = useTranslations('404')
const t = useTranslations("404");
return (
<>
<div>
@@ -12,16 +12,12 @@ export function SlimLayout() {
</div>
<main className="flex flex-auto items-center justify-center text-center">
<div>
<h1 className="mb-4 text-6xl font-semibold text-primary">
404
</h1>
<p className="mb-4 text-lg text-muted-foreground">
{t('title')}
</p>
<h1 className="mb-4 text-6xl font-semibold text-primary">404</h1>
<p className="mb-4 text-lg text-muted-foreground">{t("title")}</p>
<p className="mt-4 text-muted-foreground">
{t('des')}{' '}
{t("des")}{" "}
<Link href="/" className="text-primary">
{t('action')}
{t("action")}
</Link>
</p>
</div>
@@ -30,5 +26,5 @@ export function SlimLayout() {
<Footer />
</div>
</>
)
);
}