Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update deps to antd-mobile #6699

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/components/components/Main/MainSection/index.local.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@

.buttonLeft {
background: #0170fe;
color: #fff;
border: none;
}

.buttonRight {
background: #4ba6ff;
color: #fff;
margin-left: 16px;
border-color: #fff;
}
}

Expand Down
12 changes: 7 additions & 5 deletions docs/components/components/Main/MainSection/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react'
import { Button } from 'antd'
import { Button } from 'antd-mobile'
import React, { useEffect, useState } from 'react'
import Lottie from 'react-lottie'
import styles from './index.local.less'
import { useTrans } from '../../../../hooks/useTrans'
import styles from './index.local.less'

export default (props: { isWidthScreen: boolean }) => {
const [startFireAnimation, setStartFireAnimation] = useState(false)
Expand Down Expand Up @@ -36,14 +36,16 @@ export default (props: { isWidthScreen: boolean }) => {
</div>
<div className={styles.mainSectionButtonAction}>
<Button
shape='round'
color='primary'
shape='rounded'
className={styles.buttonLeft}
href={trans('/guide/quick-start', '/zh/guide/quick-start')}
>
{trans('Get Start', '开始使用')}
</Button>
<Button
shape='round'
color='primary'
shape='rounded'
className={styles.buttonRight}
href={trans('/components', '/zh/components')}
>
Expand Down
16 changes: 11 additions & 5 deletions docs/components/components/Main/index.local.less
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
height: 270px;
margin-top: 32px;
border-radius: 12px;
padding: 16px 24px;

.productResourceCardContent {
width: 212px;
Expand Down Expand Up @@ -105,7 +106,7 @@
.productDesignValues {
margin-top: 32px;
height: 282px;
padding: 8px;
padding: 24px 32px;

.productDesignValueBody {
display: flex;
Expand Down Expand Up @@ -187,7 +188,7 @@
border-radius: 12px;
box-shadow: 0 4px 10px 0 rgba(184, 212, 231, 0.2);
margin-top: 24px;
padding: 8px;
padding: 12px 24px;

.guideCardContent {
width: 270px;
Expand Down Expand Up @@ -242,6 +243,7 @@
border-radius: 12px;
box-shadow: 0 12px 28px 0 rgba(113, 142, 204, 0.1);
margin-top: 32px;
padding: 12px 24px;

.recommendCardBody {
display: flex;
Expand Down Expand Up @@ -270,9 +272,13 @@
}

.recommendCard:hover {
box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16),
0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
transition: box-shadow 0.3s, border-color 0.3s;
box-shadow:
0 1px 2px -2px rgba(0, 0, 0, 0.16),
0 3px 6px 0 rgba(0, 0, 0, 0.12),
0 5px 12px 4px rgba(0, 0, 0, 0.09);
transition:
box-shadow 0.3s,
border-color 0.3s;
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions docs/components/components/Main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React, { useEffect, useState, useRef } from 'react'
import { Button, Card } from 'antd'
import Lottie from 'react-lottie'
import { useSize } from 'ahooks'
import { RightOutlined } from '@ant-design/icons'
import { useSize } from 'ahooks'
import { Button, Card } from 'antd-mobile'
import React, { useEffect, useRef, useState } from 'react'
import Lottie from 'react-lottie'
import { useTrans } from '../../../hooks/useTrans'
import MainSection from './MainSection'
import {
productIntroduce,
productIntroduceEn,
getGuides,
getProductDesignValuesBackgroundImage,
getProductResource,
getRecommends,
productDesignValues,
productDesignValuesEn,
getProductDesignValuesBackgroundImage,
getGuides,
getRecommends,
productIntroduce,
productIntroduceEn,
users,
} from './config'
import styles from './index.local.less'
import { useTrans } from '../../../hooks/useTrans'

export default () => {
const [isWidthScreen, setIsWidthScreen] = useState(true)
Expand Down
3 changes: 1 addition & 2 deletions docs/components/home-page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect } from 'react'
import Main from './components/Main'
import Footer from './components/Footer'
import 'antd/dist/antd.css'
import Main from './components/Main'
import styles from './home-page.less'

export default () => {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"@typescript-eslint/parser": "^5.59.0",
"@umijs/types": "^3.5.40",
"@use-gesture/core": "10.2.20",
"antd": "^4.24.9",
"autoprefixer": "^9.8.8",
"babel-loader": "^8.3.0",
"css-loader": "^6.7.3",
Expand Down
Loading
Loading