User Story: Daily Spotlight on an Exercise with Benefits
As a user of the workout app, I want to see a different exercise with its benefits highlighted on the homepage every day, so that I am motivated to try various exercises and learn more about the positive effects of each exercise.
Description:
Acceptance Criteria:
Daily Exercise in the Spotlight: Each day, a randomly selected exercise from the existing exercises is displayed on the homepage.
Exercise Benefits: Along with the exercise, the specific benefits ("Benefits") of that exercise are shown.
Styling & Design: Each spotlighted exercise is rendered with an appropriate image and styled according to the page's defined theme.
Automatic Update: The exercise changes automatically every day without the need for manual intervention from the user.
Tasks:
[x] Create a branch exercise-spotlight
[x] Extend the existing exercises array to include a list of benefits for each exercise.
[x] Implement a function that selects a random exercise from the array daily and renders it on the homepage. function getRandomIndex()
[x] Ensure the display is integrated with the styled components, including images and benefit descriptions.
[x] Use a Button to toggle to see and hide the Benefits
User Story: Daily Spotlight on an Exercise with Benefits
As a user of the workout app,
I want to see a different exercise with its benefits highlighted on the homepage every day,
so that I am motivated to try various exercises and learn more about the positive effects of each exercise.
Description:
Acceptance Criteria:
Tasks:
exercise-spotlight
function getRandomIndex()