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