Commit 10470369 authored by 2breakegg's avatar 2breakegg

gitignore

parent 4356914e
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
# misc # misc
.DS_Store .DS_Store
npm-debug.log* *.log*
/utils/config.js /utils/config.js
This diff is collapsed.
import React from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import styles from './Index.less'; import React from 'react';
import Particles from 'react-particles-js' import DocumentTitle from 'react-document-title';
import DocumentTitle from 'react-document-title' import Particles from 'react-particles-js';
function Index({ children, messages }) { function Index({ children, messages }) {
return ( return (
<div style={{ height: "100%" }}> <div style={{ height: '100%' }}>
<DocumentTitle title={messages['title'] || 'Moe Cube'}> <DocumentTitle title={messages['title'] || 'Moe Cube'}>
<Particles <Particles
params={{ params={{
...@@ -15,28 +14,28 @@ function Index({ children, messages }) { ...@@ -15,28 +14,28 @@ function Index({ children, messages }) {
'value': 20, 'value': 20,
'density': { 'density': {
'enable': true, 'enable': true,
'value_area': 1000 'value_area': 1000,
} },
}, },
'color': { 'color': {
'value': '#888', 'value': '#888',
'opacity': 0.4 'opacity': 0.4,
}, },
'shape': { 'shape': {
'type': 'circle', 'type': 'circle',
'stroke': { 'stroke': {
'width': 4, 'width': 4,
'color': '#888', 'color': '#888',
'opacity': 0.4 'opacity': 0.4,
}, },
'polygon': { 'polygon': {
'nb_sides': 5 'nb_sides': 5,
}, },
'image': { 'image': {
'src': 'img/github.svg', 'src': 'img/github.svg',
'width': 100, 'width': 100,
'height': 100 'height': 100,
} },
}, },
'opacity': { 'opacity': {
'value': 0.5, 'value': 0.5,
...@@ -45,8 +44,8 @@ function Index({ children, messages }) { ...@@ -45,8 +44,8 @@ function Index({ children, messages }) {
'enable': false, 'enable': false,
'speed': 1, 'speed': 1,
'opacity_min': 0.1, 'opacity_min': 0.1,
'sync': false 'sync': false,
} },
}, },
'size': { 'size': {
'value': 3, 'value': 3,
...@@ -55,15 +54,15 @@ function Index({ children, messages }) { ...@@ -55,15 +54,15 @@ function Index({ children, messages }) {
'enable': false, 'enable': false,
'speed': 1, 'speed': 1,
'size_min': 0.1, 'size_min': 0.1,
'sync': false 'sync': false,
} },
}, },
'line_linked': { 'line_linked': {
'enable': true, 'enable': true,
'distance': 150, 'distance': 150,
'color': '#888', 'color': '#888',
'opacity': 0.4, 'opacity': 0.4,
'width': 1 'width': 1,
}, },
'move': { 'move': {
'enable': true, 'enable': true,
...@@ -76,9 +75,9 @@ function Index({ children, messages }) { ...@@ -76,9 +75,9 @@ function Index({ children, messages }) {
'attract': { 'attract': {
'enable': false, 'enable': false,
'rotateX': 600, 'rotateX': 600,
'rotateY': 1200 'rotateY': 1200,
} },
} },
}, },
'interactivity': { 'interactivity': {
'detect_on': 'canvas', 'detect_on': 'canvas',
...@@ -86,58 +85,58 @@ function Index({ children, messages }) { ...@@ -86,58 +85,58 @@ function Index({ children, messages }) {
'onhover': { 'onhover': {
'enable': true, 'enable': true,
'mode': 'grab', 'mode': 'grab',
'nb': 2 'nb': 2,
}, },
'onclick': { 'onclick': {
'enable': true, 'enable': true,
'mode': 'push' 'mode': 'push',
}, },
'resize': true 'resize': true,
}, },
'modes': { 'modes': {
'grab': { 'grab': {
'distance': 400, 'distance': 400,
'line_linked': { 'line_linked': {
'opacity': 0.4 'opacity': 0.4,
} },
}, },
'bubble': { 'bubble': {
'distance': 400, 'distance': 400,
'size': 20, 'size': 20,
'duration': 2, 'duration': 2,
'opacity': 8, 'opacity': 8,
'speed': 1 'speed': 1,
}, },
'repulse': { 'repulse': {
'distance': 200, 'distance': 200,
'duration': 0.4 'duration': 0.4,
}, },
'push': { 'push': {
'particles_nb': 4 'particles_nb': 4,
}, },
'remove': { 'remove': {
'particles_nb': 2 'particles_nb': 2,
} },
} },
}, },
'retina_detect': true 'retina_detect': true,
}} }}
style={{ style={{
position: "fixed" position: 'fixed',
}} }}
/> />
</DocumentTitle> </DocumentTitle>
{children} {children}
</div> </div>
); );
} }
function mapStateToProps(state) { function mapStateToProps(state) {
const { const {
common: {messages} common: { messages },
} = state } = state;
return { return {
messages messages,
}; };
} }
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment