Skip to content

Commit

Permalink
add main page gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
leehe228 committed Mar 11, 2024
1 parent d872ef3 commit 2f4c0f2
Show file tree
Hide file tree
Showing 9 changed files with 284 additions and 64 deletions.
164 changes: 103 additions & 61 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
"typescript": "^5.0.0",
"vite": "^4.4.2"
},
"type": "module"
"type": "module",
"dependencies": {
"svelte-swiper": "^1.0.1",
"swiper": "^11.0.7"
}
}
7 changes: 7 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@
item.addEventListener("mouseleave", custom_unhover_cursor);
}
});
document.querySelectorAll("span").forEach((item) => {
if (item.classList.contains("hover")) {
item.addEventListener("mouseover", custom_hover_cursor);
item.addEventListener("mouseleave", custom_unhover_cursor);
}
});
});
</script>
Expand Down
Loading

0 comments on commit 2f4c0f2

Please sign in to comment.