Skip to content

Commit

Permalink
load project on click on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 18, 2023
1 parent eb26e54 commit d58f96f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,10 @@ export const ui = (() => {
const projectsContainer = document.createElement("div");
projectsContainer.classList.add("projects-container");

resume.forEach(project => {
resume.forEach((project, i) => {
const card = document.createElement("div");
card.classList.add("card", "main-page-card");
card.addEventListener("click", () => placeCards(i));

const projectTitle = document.createElement("h2");
projectTitle.classList.add("main-page-title");
Expand Down

0 comments on commit d58f96f

Please sign in to comment.