Skip to content

Commit 6d6e031

Browse files
committed
activity 5 latest project
1 parent 79bd231 commit 6d6e031

File tree

2 files changed

+105
-1
lines changed

2 files changed

+105
-1
lines changed

dynamicProjects.js

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
var all_projects = [
2+
{title : "Blood Cell Classification Using CNNs and RNNs",
3+
img_alt : "Screenshot of Machine Learning Project",
4+
img_src : "/assets/img/project1-aps360.png",
5+
description : "A deep learning model to classify between 8 categories of blood cells.",
6+
tools : "Python, Pytorch, Numpy, Scikit-learn",
7+
accomplishments : ["Input singular blood cell image",
8+
"Predict and classify type of blood cell.",
9+
"Testing Accuracy of 92.5%"
10+
],
11+
online_src: "https://www.youtube.com/watch?v=p76Pt2VIfjg",
12+
github_src: "https://github.com/KashishMistry/bloodcellclassification",
13+
date : "April 2023"
14+
},
15+
{title : "Hello World Mapper",
16+
img_alt : "Screenshot of Geographic Information System Software",
17+
img_src : "/assets/img/hello-world.png",
18+
description : "An app which shows maps of a few cities, intersections, routes and directions.",
19+
tools : "C++, GTK Glade",
20+
accomplishments : ["Find shortest routes between intersections.",
21+
"Provide detailed directions for given route",
22+
"Map features like zoom in, zoom out, and pan."
23+
],
24+
online_src: "https://www.beautiful.ai/player/-O77dyJdZWnkyq4jezjM/ECE297-Oral-Presentation-2",
25+
github_src: "",
26+
date : "April 2022"
27+
},
28+
{title : "Baker's Stop - FPGA Game",
29+
img_alt : "Screenshot of Game",
30+
img_src : "/assets/img/project3-ece243.png",
31+
description : "A simple game where the objective is to catch all the correct, falling ingredients to bake a cake using.",
32+
tools : "ARM(DE1-SoC), C, Assembly",
33+
accomplishments : ["Users can play 3 levels where pace of falling object increases with each level.",
34+
"Use DE1-SoC Board and keyboard as inputs.",
35+
"VGA Display to output game, LED lights show no. of mistakes and HEX display shows scores."
36+
],
37+
online_src: "",
38+
github_src: "",
39+
date : "March 2023"
40+
}
41+
]
42+
43+
//Source: https://stackoverflow.com/questions/10123953/how-to-sort-an-object-array-by-date-property
44+
all_projects.sort(function(a,b){
45+
// Turn your strings into dates, and then subtract them
46+
// to get a value that is either negative, positive, or zero.
47+
return new Date(b.date) - new Date(a.date);
48+
});
49+
50+
function displayLatestProject(){
51+
//Source: https://stackoverflow.com/questions/10123953/how-to-sort-an-object-array-by-date-property
52+
all_projects.sort(function(a,b){
53+
// Turn your strings into dates, and then subtract them
54+
// to get a value that is either negative, positive, or zero.
55+
return new Date(b.date) - new Date(a.date);
56+
});
57+
58+
latest = all_projects[0]
59+
60+
document.getElementById("latest-projects").innerHTML = `
61+
<div class="row">
62+
<div class="col s12 m6 l4">
63+
<div class="card medium">
64+
<div class="card-image waves-effect waves-block waves-light">
65+
<img alt="` + latest.img_alt +`" src="` + latest.img_src + `" style="height: 100%; width: 100%" class="activator" />
66+
</div>
67+
<div class="card-content">
68+
<span class="card-title activator red-text hoverline">`+ latest.title + `<i
69+
class="mdi-navigation-more-vert right"></i></span>
70+
<p>
71+
`+ latest.description+`
72+
</p>
73+
</div>
74+
<div class="card-reveal">
75+
<span class="card-title grey-text"><small>Accomplishments</small><i
76+
class="mdi-navigation-close right"></i></span>
77+
<ul>
78+
<li><b>Tools:</b> `+ latest.tools + `</li>
79+
<li>` + latest.accomplishments[0] + `.</li>
80+
<li>` + latest.accomplishments[1] + `</li>
81+
<li>` + latest.accomplishments[2] + `</li>
82+
<li>` + latest.date + `</li>
83+
84+
</ul>
85+
<div class="card-action">
86+
<a aria-label="Visit " href="` + latest.online_src + `" target="_blank" data-position="top"
87+
data-tooltip="View Presentation Online"
88+
class="btn-floating btn-large waves-effect waves-light blue-grey tooltipped"><i
89+
class="fa fa-external-link"></i></a>
90+
<a aria-label="Visit the GitHub repo for project" href="` + latest.github_src + `"
91+
target="_blank" data-position="top" data-tooltip="View Source"
92+
class="btn-floating btn-large waves-effect waves-light blue-grey tooltipped"><i
93+
class="fa fa-github"></i></a>
94+
</div>
95+
</div>
96+
</div>
97+
</div>
98+
`;
99+
}
100+
101+
displayLatestProject()

index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,11 @@ <h3 class="page-title white-text red">Experience</h3>
352352
<section id="projects" class="section scrollspy">
353353
<h3 class="page-title white-text red">Projects</h3>
354354
<div class="container" id="latest-projects">
355-
<button class="readme">Load More</button>
355+
<button class="waves-effect waves-light btn maroon"> Load More</button>
356356
</div>
357357

358358
<div class="container" id="previous-projects">
359+
<p> TO DO </p>
359360
<!-- <div class="row">
360361
361362
<div class="col s12 m6 l4">
@@ -694,6 +695,8 @@ <h3 class="page-title white-text red">Contact</h3>
694695
})
695696
})
696697
</script>
698+
699+
<script src="dynamicProjects.js"> </script>
697700
</body>
698701

699702
</html>

0 commit comments

Comments
 (0)