File tree Expand file tree Collapse file tree 8 files changed +28
-27
lines changed Expand file tree Collapse file tree 8 files changed +28
-27
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'dumi' ;
2
2
3
3
const name = 'react-image-shadow' ;
4
+ const shortName = 'ImageShadow' ;
5
+
6
+ const url = 'https://avatars1.githubusercontent.com/u/75532006?s=200&v=4' ;
4
7
5
8
export default defineConfig ( {
6
- title : 'Image Shadow' ,
7
- favicon :
8
- 'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true' ,
9
- logo :
10
- 'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true' ,
9
+ title : shortName ,
10
+ favicon : url ,
11
+ logo : url ,
11
12
outputPath : 'docs-dist' ,
12
13
exportStatic : { } ,
13
14
base : `/${ name } /` ,
14
15
publicPath : `/${ name } /` ,
15
- theme : {
16
- '@c-primary' : '#3bacea' ,
17
- } ,
18
16
hash : true ,
19
17
scripts : [
20
18
{
@@ -23,7 +21,7 @@ export default defineConfig({
23
21
var timer = setInterval(function() {
24
22
try {
25
23
var menuList = document.getElementsByClassName('__dumi-default-menu-list');
26
- menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${ name } ';
24
+ menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${ shortName } ';
27
25
clearInterval(timer);
28
26
} catch (e) {}
29
27
}, 200)
Original file line number Diff line number Diff line change @@ -7,15 +7,19 @@ import ImageShadow from 'react-image-shadow';
7
7
import './demo.less' ;
8
8
import '../../assets/index.less' ;
9
9
10
+ const url1 =
11
+ 'https://github.com/image-component/gallery/blob/main/girl/5.jpg?raw=true' ;
12
+ const url2 =
13
+ 'https://github.com/image-component/gallery/blob/main/girl/1.jpg?raw=true' ;
14
+ const url3 =
15
+ 'https://github.com/image-component/gallery/blob/main/girl/2.jpg?raw=true' ;
16
+
10
17
const App = ( ) => {
11
18
return (
12
19
< div className = "base-demo" >
13
- < ImageShadow src = "https://github.com/image-tool/react-image-shadow/blob/main/image/red.png?raw=true" > </ ImageShadow >
14
- < ImageShadow src = "https://github.com/image-tool/react-image-shadow/blob/main/image/blue.jpg?raw=true" > </ ImageShadow >
15
- < ImageShadow
16
- shadowRadius = { 20 }
17
- src = "https://github.com/image-tool/react-image-shadow/blob/main/image/white.jpg?raw=true"
18
- > </ ImageShadow >
20
+ < ImageShadow src = { url1 } > </ ImageShadow >
21
+ < ImageShadow src = { url2 } > </ ImageShadow >
22
+ < ImageShadow shadowRadius = { 20 } src = { url3 } > </ ImageShadow >
19
23
</ div >
20
24
) ;
21
25
} ;
Original file line number Diff line number Diff line change 2
2
padding : 0 50px ;
3
3
display : grid ;
4
4
justify-content : space-around ;
5
+ align-items : center ;
5
6
grid-template-columns : repeat (auto- fill, 300px );
6
7
grid-gap : 40px ;
7
8
}
Original file line number Diff line number Diff line change @@ -7,21 +7,19 @@ import ImageShadow from 'react-image-shadow';
7
7
import './demo.less' ;
8
8
import '../../assets/index.less' ;
9
9
10
+ const url1 =
11
+ 'https://github.com/image-component/gallery/blob/main/girl/3.jpg?raw=true' ;
12
+ const url2 =
13
+ 'https://github.com/image-component/gallery/blob/main/girl/6.jpg?raw=true' ;
14
+ const url3 =
15
+ 'https://github.com/image-component/gallery/blob/main/girl/8.png?raw=true' ;
16
+
10
17
const App = ( ) => {
11
18
return (
12
19
< div className = "base-demo" >
13
- < ImageShadow
14
- shadowHover
15
- src = "https://github.com/image-tool/react-image-shadow/blob/main/image/red.png?raw=true"
16
- > </ ImageShadow >
17
- < ImageShadow
18
- shadowHover
19
- src = "https://github.com/image-tool/react-image-shadow/blob/main/image/blue.jpg?raw=true"
20
- > </ ImageShadow >
21
- < ImageShadow
22
- shadowHover
23
- src = "https://github.com/image-tool/react-image-shadow/blob/main/image/white.jpg?raw=true"
24
- > </ ImageShadow >
20
+ < ImageShadow shadowHover src = { url1 } > </ ImageShadow >
21
+ < ImageShadow shadowHover src = { url2 } > </ ImageShadow >
22
+ < ImageShadow shadowHover src = { url3 } > </ ImageShadow >
25
23
</ div >
26
24
) ;
27
25
} ;
You can’t perform that action at this time.
0 commit comments