diff --git a/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor b/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor index 798fe3fe..2b69de55 100644 --- a/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor +++ b/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor @@ -1,8 +1,21 @@ @using LinkDotNet.Blog.Domain @using LinkDotNet.Blog.Web.Features.Services @inject ILocalStorageService LocalStorage - @code { @@ -16,7 +29,9 @@ private bool HasLiked { get; set; } - private string BtnClass => HasLiked ? "clap-active" : string.Empty; + private string ButtonClass => HasLiked + ? "btn-primary" + : "btn-outline-secondary"; protected override void OnParametersSet() { diff --git a/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor.css b/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor.css deleted file mode 100644 index 571b34a4..00000000 --- a/src/LinkDotNet.Blog.Web/Features/ShowBlogPost/Components/Like.razor.css +++ /dev/null @@ -1,26 +0,0 @@ -.clap-btn { - display: inline-block; - Cursor: pointer; - width: 32px; - height: 32px; - background: url('assets/ClapAnimation.webp') no-repeat 0 50%; - background-size: 900%; -} - -html[data-bs-theme='light'] .clap-btn { - filter: invert(100%); -} - -.clap-active { - animation-name: animate; - animation-duration: .8s; - animation-iteration-count: 1; - animation-fill-mode: forwards; - animation-timing-function: steps(8); -} - -@keyframes animate { - 0% { background-position: left; } - 50% { background-position: right; } - 100% { background-position: right; } - } diff --git a/src/LinkDotNet.Blog.Web/wwwroot/assets/ClapAnimation.webp b/src/LinkDotNet.Blog.Web/wwwroot/assets/ClapAnimation.webp deleted file mode 100644 index f7fafdfb..00000000 Binary files a/src/LinkDotNet.Blog.Web/wwwroot/assets/ClapAnimation.webp and /dev/null differ