File tree 3 files changed +14
-10
lines changed
3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import title from "@/static/images/home_title.png";
5
5
import styles from '@/styles/home.module.scss' ;
6
6
import { AboutDoc , DesignSystem , LeftOrigin , RightOrigin } from '@/data/doc' ;
7
7
import { useEffect , useState } from "react" ;
8
+ import { Button } from "antd" ;
8
9
9
10
function Home ( ) {
10
11
const [ bgHeight , setBgHeight ] = useState ( '0px' ) ;
@@ -51,7 +52,7 @@ function Home() {
51
52
< img src = { item ?. imgUrl } alt = "" />
52
53
< div className = { styles . title } > { item . title } </ div >
53
54
< div className = { styles . subTitle } > { item . subTitle } </ div >
54
- < div className = { styles . jump } onClick = { ( ) => router . push ( item . jumpUrl ) } > { '查看详情>' } </ div >
55
+ < Button onClick = { ( ) => router . push ( item . jumpUrl ) } type = { 'link' } > { '查看详情>' } </ Button >
55
56
</ div >
56
57
) )
57
58
}
@@ -64,7 +65,7 @@ function Home() {
64
65
< div style = { { margin : '35px 0px' } } >
65
66
< div className = { styles . title } > { item . title } </ div >
66
67
< div className = { styles . subTitle } > { item . subTitle } </ div >
67
- < div className = { styles . jump } onClick = { ( ) => router . push ( item . jumpUrl ) } > { '查看详情>' } </ div >
68
+ < Button onClick = { ( ) => router . push ( item . jumpUrl ) } type = { 'link' } > { '查看详情>' } </ Button >
68
69
</ div >
69
70
</ div >
70
71
) )
Original file line number Diff line number Diff line change 32
32
background : #F1F9FE ;
33
33
border-radius : 16px ;
34
34
margin-right : 40px ;
35
+ cursor : pointer ;
36
+ transition : box-shadow .3s ;
35
37
36
38
img {
37
39
width : 160px ;
45
47
padding : 0 40px ;
46
48
}
47
49
}
50
+ .box :hover {
51
+ box-shadow : 0 3px 6px -4px #0000001f , 0 6px 16px #00000014 , 0 9px 28px 8px #0000000d ;
52
+ }
48
53
}
49
54
}
50
55
69
74
height : 381px ;
70
75
margin-right : 40px ;
71
76
text-align : center ;
77
+ transition : box-shadow .3s ;
72
78
73
79
img {
74
80
width : 150px ;
86
92
color : #64698B ;
87
93
margin : 18px 0 40px 0 ;
88
94
}
89
-
90
- .jump {
91
- color : #1D78FF ;
92
- }
93
95
}
94
96
95
97
.rightBox {
96
98
width : 580px ;
97
99
height : 170px ;
98
100
display : flex ;
101
+ transition : box-shadow .3s ;
99
102
100
103
img {
101
104
width : 100px ;
116
119
width : 236px ;
117
120
margin : 12px 0px ;
118
121
}
119
-
120
- .jump {
121
- color : #1D78FF ;
122
- }
123
122
}
124
123
124
+ .leftBox :hover ,.rightBox :hover {
125
+ box-shadow : 0 3px 6px -4px #0000001f , 0 6px 16px #00000014 , 0 9px 28px 8px #0000000d ;
126
+ }
125
127
.rightBox :first-child {
126
128
margin-bottom : 40px ;
127
129
}
Original file line number Diff line number Diff line change 25
25
font-family : PingFangSC- Medium, PingFang SC;
26
26
font-weight : 500 ;
27
27
color : #3D446E ;
28
+ cursor : pointer ;
28
29
}
29
30
}
30
31
.menu {
You can’t perform that action at this time.
0 commit comments