Skip to content

Commit

Permalink
Extract favorite icon
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelDeMartin committed Jan 25, 2025
1 parent 2ae60b2 commit 612c6a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 1 addition & 12 deletions resources/views/blog/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,7 @@ class="ml-1"
</span>
</time>
@if ($favorite->value())
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 20 20"
class="mr-1 size-5"
>
<path
fill="#888888"
d="m10 15l-5.878 3.09l1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955l6.572.955l-4.756 4.635l1.123 6.545z"
/>
</svg>
<s:partial src="icons/favorite" class="mr-1 size-5" />
@endif

<a
Expand Down
10 changes: 10 additions & 0 deletions resources/views/icons/favorite.antlers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<svg
class="{{ class ?? '' }}"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
>
<path
fill="#888"
d="m10 15-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"
/>
</svg>

0 comments on commit 612c6a1

Please sign in to comment.