Changeset 02b96c5 in OpenWorkouts-current for ow/static/less/pages/profile.less


Ignore:
Timestamp:
Mar 12, 2019, 12:47:38 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
8ba32d9
Parents:
d9453fc
Message:

(#7) Added calendar heatmap chart to the profile page.

The calendar shows the current month, each day without a workout represented
by a light grey square, each day with workout data in a red/pink color, picked
up from a gradient generated based on the app main colors, and calculated based
on the amount of workout time for the day.

A tooltip is shown on hover with more info (only the total workouts time for
now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/static/less/pages/profile.less

    rd9453fc r02b96c5  
    154154    }
    155155}
     156
     157
     158/* Calendar heatmap */
     159.calendar-heatmap {
     160    margin: 20px;
     161    .month {
     162        margin-right: 8px;
     163    }
     164    .month-name {
     165        font-size: 85%;
     166        fill: #777;
     167    }
     168    .day-name {
     169        font-size: 85%;
     170        fill: #777;
     171    }
     172    .day {
     173        &:hover {
     174            stroke: #e1e1e1;
     175            stroke-width: 2;
     176        }
     177        &:focus {
     178            stroke: #e1e1e1;
     179            stroke-width: 2;
     180        }
     181    }
     182}
Note: See TracChangeset for help on using the changeset viewer.