Skip to content
Open
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
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"react": "^17.0.2",
"react-bootstrap": "^1.6.0",
"react-dom": "^17.0.2",
"react-particles-js": "^3.5.1",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"redux": "^4.1.0",
"tsparticles": "^1.29.2",
"web-vitals": "^1.1.2"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.App {
text-align: center;
background-color: #1e5871;
color: aliceblue;
}
5 changes: 4 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import './App.css';
import { Provider } from 'react-redux';
import React from 'react';
import Layout from './web-components/layout';
import store from './store/store';

function App() {
return (
<Provider store={store}>
<div className="App"> </div>
<div className="App">
<Layout />
</div>
</Provider>
);
}
Expand Down
24 changes: 24 additions & 0 deletions src/web-components/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.rectangle {
position: absolute;
width: 100%;
/* height: 100%; */
left: -30px;
right: -50px;
top: -130px;
/* flex: 1 0 auto; */
color: cornsilk;
background: black;
transform: skew(4deg) rotate(10deg);
}

.footer {
flex-shrink: 0;
background: black;
height: 3rem;
left: 0;
}

.main {
height: 700px;
width: 900px;
}
17 changes: 17 additions & 0 deletions src/web-components/layout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './layout.css';
import React from 'react';
import Particle from './particleeffect.jsx';

const layout = () => (
<>
<div className="rectangle">
<Particle height="100%" val={150} />
</div>
<div className="main" />
<div className="footer">
<Particle height="3rem" val={30} />
</div>
</>
);

export default layout;
29 changes: 29 additions & 0 deletions src/web-components/particleeffect.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Particles from 'react-particles-js';

import React from 'react';

const particleeffect = ({ height, val }) => (
<Particles
params={{
particles: {
number: {
value: val,
},
size: {
value: 3,
},
},
interactivity: {
events: {
onhover: {
enable: true,
mode: 'repulse',
},
},
},
}}
height={height}
/>
);

export default particleeffect;