forked from lucaspatenaude/ScoreSpot
Favorite button basic implementation added
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
#club-information-container
|
||||
{
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
#club-favorite-button
|
||||
{
|
||||
width: 35px;
|
||||
transform: skewX(20deg);
|
||||
margin-right: 25px;
|
||||
filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.3));
|
||||
filter: outline(2px solid red);
|
||||
}
|
||||
@@ -85,7 +85,7 @@
|
||||
{
|
||||
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||
height: 20px;
|
||||
margin-right: 200px;
|
||||
margin-right: 130px;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
BIN
ProjectSourceCode/src/resources/img/club-page/favorited.png
Normal file
BIN
ProjectSourceCode/src/resources/img/club-page/favorited.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
ProjectSourceCode/src/resources/img/club-page/unfavorited.png
Normal file
BIN
ProjectSourceCode/src/resources/img/club-page/unfavorited.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,8 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var favoriteButton = document.getElementById("club-favorite-button");
|
||||
if (favoriteButton) {
|
||||
favoriteButton.addEventListener("click", function() {
|
||||
favoriteButton.src = "/img/club-page/favorited.png";
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user