Skip to content

Commit

Permalink
增加fq
Browse files Browse the repository at this point in the history
  • Loading branch information
master1lan committed Jan 17, 2023
1 parent 41514c6 commit d3c8901
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 4 deletions.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

77 changes: 76 additions & 1 deletion src/routers/layout/layout.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,82 @@
left: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
//todo 根据应援色修改

button {
position: absolute;
transform: translate(-20px, -10px);
}
}
}
}

.modal {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border-radius: 4px;
padding: 15px 10px;
max-width: 400px;
width: 90%;
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;

//todo 优化fq
ul {
display: flex;
flex-flow: column nowrap;
}

li {
margin: 10px;
list-style: none;
box-sizing: border-box;

&>p:not(:last-of-type) {
margin-bottom: 12px;

}

&>p {
display: flex;

strong {
flex: 0 0 25px;
}
}


}
}


.line_text {
width: 100%;
// color: #a2a9b6;
border: 0;
font-size: 14px;
padding: 1em 0;
position: relative;
-webkit-mask-image: linear-gradient(to right,
transparent,
black,
transparent);
mask-image: linear-gradient(to right, transparent, black, transparent);

&::before {
content: attr(data-content);
position: absolute;
padding: 0 1ch;
line-height: 1px;
border: solid #d0d0d5;
border-width: 0 99vw;
width: fit-content;
/* for 不支持fit-content浏览器 */
white-space: nowrap;
left: 50%;
transform: translateX(-50%);
}
}
58 changes: 56 additions & 2 deletions src/routers/layout/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,70 @@
import { FC } from "react";
import { Button, Modal } from "@mui/material";
import { FC, useState } from "react";
import { Link } from "react-router-dom";
import styles from "./layout.module.less";

export default function LOGO() {
const [open, set] = useState(false),
handlerClick = () => set((open) => !open);
return (
<div className={styles["logo"]}>
<Link to='/'>
<h1>EOEfans-web端</h1>
<h1>
EOEfans-web端
<Button onClick={handlerClick} sx={{ padding: "0" }}>
QA
</Button>
<Modal open={open} onClose={handlerClick}>
<div className={styles["modal"]}>
<hr className={styles["line_text"]} data-content='QA' />
<ul>
<li>
<p>
<strong>Q: </strong>
<span>为什么界面这么丑?</span>
</p>
<p>
<strong>A: </strong>
<span>web端没有UI捏🙇‍♂️🙇‍♂️🙇‍♂️果咩。</span>
</p>
</li>
<li>
<p>
<strong>Q: </strong>
<span>如何查找我想看的视频类型?</span>
</p>
<p>
<strong>A: </strong>
<span>
😩目前只能通过点击下方tag栏进行查询,其中各分区、原创和转载、
最新发布和最多播放互斥外其他tag皆满足异或查询。
<br />
🤔tag排序不是固定的,可以使用鼠标或者触摸按住tag半秒后进行移动。
<br />
🤗可以自定义任何你想要的tag栏顺序,下一次访问也有效。
</span>
</p>
</li>
</ul>
<Button
sx={{
position: "relative",
left: "50%",
transform: "translate(-50%,0)",
}}
onClick={handlerClick}
>
我知道了
</Button>
</div>
</Modal>
</h1>
<Yituo width={"220px"} height={"125px"} />
</Link>
</div>
);
}

//todo 修改logo

const Yituo: FC<{
Expand Down

0 comments on commit d3c8901

Please sign in to comment.