Skip to content

Commit

Permalink
Correct Services Card Text and like functionality (#468)
Browse files Browse the repository at this point in the history
* Update HomeSlider.jsx

* Update blog
  • Loading branch information
AnushkaChouhan25 authored Nov 10, 2024
1 parent 3f1a1aa commit 39db517
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/styles/blogs.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ body {

.read-more-button, .like-button, .comment-button, .submit-button {
padding: 10px 16px;
margin-left: 12px;
border: none;
border-radius: 6px;
color: white;
Expand All @@ -104,11 +105,14 @@ body {
}

.read-more-button {
background-color: #007BFF;
/* background-color: #007BFF; */
color: black;
margin-left: 90px;
margin-bottom: 10px;
}

.read-more-button:hover {
background-color: #0056b3;
background-color: #4994e3;
transform: translateY(-2px);
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/Blog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Blog = ({ mode, textcolor }) => {
});
setLikes((prev) => {
const newLikes = [...prev];
newLikes[index] += liked[index] ? -1 : 1;
newLikes[index] += liked[index];
return newLikes;
});
};
Expand Down

0 comments on commit 39db517

Please sign in to comment.