changed font for korean, fixed markup warning

This commit is contained in:
ad044 2021-08-25 19:15:08 +04:00
parent 2987fee9b6
commit b8ea35657a
2 changed files with 8 additions and 3 deletions

View file

@ -6,6 +6,7 @@ const MediaPlayer = () => {
// use it as a guard to avoid multiple set states inside updateTime
const lastSetPercentageRef = useRef<undefined | number>(undefined);
const language = useStore((state) => state.language);
const requestRef = useRef();
const videoRef = createRef<HTMLVideoElement>();
@ -71,7 +72,11 @@ const MediaPlayer = () => {
<track id={"track"} ref={trackRef} kind="metadata" default />
</video>
<div id={"subtitle-container"}>
<p ref={subtitleRef} id={"subtitle"} />
<p
ref={subtitleRef}
id={"subtitle"}
style={language === "ko" ? { fontFamily: "sans-serif" } : {}}
/>
</div>
</>
);

View file

@ -17,8 +17,8 @@ const MainPage = () => {
This is a web reimplementation of the Serial Experiments Lain PSX game
with the aim to provide multi-language support.
<br />
<h3><b>Please make sure to read the <Link to="/notes">notes</Link> before you
start playing.</b></h3>
<b>Please make sure to read the <Link to="/notes">notes</Link> before you
start playing.</b>
<br />
<br />
</p>