Commit 11afd028 authored by timel's avatar timel

fix: small

parent 3aeafe5a
Pipeline #22902 failed with stages
in 19 minutes and 30 seconds
......@@ -16,10 +16,10 @@
}
.dialogs {
padding: 8px 0;
@include utils.scrollbar;
.item {
vertical-align: baseline;
// font-size: 15px;
.name {
font-weight: 500;
line-height: 1.375rem;
......@@ -30,11 +30,12 @@
margin-left: 8px;
}
.content {
font-size: 14px;
font-size: 13px;
color: #ccc;
margin-top: 2px;
}
padding: 8px 8px;
margin: 0 8px;
margin: 0 10px;
border-radius: 8px;
transition: 0.2s;
&:hover {
......
......@@ -7,6 +7,7 @@
--border-radius: 10px;
--sider-width: 300px;
.main {
position: relative;
flex: 1;
display: flex;
flex-direction: column;
......@@ -22,6 +23,8 @@
height: 100%;
background-color: hsla(0, 0%, 100%, 0.05);
transition: transform 0.3s;
backdrop-filter: blur(5px);
z-index: 1;
}
}
......@@ -30,17 +33,6 @@
gap: var(--gap-between-side-and-battle);
align-items: center;
margin-top: 80px;
.battle {
height: var(--battle-icon-width);
width: var(--battle-icon-width);
border-radius: 50%;
background: hsla(0, 0%, 100%, 0.1);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
font-size: 48px;
}
.side-box {
height: 120px;
width: var(--side-box-width);
......@@ -92,25 +84,19 @@
margin-left: auto;
}
.watch {
.btn-large {
min-width: 100px;
height: 40px;
background: hsla(0, 0%, 100%, 0.1);
border-radius: 6px;
display: flex;
align-items: center;
padding-left: 16px;
gap: 12px;
padding: 0 16px 0 16px;
gap: 8px;
cursor: pointer;
transition: 0.2s;
.btn-watch {
display: flex;
align-items: center;
gap: 8px;
}
.avatars-watch {
height: 100%;
padding: 0 8px;
place-items: center;
}
& > * {
......@@ -147,3 +133,17 @@
transform: translateX(calc(-1 * var(--sider-width) / 2));
}
}
.room-name {
position: absolute;
top: 40px;
left: 0;
right: 0;
width: fit-content;
margin: auto;
background: hsla(0, 0%, 100%, 0.1);
padding: 0 1.25em;
font-size: 13px;
line-height: 28px;
border-radius: 14px;
}
import { CheckCircleFilled } from "@ant-design/icons";
import { CaretRightOutlined, CheckCircleFilled } from "@ant-design/icons";
import { Avatar, Button, ConfigProvider, Skeleton, Space } from "antd";
import classNames from "classnames";
import { useState } from "react";
......@@ -54,6 +54,7 @@ export const Component: React.FC = () => {
<Chat />
</div>
<div className={styles.main}>
{/* <div className={styles["room-name"]}>Timel 的房间</div> */}
<Space>
<Select
title="卡组"
......@@ -67,11 +68,9 @@ export const Component: React.FC = () => {
{ value: "disabled", label: "Disabled", disabled: true },
]}
/>
<div className={styles.watch}>
<span className={styles["btn-watch"]}>
<div className={styles["btn-large"]}>
<IconFont type="icon-record" size={18} />
加入观战
</span>
<Avatar.Group className={styles["avatars-watch"]}>
<Avatar
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
......@@ -83,6 +82,10 @@ export const Component: React.FC = () => {
<Avatar style={{ backgroundColor: "#87d068" }} size="small" />
</Avatar.Group>
</div>
<div className={styles["btn-large"]}>
<IconFont type="icon-play" size={12} />
开始游戏
</div>
</Space>
<div className={styles["both-side-container"]}>
<div className={classNames(styles["side-box"], styles.me)}>
......
import { createFromIconfontCN } from "@ant-design/icons";
const _IconFont = createFromIconfontCN({
scriptUrl: ["//at.alicdn.com/t/c/font_4188978_x6rqg2kz3fa.js"],
scriptUrl: ["//at.alicdn.com/t/c/font_4188978_25l7e0zb6xo.js"],
});
export const IconFont: React.FC<{
......
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