mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added rays
This commit is contained in:
parent
fcfc16c157
commit
754e11cbcc
3 changed files with 6 additions and 3 deletions
|
@ -117,14 +117,14 @@ export class GodRays extends React.Component<IGodRaysProps> {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
zIndex: -1,
|
zIndex: -1,
|
||||||
opacity: 0.5,
|
opacity: 1,
|
||||||
pointerEvents: 'none',
|
pointerEvents: 'none',
|
||||||
}}>
|
}}>
|
||||||
<canvas
|
<canvas
|
||||||
width={width}
|
width={width}
|
||||||
height={height + 100}
|
height={height + 100}
|
||||||
style={{
|
style={{
|
||||||
filter: 'blur(20px)',
|
filter: 'blur(50px)',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
top: -100,
|
top: -100,
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -12,6 +12,7 @@ import { ImageExample } from "~/containers/examples/ImageExample";
|
||||||
import { EditorExample } from "~/containers/examples/EditorExample";
|
import { EditorExample } from "~/containers/examples/EditorExample";
|
||||||
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
|
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
|
||||||
import { Sprites } from "~/sprites/Sprites";
|
import { Sprites } from "~/sprites/Sprites";
|
||||||
|
import {GodRays} from "~/components/main/GodRays";
|
||||||
|
|
||||||
interface IAppProps {}
|
interface IAppProps {}
|
||||||
interface IAppState {}
|
interface IAppState {}
|
||||||
|
@ -21,6 +22,8 @@ class Component extends React.Component<IAppProps, IAppState> {
|
||||||
return (
|
return (
|
||||||
<ConnectedRouter history={history}>
|
<ConnectedRouter history={history}>
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<GodRays />
|
||||||
|
|
||||||
<Sprites />
|
<Sprites />
|
||||||
|
|
||||||
<Switch>
|
<Switch>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch !important;
|
align-items: stretch !important;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
flex: 1;
|
//flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue