mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
ditch 404 changes
This commit is contained in:
5
package-lock.json
generated
5
package-lock.json
generated
@@ -17988,11 +17988,6 @@
|
||||
"lodash.uniq": "^4.5.0"
|
||||
}
|
||||
},
|
||||
"caniuse-lite": {
|
||||
"version": "1.0.30001328",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001328.tgz",
|
||||
"integrity": "sha512-Ue55jHkR/s4r00FLNiX+hGMMuwml/QGqqzVeMQ5thUewznU2EdULFvI3JR7JJid6OrjJNfFvHY2G2dIjmRaDDQ=="
|
||||
},
|
||||
"case-sensitive-paths-webpack-plugin": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz",
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
permalink: /404.html
|
||||
---
|
||||
@@ -39,8 +39,8 @@ function App() {
|
||||
<Route exact path='/projects' element={<Projects />}></Route>
|
||||
<Route exact path='activities' element={<Activities />}></Route>
|
||||
<Route exact path='/about' element={<AboutMe />}></Route>
|
||||
<Route exact path='/404' element={<ErrorNotFound />} />
|
||||
<Route exact path="*" element={<ErrorNotFound />} />
|
||||
<Route exact path='/notFound' element={<ErrorNotFound />} />
|
||||
{/* <Route exact path="/*" element={<ErrorNotFound />} /> */}
|
||||
</Routes>
|
||||
<div className='footer'>
|
||||
<Socials />
|
||||
|
||||
@@ -3,8 +3,8 @@ import React from "react";
|
||||
|
||||
const balls = [];
|
||||
const density = 0.00005;
|
||||
const screenWidth = window.innerWidth;
|
||||
const screenHeight = window.innerHeight;
|
||||
const screenWidth = window.innerWidth + 100;
|
||||
const screenHeight = window.innerHeight + 100;
|
||||
|
||||
export default class Idler extends React.Component {
|
||||
setup = (p5, parentRef) => {
|
||||
@@ -39,11 +39,11 @@ export default class Idler extends React.Component {
|
||||
for (let j = i + 1; j < balls.length; j++) {
|
||||
let distance = p5.dist(balls[i].x, balls[i].y, balls[j].x, balls[j].y);
|
||||
if (distance < 100){
|
||||
p5.stroke(200);
|
||||
p5.stroke(150);
|
||||
p5.line(balls[i].x, balls[i].y, balls[j].x, balls[j].y);
|
||||
}
|
||||
if (distance < 125) {
|
||||
p5.stroke(75);
|
||||
else if (distance < 150) {
|
||||
p5.stroke(100);
|
||||
let chance = 0.3 ** (((p5.random(0.2) + 0.8) * distance) / 150);
|
||||
if (chance < 0.5) {
|
||||
p5.stroke(50);
|
||||
|
||||
Reference in New Issue
Block a user