Skip to content

docs: update image url #15

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

Merged
merged 2 commits into from
Dec 16, 2020
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
16 changes: 7 additions & 9 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import { defineConfig } from 'dumi';

const name = 'react-image-shadow';
const shortName = 'ImageShadow';

const url = 'https://avatars1.githubusercontent.com/u/75532006?s=200&v=4';

export default defineConfig({
title: 'Image Shadow',
favicon:
'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true',
logo:
'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true',
title: shortName,
favicon: url,
logo: url,
outputPath: 'docs-dist',
exportStatic: {},
base: `/${name}/`,
publicPath: `/${name}/`,
theme: {
'@c-primary': '#3bacea',
},
hash: true,
scripts: [
{
Expand All @@ -23,7 +21,7 @@ export default defineConfig({
var timer = setInterval(function() {
try {
var menuList = document.getElementsByClassName('__dumi-default-menu-list');
menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${name}';
menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${shortName}';
clearInterval(timer);
} catch (e) {}
}, 200)
Expand Down
16 changes: 10 additions & 6 deletions docs/example/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ import ImageShadow from 'react-image-shadow';
import './demo.less';
import '../../assets/index.less';

const url1 =
'https://github.com/image-component/gallery/blob/main/girl/5.jpg?raw=true';
const url2 =
'https://github.com/image-component/gallery/blob/main/girl/1.jpg?raw=true';
const url3 =
'https://github.com/image-component/gallery/blob/main/girl/2.jpg?raw=true';

const App = () => {
return (
<div className="base-demo">
<ImageShadow src="https://github.com/image-tool/react-image-shadow/blob/main/image/red.png?raw=true"></ImageShadow>
<ImageShadow src="https://github.com/image-tool/react-image-shadow/blob/main/image/blue.jpg?raw=true"></ImageShadow>
<ImageShadow
shadowRadius={20}
src="https://github.com/image-tool/react-image-shadow/blob/main/image/white.jpg?raw=true"
></ImageShadow>
<ImageShadow src={url1}></ImageShadow>
<ImageShadow src={url2}></ImageShadow>
<ImageShadow shadowRadius={20} src={url3}></ImageShadow>
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions docs/example/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
padding: 0 50px;
display: grid;
justify-content: space-around;
align-items: center;
grid-template-columns: repeat(auto-fill, 300px);
grid-gap: 40px;
}
22 changes: 10 additions & 12 deletions docs/example/hover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@ import ImageShadow from 'react-image-shadow';
import './demo.less';
import '../../assets/index.less';

const url1 =
'https://github.com/image-component/gallery/blob/main/girl/3.jpg?raw=true';
const url2 =
'https://github.com/image-component/gallery/blob/main/girl/6.jpg?raw=true';
const url3 =
'https://github.com/image-component/gallery/blob/main/girl/8.png?raw=true';

const App = () => {
return (
<div className="base-demo">
<ImageShadow
shadowHover
src="https://github.com/image-tool/react-image-shadow/blob/main/image/red.png?raw=true"
></ImageShadow>
<ImageShadow
shadowHover
src="https://github.com/image-tool/react-image-shadow/blob/main/image/blue.jpg?raw=true"
></ImageShadow>
<ImageShadow
shadowHover
src="https://github.com/image-tool/react-image-shadow/blob/main/image/white.jpg?raw=true"
></ImageShadow>
<ImageShadow shadowHover src={url1}></ImageShadow>
<ImageShadow shadowHover src={url2}></ImageShadow>
<ImageShadow shadowHover src={url3}></ImageShadow>
</div>
);
};
Expand Down
Binary file removed image/blue.jpg
Binary file not shown.
Binary file removed image/red.png
Binary file not shown.
Binary file removed image/white.jpg
Binary file not shown.
Binary file removed logo.png
Binary file not shown.