Skip to content

Commit

Permalink
Merge pull request #27 from amarpersaud/master
Browse files Browse the repository at this point in the history
Merge master changes into development branch
  • Loading branch information
amarpersaud authored May 25, 2024
2 parents 6ed7691 + 3ed40fe commit 9e1be01
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 25 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
amarpersaud.com
6 changes: 3 additions & 3 deletions HTML_SRC/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ <h1 class="page-header">About</h1>
<h2 class="sub-header">Who am I?</h2>
<div class="indentp indent l">
<p>
I am a 23 year old university student who likes science, math, electronics and programming.
I currently attend SUNY Stony Brook University, pursuing a degree in Electrical Engineering.
I am a 23 year old Electrical Engineer who likes science, math, electronics and programming.
I graduated from SUNY Stony Brook University with a BS in Electrical Engineering.
</p>
<p>
I work on many personal projects, which can be viewed on my projects page.
This includes electronics, involving creating, manufacturing and assembling custom PCBs, programming for a multitude of platforms such as embedded devices, webpages, websites, and desktop and mobile applications, as well as 3d modelling, CAD, and CAM for additive and subtractive machining (3d printing and CNC).
</p>
</p>
</div>
<h2 class="sub-header">Contact</h2>
<div class="indentp">
Expand Down
2 changes: 1 addition & 1 deletion HTML_SRC/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="cover-container">
<div class="box">
<h1 class="covertag">Amar Persaud</h1>
<p class="coverside">Student, software developer, and Electrical Engineer</p>
<p class="coverside">Electrical Engineer and Software developer</p>
<span class="coverbutton"><a class="button" href="/projects.html">Projects</a><a class="button" href="/about.html">About</a><a class="button" href="/documents/AmarPersaud_Resume.pdf">Resume</a></span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ <h2 class="sub-header">
</h2>
<div class="indentp indent l">
<p>
I am a 23 year old university student who likes science, math, electronics and programming.
I currently attend SUNY Stony Brook University, pursuing a degree in Electrical Engineering.
I am a 23 year old Electrical Engineer who likes science, math, electronics and programming.
I graduated from SUNY Stony Brook University with a BS in Electrical Engineering.
</p>
<p>
I work on many personal projects, which can be viewed on my projects page.
Expand Down Expand Up @@ -141,4 +141,4 @@ <h2 class="sub-header">
<script src="js/js.min.js" type="text/javascript">
</script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ x-alert>span>div>div{
position: fixed;
z-index: 1;
font-smooth: 2em;
transition: left 0.2s linear, top 0.2s linear;
transition: left 0.2s linear, top 0.2s linear, rotate 0.2s linear;
}

@media screen and (max-width: 760px) {
Expand Down
2 changes: 1 addition & 1 deletion css/styles.min.css

Large diffs are not rendered by default.

Binary file modified documents/AmarPersaud_Resume.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion elementexamples.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ <h2>
<script src="/js/js.min.js" type="text/javascript">
</script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1 class="covertag">
Amar Persaud
</h1>
<p class="coverside">
Student, software developer, and Electrical Engineer
Electrical Engineer and Software developer
</p>
<span class="coverbutton">
<a class="button" href="/projects.html">
Expand Down Expand Up @@ -94,4 +94,4 @@ <h1 class="covertag">
<script src="/js/homepage.min.js" type="text/javascript">
</script>
</body>
</html>
</html>
21 changes: 15 additions & 6 deletions js/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ function createIcon(){
y: ((Math.random() * (spawnMaxHeight - spawnMinHeight)) + spawnMinHeight),
vx: 0,
vy: (Math.random() * vmax),
z: 0,
va: (Math.random() / 1000.0),
z: (Math.random() / 2.0 + 0.5),
va: 0,
angle: Math.random(),
iconclass: validIconClasses[Math.floor(Math.random() * validIconClasses.length)],
idn: currentId,
Expand All @@ -149,7 +151,7 @@ function createIcon(){
let newElem = document.createElement("i");
newElem.setAttribute("class", "frontanimicon " + newicon.iconclass);
newElem.setAttribute("id", newicon.eid);
newElem.setAttribute("style", `left: ${newicon.x.toFixed(3)}px; top: ${newicon.y.toFixed(3)}px;`);
newElem.setAttribute("style", `left: ${newicon.x.toFixed(3)}px; top: ${newicon.y.toFixed(3)}px; transform: scale(${newicon.z.toFixed(3)}) rotate(${newicon.angle*360}deg);`);

contentElem.appendChild(newElem);
}
Expand All @@ -160,8 +162,9 @@ function createIconRandom(){
x: (Math.random() * screenW),
y: (Math.random() * screenH),
vx: 0,
vy: (Math.random() * vmax),
z: 0,
vy: (Math.random() * vmax),
va: (Math.random() / 1000.0),
z: (Math.random() / 2.0 + 0.5),
angle: Math.random(),
iconclass: validIconClasses[Math.floor(Math.random() * validIconClasses.length)],
idn: currentId,
Expand All @@ -178,7 +181,7 @@ function createIconRandom(){
let newElem = document.createElement("i");
newElem.setAttribute("class", "frontanimicon " + newicon.iconclass);
newElem.setAttribute("id", newicon.eid);
newElem.setAttribute("style", `left: ${newicon.x.toFixed(3)}px; top: ${newicon.y.toFixed(3)}px;`);
newElem.setAttribute("style", `left: ${newicon.x.toFixed(3)}px; top: ${newicon.y.toFixed(3)}px; transform: scale(${newicon.z.toFixed(3)}) rotate(${newicon.angle*360}deg);`);

contentElem.appendChild(newElem);
}
Expand Down Expand Up @@ -224,6 +227,7 @@ function updateIcons(){

ic.vx += windAccelx * dt;
ic.vy += windAccely * dt;
ic.va += windAccelx * dt / 1000.0;

//clamp velocity
let vel = Math.sqrt((ic.vx * ic.vx) + (ic.vy * ic.vy));
Expand All @@ -232,9 +236,14 @@ function updateIcons(){
ic.vy = ic.vy / vel * vmax;
}

if(Math.sqrt(ic.va * ic.va) >= 0.1){
ic.va = ic.va / Math.sqrt(ic.va * ic.va) * 0.1;
}

//Apply velocity to position
ic.x += ic.vx * dt;
ic.y += ic.vy * dt;
ic.angle += ic.va * dt;

//find element

Expand All @@ -251,7 +260,7 @@ function updateIcons(){
snowicons[i] = ic;

//update element position
iconElem.setAttribute("style", `left: ${ic.x.toFixed(3)}px; top: ${ic.y.toFixed(3)}px; transform: rotate(${ic.angle*360}deg);`);
iconElem.setAttribute("style", `left: ${ic.x.toFixed(3)}px; top: ${ic.y.toFixed(3)}px; transform: scale(${ic.z.toFixed(3)}) rotate(${ic.angle*360}deg);`);
}
}

Expand Down
11 changes: 6 additions & 5 deletions js/homepage.min.js

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

2 changes: 1 addition & 1 deletion projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ <h2 class="sub-header">
<script src="/js/projectlist.min.js" type="text/javascript">
</script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ <h1 class="page-header">
<script src="js/search.min.js" type="text/javascript">
</script>
</body>
</html>
</html>

0 comments on commit 9e1be01

Please sign in to comment.