add instructions about how to finish chapter

This commit is contained in:
an-lee
2024-07-23 16:55:59 +08:00
parent 23e1a2d595
commit 7d9938c3cb
3 changed files with 10 additions and 1 deletions

View File

@@ -93,7 +93,14 @@ export const ChapterContent = (props: {
</details>
)}
{chapter.examples.length > 0 && <h3>{t("examples")}</h3>}
{chapter.examples.length > 0 && (
<>
<h3>{t("examples")}</h3>
<div className="text-sm mb-4">
{t("howToFinishChapter")}
</div>
</>
)}
<div className="grid gap-4">
{chapter.examples.map((example, index) => (
<ExampleContent