rename the font
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { SocialIcons } from "@/components/utils/SocialIcons";
|
||||
import { Config } from "@/data/config";
|
||||
import { fontFzxbs, fontSypxzs } from "@/styles/font";
|
||||
import { fontFangZhengXiaoBiaoSongCN, fontSourceSerifScreenCN } from "@/styles/font";
|
||||
|
||||
export const HomeCover = () => {
|
||||
return (
|
||||
@@ -19,11 +19,11 @@ export const HomeCover = () => {
|
||||
src={Config.AvatarURL}
|
||||
/>
|
||||
</div>
|
||||
<div className={`${fontFzxbs.className} my-8 text-center text-4xl font-bold`}>{Config.Nickname}</div>
|
||||
<div className={`${fontFangZhengXiaoBiaoSongCN.className} my-8 text-center text-4xl font-bold`}>{Config.Nickname}</div>
|
||||
<SocialIcons />
|
||||
{Config.Sentence && (
|
||||
<div className="my-8 flex justify-center">
|
||||
<p className={`${fontSypxzs.className} text-lg`}>{Config.Sentence}</p>
|
||||
<p className={`${fontSourceSerifScreenCN.className} text-lg`}>{Config.Sentence}</p>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { fontFzxbs } from "@/styles/font";
|
||||
import { fontFangZhengXiaoBiaoSongCN } from "@/styles/font";
|
||||
|
||||
export const H2 = (props: JSX.IntrinsicElements["h2"]) => {
|
||||
return (
|
||||
<h2 className={`${fontFzxbs.className} mt-3 mb-1 scroll-mt-20`} id={props.id}>
|
||||
<h2 className={`${fontFangZhengXiaoBiaoSongCN.className} mt-3 mb-1 scroll-mt-20`} id={props.id}>
|
||||
{props.children}
|
||||
</h2>
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
|
||||
import { Config } from "@/data/config";
|
||||
import { fontFzxbs } from "@/styles/font";
|
||||
import { fontFangZhengXiaoBiaoSongCN } from "@/styles/font";
|
||||
import { nanoid } from "nanoid";
|
||||
import { useTheme } from "next-themes";
|
||||
import Link from "next/link";
|
||||
@@ -40,7 +40,7 @@ export const NavBar = () => {
|
||||
<nav className="responsive-width sticky top-0 z-50 flex justify-between py-3 backdrop-blur bg-white/50 dark:bg-black/50">
|
||||
<Link href="/" className="cursor-pointer">
|
||||
<h1
|
||||
className={`${fontFzxbs.className} my-auto border-b-4 border-b-black text-2xl font-bold dark:border-b-white`}
|
||||
className={`${fontFangZhengXiaoBiaoSongCN.className} my-auto border-b-4 border-b-black text-2xl font-bold dark:border-b-white`}
|
||||
>
|
||||
{Config.SiteTitle}
|
||||
</h1>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { normalizeDate } from "@/lib/date";
|
||||
import { fontSypxzs } from "@/styles/font";
|
||||
import { fontSourceSerifScreenCN } from "@/styles/font";
|
||||
import { TPostListItem } from "@/types/post-list";
|
||||
import { nanoid } from "nanoid";
|
||||
import Link from "next/link";
|
||||
@@ -11,7 +11,7 @@ export const PostList = (props: { data: TPostListItem[] }) => {
|
||||
{props.data.map((postListItem, index) => (
|
||||
<div
|
||||
key={`post-list-${nanoid()}`}
|
||||
className={`${fontSypxzs.className} flex flex-col justify-center ${
|
||||
className={`${fontSourceSerifScreenCN.className} flex flex-col justify-center ${
|
||||
index !== props.data.length - 1 && "border-b"
|
||||
} border-dashed border-gray-400 py-3`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user