Skip to content

Commit

Permalink
feat: add cute tooltip icons
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Nov 25, 2024
1 parent 4fe9529 commit fd6ea46
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 10 deletions.
68 changes: 64 additions & 4 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,22 @@ <h1 class="title">
<h3 class="chart-title">
Heaviest Sets Weight
<span class="tooltip">
<span class="tooltip-icon">?</span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="tooltip-icon lucide lucide-info"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 16v-4" />
<path d="M12 8h.01" />
</svg>
<span class="tooltip-text"
>Heaviest weight lifted from all the sets of each workout per
exercise.</span>
Expand All @@ -49,7 +64,22 @@ <h3 class="chart-title">
<h3 class="chart-title">
Heaviest Sets Repetitions
<span class="tooltip">
<span class="tooltip-icon">?</span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="tooltip-icon lucide lucide-info"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 16v-4" />
<path d="M12 8h.01" />
</svg>
<span class="tooltip-text"
>Number of repetitions done with the heaviest weight lifted from all
the sets of each workout per exercise.</span>
Expand All @@ -62,7 +92,22 @@ <h3 class="chart-title">
<h3 class="chart-title">
Exercise Total Load
<span class="tooltip">
<span class="tooltip-icon">?</span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="tooltip-icon lucide lucide-info"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 16v-4" />
<path d="M12 8h.01" />
</svg>
<span class="tooltip-text"
>Total weight lifted in each workout per exercise. Total weight
lifted for an exercise is calculated summing up all the sets'
Expand All @@ -76,7 +121,22 @@ <h3 class="chart-title">
<h3 class="chart-title">
Workout Total Load
<span class="tooltip">
<span class="tooltip-icon">?</span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="tooltip-icon lucide lucide-info"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 16v-4" />
<path d="M12 8h.01" />
</svg>
<span class="tooltip-text"
>Total weight lifted in each workout. Total weight lifted is
calculated summing up all the sets' weight times the number of
Expand Down
6 changes: 0 additions & 6 deletions site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ h3 {
align-items: center;
width: 15px;
height: 15px;
font-size: 10px;
color: black;
background-color: white;
border: 1px solid black;
border-radius: 50%;
text-align: center;
}

.tooltip .tooltip-text {
Expand Down

0 comments on commit fd6ea46

Please sign in to comment.