Skip to content

Commit

Permalink
Merge branch 'main' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Feb 19, 2025
2 parents 3f3a524 + 8e9a928 commit 71e1205
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/assets/image/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/image/paper-clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/image/quick-start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/image/take-try.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 15 additions & 6 deletions src/pages/Home/components/Banner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { ArrowRightOutlined, GithubOutlined } from '@ant-design/icons';
import { Row, Col, Button, Space } from 'antd';
import { Row, Col, Button } from 'antd';
import './index.less';
import { Trans, useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import QuickStartSvg from '@/assets/image/quick-start.svg?react';
import TakeTrySvg from '@/assets/image/take-try.svg?react';
import Icon from '@ant-design/icons';

const Waves = () => {
return (
Expand Down Expand Up @@ -86,13 +88,20 @@ export const Banner = () => {

<div className="banner-actions">
<Link to="/docs">
<Button type="primary" size="large" shape="round">
<Space>{t('banner.get-start')}</Space>
<Button
type="primary"
size="large"
icon={<Icon component={QuickStartSvg} style={{ fontSize: 20 }} />}
>
<b>{t('banner.get-start')}</b>
</Button>
</Link>
<Link to="/replay-lab">
<Button size="large" shape="round">
<Space>{t('banner.take-try')}</Space>
<Button
size="large"
icon={<Icon component={TakeTrySvg} style={{ fontSize: 20 }} />}
>
<b>{t('banner.take-try')}</b>
</Button>
</Link>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Layouts/NavMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { langType, useLanguage } from '@/utils/useLanguage';
import Icon, { GithubOutlined } from '@ant-design/icons';
import { Space, Divider, MenuProps, Dropdown, ConfigProvider } from 'antd';
import { useTranslation } from 'react-i18next';
import { Link, useNavigate } from 'react-router-dom';
import { Link } from 'react-router-dom';
import DocsSvg from '@/assets/image/docs.svg?react';
import I18nSvg from '@/assets/image/i18n.svg?react';
import BugSvg from '@/assets/image/bug.svg?react';
Expand Down Expand Up @@ -46,7 +46,6 @@ const navDropdownConfig = {
};

export const NavMenuOnPc = () => {
const navigate = useNavigate();
const isDark = useDarkTheme();
const [lang, setLang] = useLanguage();
const { t } = useTranslation();
Expand Down
9 changes: 7 additions & 2 deletions src/pages/ReplayLab/components/ReplayInLab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { useMemo } from 'react';
import './index.less';
import { Button, Flex, Space, Upload, UploadProps } from 'antd';
import { useTranslation } from 'react-i18next';
import { ArrowLeftOutlined, PaperClipOutlined } from '@ant-design/icons';
import { ArrowLeftOutlined } from '@ant-design/icons';
import { useStepStore } from '../store';
import { useThreshold } from '@/utils/useThreshold';
import { useShallow } from 'zustand/react/shallow';
import PaperClipSvg from '@/assets/image/paper-clip.svg?react';
import Icon from '@ant-design/icons';

export const ReplayInLab = () => {
const { t } = useTranslation();
Expand All @@ -31,7 +33,10 @@ export const ReplayInLab = () => {
customRequest={uploadCustomRequest}
itemRender={() => null}
>
<Button type="primary" icon={<PaperClipOutlined />}>
<Button
type="primary"
icon={<Icon component={PaperClipSvg} style={{ fontSize: 20 }} />}
>
{t('replay.select-log')}
</Button>
</Upload>
Expand Down
8 changes: 6 additions & 2 deletions src/pages/ReplayLab/components/Welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Trans, useTranslation } from 'react-i18next';
import { Link, useLocation } from 'react-router-dom';
import LinkSvg from '@/assets/image/link.svg?react';
import CodeBlockSvg from '@/assets/image/code-block.svg?react';
import Icon, { PaperClipOutlined } from '@ant-design/icons';
import PaperClipSvg from '@/assets/image/paper-clip.svg?react';
import Icon from '@ant-design/icons';
import { ImportGuide } from '../ImportGuide';
import { useEffect } from 'react';
import demo from './demo.json?url';
Expand Down Expand Up @@ -71,7 +72,10 @@ export const Welcome = () => {
}}
itemRender={() => null}
>
<Button size="large" icon={<PaperClipOutlined />}>
<Button
size="large"
icon={<Icon component={PaperClipSvg} style={{ fontSize: 20 }} />}
>
<b>{t('lab.select-log')}</b>
</Button>
</Upload>
Expand Down

0 comments on commit 71e1205

Please sign in to comment.