Commit 479b7694 authored by Chunchi Che's avatar Chunchi Che

optimize styles fo EndModal

parent f25ddf27
Pipeline #22693 passed with stages
in 11 minutes and 29 seconds
.end-container {
position: relative;
text-align: center;
.result {
font-size: 30px;
font-family: cursive;
color: var(--text-color);
}
.reason {
font-size: 20px;
font-family: "Gill Sans", sans-serif;
}
}
import "./index.scss";
import React from "react";
import React, { CSSProperties } from "react";
import { proxy, useSnapshot } from "valtio";
import { fetchStrings } from "@/api";
......@@ -45,9 +45,16 @@ export const EndModal: React.FC = () => {
rs();
}}
>
<p>{isWin ? "Win" : "Defeated"}</p>
<p>{reason}</p>
{isReplay ? <></> : <p>{fetchStrings("!system", 1340)}</p>}
<div className="end-container">
<p
className="result"
style={{ "--text-color": isWin ? "blue" : "red" } as CSSProperties}
>
{isWin ? "Win" : "Defeated"}
</p>
<p className="reason">{reason}</p>
{isReplay ? <></> : <p>{fetchStrings("!system", 1340)}</p>}
</div>
</NeosModal>
);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment