Skip to content

Commit

Permalink
⚡ feat(custom): 测试1.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
master1lan committed Mar 1, 2023
1 parent 05addba commit 8e656d5
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 91 deletions.
2 changes: 1 addition & 1 deletion src/routers/layout/logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useScreenSize } from "@components/proview/screenSize";

const QAStorage = new Storage("QAUpdate");
//暂时先这样
const _qa_update_time = `2023-2-2`;
const _qa_update_time = `2023-3-1`;
const useCheckQANews = () => {
const local_qa_value = useMemo(() => {
return QAStorage.getLocalStorage("");
Expand Down
144 changes: 64 additions & 80 deletions src/routers/layout/logo/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Link, Modal, styled } from "@mui/material";
import { Link as Rlink } from "react-router-dom";
import { FC } from "react";
import { FC, ReactElement } from "react";
import styles from "./logo.module.less";

export const Explain: FC<{ open: boolean; handlerClick: () => void }> = (
Expand Down Expand Up @@ -33,87 +33,71 @@ export const H1 = styled("h1")(({ theme }) => ({
},
}));

const QALists: { question: ReactElement; answer: ReactElement }[] = [
{
question: <>露早tag为什么不是应援色?</>,
answer: (
<>
露早GOGO的应援色为
<span
style={{
color: "#3dff9e",
}}
>
#3dff9e
</span>
,tag字面显示不明显,所以更换为黑露早形态的
<span style={{ color: "#A0191D" }}>#A0191D</span>
</>
),
},
{
question: <>如何进行用户反馈?</>,
answer: (
<>
请前往
<Link
href={`http://eoe.best/appfeedback`}
target='_blank'
underline='none'
>
eoefans反馈
</Link>
</>
),
},
{
question: <>图片页图片太小了?</>,
answer: (
<>
图片页可点击图片进入放大镜模式,支持手势返回和空白处返回;可使用双指放大对图片大小进行调整。
</>
),
},
{
question: <>搜索没有想要的结果?</>,
answer: (
<>
目前搜索仅支持全字匹配,请确保输入信息完整。另搜索结果已将某些视频过滤。
</>
),
},
];

export const 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>
<li>
<p>
<strong>Q: </strong>
<span>露早tag为什么不是应援色?</span>
</p>
<p>
<strong>A: </strong>
<span>
露早GOGO的应援色为
<span
style={{
color: "#3dff9e",
}}
>
#3dff9e
</span>
,tag字面显示不明显,所以更换为黑露早形态的
<span style={{ color: "#A0191D" }}>#A0191D</span>
</span>
</p>
</li>
<li>
<p>
<strong>Q: </strong>
<span>如何进行用户反馈?</span>
</p>
<p>
<strong>A: </strong>
<span>
请前往
<Link
href={`http://eoe.best/appfeedback`}
target='_blank'
underline='none'
>
eoefans反馈
</Link>
</span>
</p>
</li>
<li>
<p>
<strong>Q: </strong>
<span>图片页图片太小了?</span>
</p>
<p>
<strong>A: </strong>
<span>
图片页可点击图片进入放大镜模式,支持手势返回和空白处返回;可使用双指放大对图片大小进行调整。
</span>
</p>
</li>
{QALists.map((item, index) => (
<li key={index}>
<p>
<strong>Q: </strong>
<span>{item.question}</span>
</p>
<p>
<strong>A: </strong>
<span>{item.answer}</span>
</p>
</li>
))}
</ul>
);

Expand Down
25 changes: 16 additions & 9 deletions src/routers/layout/search/pc/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,22 @@ export default function Search() {
);
}
//通用按钮
const SearchButton: FC<{ onSubmit?: () => void }> = ({ onSubmit }) => (
<button
type='submit'
className={`${styles["search-button"]} bg-red-700 `}
onClick={onSubmit}
>
<SearchIcon color='inherit' fontSize='small' />
</button>
);
const SearchButton: FC<{ onSubmit?: () => void }> = ({ onSubmit }) => {
const { focused } = useSearchFocus();
return (
<button
type='submit'
className={`${
styles["search-button"]
} bg-red-700 transition-all duration-250 ${
focused ? "p-3 text-2xl" : "p-2 text-xl"
}`}
onClick={onSubmit}
>
<SearchIcon color='inherit' fontSize='inherit' />
</button>
);
};

const AdvanceSearch = forwardRef(function Advance(props, ref) {
const [tag, name] = useURLParams(["tag", "name"]);
Expand Down
2 changes: 1 addition & 1 deletion src/routers/layout/search/search.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.search-button {
border-radius: 40px;
cursor: pointer;
padding: 8px;
// padding: 8px;
color: white;
position: relative;
margin: auto;
Expand Down

0 comments on commit 8e656d5

Please sign in to comment.