Skip to content

Commit

Permalink
fix: add icons to components
Browse files Browse the repository at this point in the history
  • Loading branch information
trovster committed Oct 5, 2023
1 parent da2b338 commit a02104b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Fitness Web Component

Simple Web Components for fitness cards and rings.
Simple Web Components for fitness cards and activity rings.

The the items in this demo are built using
The items in this demo are built using
[Fitness Visualisations](https://github.com/trovster/fitness-visualisations)
Web Components.

This website is built using [Eleventy](https://www.11ty.dev).
This website is built using [Eleventy](https://www.11ty.dev), styled using
[Tailwind](https://tailwindcss.com) and the icons are from
[Heroicons](https://heroicons.com).

## The Code

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion src/icons/exercise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/move.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/stand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
move-total="{{ item.move.total }}" move-goal="{{ item.move.goal }}"
exercise-total="{{ item.exercise.total }}" exercise-goal="{{ item.exercise.goal }}"
stand-total="{{ item.stand.total }}" stand-goal="{{ item.stand.goal }}"
></fitness-card>
>
{% svg 'move', { slot: 'icon-move' } %}
{% svg 'exercise', { slot: 'icon-exercise' } %}
{% svg 'stand', { slot: 'icon-stand' } %}
</fitness-card>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit a02104b

Please sign in to comment.