Compare commits

...

2 Commits

Author SHA1 Message Date
bc0dab64c6 ...
Some checks reported errors
continuous-integration/drone Build encountered an error
continuous-integration/drone/push Build was killed
2025-11-21 10:22:25 +08:00
cdfd676c0d 添加记忆界面的阿拉伯衬线字体 2025-11-21 10:22:25 +08:00
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@@ -9,6 +9,11 @@ import { useAudioPlayer } from "@/hooks/useAudioPlayer";
import { getTTSAudioUrl } from "@/lib/browser/tts"; import { getTTSAudioUrl } from "@/lib/browser/tts";
import { VOICES } from "@/config/locales"; import { VOICES } from "@/config/locales";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
import localFont from "next/font/local";
const myFont = localFont({
src: "../../../../public/fonts/NotoNaskhArabic-VariableFont_wght.ttf",
});
interface MemorizeProps { interface MemorizeProps {
textPairs: text_pair[]; textPairs: text_pair[];
@@ -43,7 +48,7 @@ const Memorize: React.FC<MemorizeProps> = ({ textPairs }) => {
<Container className="p-6 flex flex-col gap-8 h-96 justify-center items-center"> <Container className="p-6 flex flex-col gap-8 h-96 justify-center items-center">
{(getTextPairs().length > 0 && ( {(getTextPairs().length > 0 && (
<> <>
<div className="h-36 flex flex-col gap-2 justify-start items-center font-serif text-3xl"> <div className={`h-36 flex flex-col gap-2 justify-start items-center ${myFont.className} text-3xl`}>
<div className="text-sm text-gray-500"> <div className="text-sm text-gray-500">
{t("progress", { {t("progress", {
current: index + 1, current: index + 1,