ditch 404 changes

This commit is contained in:
2022-10-10 14:40:22 -04:00
parent 2e60042ece
commit 68593626c0
4 changed files with 8 additions and 16 deletions

7
package-lock.json generated
View File

@@ -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",
@@ -25204,4 +25199,4 @@
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="
}
}
}
}

View File

@@ -1,3 +0,0 @@
---
permalink: /404.html
---

View File

@@ -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 />

View File

@@ -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);