Commit e74d25d2 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/text' into 'main'

调整一下匹配页的文案

See merge request !288
parents 7a9e9f0c 673b2fa0
...@@ -24,9 +24,7 @@ const NeosConfig = useConfig(); ...@@ -24,9 +24,7 @@ const NeosConfig = useConfig();
export const Component: React.FC = () => { export const Component: React.FC = () => {
const { message } = App.useApp(); const { message } = App.useApp();
const serverList = NeosConfig.servers; const serverList = NeosConfig.servers;
const [server, setServer] = useState( const server = `${serverList[0].ip}:${serverList[0].port}`;
`${serverList[0].ip}:${serverList[0].port}`,
);
const { decks } = deckStore; const { decks } = deckStore;
const [deckName, setDeckName] = useState(decks.at(0)?.deckName ?? ""); const [deckName, setDeckName] = useState(decks.at(0)?.deckName ?? "");
const user = accountStore.user; const user = accountStore.user;
...@@ -90,20 +88,6 @@ export const Component: React.FC = () => { ...@@ -90,20 +88,6 @@ export const Component: React.FC = () => {
<div className={styles.container}> <div className={styles.container}>
<div className={styles.wrap}> <div className={styles.wrap}>
<Space size={16}> <Space size={16}>
<Select
title="服务器"
showSearch
value={server}
style={{ width: 200 }}
onChange={
// @ts-ignore
(value) => setServer(value)
}
options={serverList.map((item) => ({
value: `${item.ip}:${item.port}`,
label: item.name,
}))}
/>
<Select <Select
title="卡组" title="卡组"
showSearch showSearch
...@@ -134,13 +118,13 @@ export const Component: React.FC = () => { ...@@ -134,13 +118,13 @@ export const Component: React.FC = () => {
</Space> </Space>
<div className={styles["mode-select"]}> <div className={styles["mode-select"]}>
<Mode <Mode
title="竞技匹配" title="MC竞技匹配"
desc="与天梯其他数万名玩家激战,力争最强。每月最后一天22点结算,公布排名并获取奖励。" desc="与MyCard天梯其他数万名玩家激战,力争最强。每月最后一天22点结算,公布排名并获取奖励。"
icon={<IconFont type="icon-battle" size={32} />} icon={<IconFont type="icon-battle" size={32} />}
onClick={onCompetitiveMatch} onClick={onCompetitiveMatch}
/> />
<Mode <Mode
title="娱乐匹配" title="MC娱乐匹配"
desc="暂且搁置胜负,享受决斗的乐趣。过去一周竞技匹配使用数最多的20个卡组将被禁用。" desc="暂且搁置胜负,享受决斗的乐趣。过去一周竞技匹配使用数最多的20个卡组将被禁用。"
icon={ icon={
matchLoading ? ( matchLoading ? (
...@@ -151,9 +135,15 @@ export const Component: React.FC = () => { ...@@ -151,9 +135,15 @@ export const Component: React.FC = () => {
} }
onClick={onEntertainMatch} onClick={onEntertainMatch}
/> />
<Mode
title="MC观战列表"
desc="观看萌卡MyCard上正在进行的决斗。"
icon={<PlayCircleFilled />}
onClick={onWatchList}
/>
<Mode <Mode
title="单人模式" title="单人模式"
desc="开启一场与AI的决斗,验证自己的卡组,或者只是打发时间。" desc="在Koishi 7210服务器上开启一场与AI的决斗,验证自己的卡组,或者只是打发时间。"
icon={ icon={
singleLoading ? ( singleLoading ? (
<LoadingOutlined /> <LoadingOutlined />
...@@ -175,12 +165,6 @@ export const Component: React.FC = () => { ...@@ -175,12 +165,6 @@ export const Component: React.FC = () => {
icon={<IconFont type="icon-record" size={24} />} icon={<IconFont type="icon-record" size={24} />}
onClick={replayOpen} onClick={replayOpen}
/> />
<Mode
title="观战列表"
desc="观看萌卡MyCard上正在进行的决斗。"
icon={<PlayCircleFilled />}
onClick={onWatchList}
/>
</div> </div>
</div> </div>
</div> </div>
......
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