diff --git a/assets/index.css b/assets/index.css index 4e41b69..2a5fa74 100644 --- a/assets/index.css +++ b/assets/index.css @@ -1,3 +1,15 @@ +@font-face { + font-family: "Noto Color Emoji"; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(@fontsource/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2) + format("woff2"), + url(@fontsource/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff) + format("woff"); +} + body { - margin: 0; -} \ No newline at end of file + margin: 0; + font-family: "Noto Color Emoji", sans-serif; +} diff --git a/assets/index.tsx b/assets/index.tsx index 308a7e3..3659847 100644 --- a/assets/index.tsx +++ b/assets/index.tsx @@ -6,6 +6,8 @@ import {HashRouter} from "react-router-dom"; import 'antd/dist/reset.css'; import './i18n' +import './index.css' + const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement) diff --git a/package.json b/package.json index a83a175..b4d3eed 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@babel/core": "^7.17.0", "@babel/preset-env": "^7.16.0", "@babel/preset-react": "^7.24.7", + "@fontsource/noto-color-emoji": "^5.0.27", "@symfony/webpack-encore": "^4.0.0", "@types/axios": "^0.14.0", "@types/jsonld": "^1.5.15", diff --git a/yarn.lock b/yarn.lock index adc5b56..7a8b554 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1499,6 +1499,11 @@ resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== +"@fontsource/noto-color-emoji@^5.0.27": + version "5.0.27" + resolved "https://registry.yarnpkg.com/@fontsource/noto-color-emoji/-/noto-color-emoji-5.0.27.tgz#61e40657bea980553bde8fd2d566104bd2859ad6" + integrity sha512-gsIMN5o8qoRLrA+XyDNKKnMNpTbwpNbINisJqirLOLXl83arOV2sHRnNOkVht2gzUcImUxEUBGektp56G3Vj9w== + "@jest/schemas@^29.6.3": version "29.6.3" resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"