Fitness steps


<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Fitness Steps</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f4f4f9;

            margin: 0;

            padding: 0;

        }


        header {

            background-color: #333;

            color: #fff;

            text-align: center;

            padding: 20px;

        }


        h1 {

            margin: 0;

        }


        .steps-container {

            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 20px;

            padding: 30px;

            margin-top: 20px;

        }


        .step {

            background-color: #fff;

            padding: 20px;

            border-radius: 10px;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            opacity: 0;

            transform: translateY(20px);

            transition: transform 0.3s ease, opacity 0.3s ease;

        }


        .step:hover {

            transform: translateY(-10px);

            cursor: pointer;

            background-color: #f1f1f1;

        }


        .step h2 {

            margin-top: 0;

        }


        .step p {

            font-size: 14px;

            color: #555;

        }


        .step:nth-child(1) {

            animation: fadeIn 1s forwards 0.2s;

        }


        .step:nth-child(2) {

            animation: fadeIn 1s forwards 0.4s;

        }


        .step:nth-child(3) {

            animation: fadeIn 1s forwards 0.6s;

        }


        @keyframes fadeIn {

            to {

                opacity: 1;

                transform: translateY(0);

            }

        }


        footer {

            background-color: #333;

            color: #fff;

            text-align: center;

            padding: 10px;

            margin-top: 30px;

        }


        /* Mobile responsiveness */

        @media (max-width: 768px) {

            .steps-container {

                grid-template-columns: 1fr;

            }

        }

    </style>

</head>

<body>


    <header>

        <h1>Fitness Routine Steps</h1>

    </header>


    <div class="steps-container">

        <div class="step" id="jumpingJacks">

            <h2>Jumping Jacks</h2>

            <p>Stand straight, then jump while spreading your legs and bringing your hands above your head. Jump back to the starting position.</p>

        </div>


        <div class="step" id="pushUps">

            <h2>Push-ups</h2>

            <p>Get into a plank position, lower your body to the ground, and push back up. Keep your body straight during the movement.</p>

        </div>


        <div class="step" id="squats">

            <h2>Squats</h2>

            <p>Stand with your feet shoulder-width apart, bend your knees, and lower your body as if sitting in a chair. Then stand back up.</p>

        </div>

    </div>


    <footer>

        <p>© 2024 Fitness Routine. Stay healthy and active!</p>

    </footer>


    <script>

        // Optional: Add interactivity such as alert when clicking on each step

        document.getElementById('jumpingJacks').addEventListener('click', function() {

            alert('Do 3 sets of 30 Jumping Jacks!');

        });


        document.getElementById('pushUps').addEventListener('click', function() {

            alert('Do 3 sets of 15 Push-ups!');

        });


        document.getElementById('squats').addEventListener('click', function() {

            alert('Do 3 sets of 20 Squats!');

        });

    </script>

</body>

</html>


Comments