Skip to content

Commit

Permalink
fix fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
sirnicolaz committed Sep 20, 2024
1 parent 7b6cdf8 commit 864ef09
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 207 deletions.
2 changes: 2 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@tanstack/react-query": "5.45.1",
"@uidotdev/usehooks": "^2.4.1",
"burner-connector": "^0.0.8",
"chakra-ui-markdown-renderer": "^4.1.0",
"connectkit": "^1.8.2",
"ethereum-ens-name": "^0.0.3",
"ethers": "6.7.0",
Expand All @@ -31,6 +32,7 @@
"react-markdown": "^9.0.1",
"react-qr-code": "^2.0.15",
"react-router-dom": "^6.26.1",
"rehype-raw": "^7.0.0",
"use-local-storage": "^3.0.0",
"viem": "^2.21.9",
"wagmi": "latest"
Expand Down
110 changes: 110 additions & 0 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion web/src/Quest.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Heading, VStack } from "@chakra-ui/react";
import { useChapter } from "./hooks/useChapter";
import Markdown from "react-markdown";
import ChakraUIRenderer from "chakra-ui-markdown-renderer";
import Puzzle from "./Puzzle";
import rehypeRaw from "rehype-raw";
import { checkSolutionMatch } from "./lib";

function Quest() {
Expand All @@ -24,7 +26,9 @@ function Quest() {
<Heading variant="h2">
Chapter {currentSmartContractChapterIndex}
</Heading>
<Markdown>{currentChapterContent}</Markdown>
<Markdown components={ChakraUIRenderer()} rehypePlugins={[rehypeRaw]}>
{currentChapterContent}
</Markdown>
</VStack>
</Puzzle>
);
Expand Down
12 changes: 11 additions & 1 deletion web/src/theme/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
font-weight: 400;
src: url(./fonts/BundesSans-Regular.ttf);
}
@font-face {
font-family: "Bundes";
font-weight: 700;
src: url(./fonts/BundesSans-Regular.ttf);
}
@font-face {
font-family: "Dot";
font-weight: 400;
Expand All @@ -15,7 +20,12 @@
}
@font-face {
font-family: OCR;
font-weight: 400;
font-weight: 700;
src: url(./fonts/OCR-AStd-Regular.ttf);
}
@font-face {
font-family: OCR;
font-weight: 700;
src: url(./fonts/OCR-AStd-Regular.ttf);
}
@font-face {
Expand Down
Binary file removed web/src/theme/fonts/BundesSans-Regular.ttf
Binary file not shown.
Binary file removed web/src/theme/fonts/Dot.ttf
Binary file not shown.
Loading

0 comments on commit 864ef09

Please sign in to comment.