CP

 <!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

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

    <title>Competitive Programming Dashboard</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            line-height: 1.6;

            background-image: url('https://source.unsplash.com/random');

            background-size: cover;

            background-position: center;

            margin: 0;

            padding: 0;

        }


        header {

            background-color: rgba(0, 0, 0, 0.5);

            color: #fff;

            padding: 1rem;

            text-align: center;

            position: fixed;

            width: 100%;

            z-index: 1;

        }


        main {

            display: flex;

            flex-wrap: wrap;

            justify-content: space-around;

            padding: 2rem;

            margin-top: 4rem;

        }


        .card {

            background-color: rgba(255, 255, 255, 0.8);

            border-radius: 5px;

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

            flex: 1 0 30%;

            margin-bottom: 2rem;

            padding: 1rem;

            text-align: center;

        }


        .card h2 {

            margin-top: 0;

        }


        .card p {

            margin-bottom: 0;

        }


        footer {

            background-color: rgba(0, 0, 0, 0.5);

            color: #fff;

            padding: 1rem;

            text-align: center;

            position: fixed;

            width: 100%;

            bottom: 0;

            z-index: 1;

        }


        .get-started-button {

            background-color: #4CAF50;

            border: none;

            color: white;

            padding: 15px 32px;

            text-align: center;

            text-decoration: none;

            display: inline-block;

            font-size: 16px;

            margin: 4px 2px;

            cursor: pointer;

            border-radius: 5px;

            position: fixed;

            bottom: 20px;

            right: 20px;

        }

    </style>

</head>

<body>

    <header>

        <h1>Competitive Programming Dashboard</h1>

    </header>

    <main>

        </div>

    </main>

    <footer>

        &copy; 2023 Competitive Programming Dashboard

    </footer>

    <button class="get-started-button">Get Started</button>

    <script>

        // Update the dashboard with the latest data

        function updateDashboard() {

            const problemsSolved = Math.floor(Math.random() * 100); // Replace with actual data

            const currentStreak = Math.floor(Math.random() * 10); // Replace with actual data

            const longestStreak = Math.floor(Math.random() * 20); // Replace with actual data


            document.getElementById('problems-solved').textContent = problemsSolved;

            document.getElementById('current-streak').textContent = currentStreak;

            document.getElementById('longest-streak').textContent = longestStreak;

        }


        // Update the dashboard every 10 seconds

        setInterval(updateDashboard, 10000);

    </script>

</body>

</html>

Comments

Popular posts from this blog

NEWS

DASHBOARD