Загрузка данных


<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Денис | Программист</title>
    <style>
        /* Базовые стили для центрирования и анимации */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #1e3c72, #2a5298);
            color: #ffffff;
            transition: background 1s ease; /* Плавная смена цвета фона */
        }

        .card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            max-width: 350px;
            width: 100%;
        }

        h1 {
            margin: 0 0 10px 0;
            font-size: 2.5rem;
            letter-spacing: 1px;
        }

        p {
            font-size: 1.2rem;
            color: #e0e0e0;
            margin: 0 0 30px 0;
        }

        /* Кнопка переключения цветов */
        .btn-color {
            background-color: #ffffff;
            color: #333333;
            border: none;
            padding: 12px 24px;
            font-size: 1rem;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-color:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        .btn-color:active {
            transform: translateY(0);
        }
    </style>
</head>
<body>

    <div class="card">
        <h1>Денис</h1>
        <p>Программист / Web Developer</p>
        <button class="btn-color" onclick="changeColor()">Изменить цвет</button>
    </div>

    <script>
        // Набор красивых градиентов для смены фона
        const gradients = [
            'linear-gradient(135deg, #1e3c72, #2a5298)', // Синий
            'linear-gradient(135deg, #667eea, #764ba2)', // Фиолетовый
            'linear-gradient(135deg, #11998e, #38ef7d)', // Зеленый
            'linear-gradient(135deg, #ff416c, #ff4b2b)', // Красный/Розовый
            'linear-gradient(135deg, #0f2027, #203a43, #2c5364)', // Темный хакерский
            'linear-gradient(135deg, #ff9966, #ff5e62)'  // Оранжевый
        ];

        let currentIndex = 0;

        function changeColor() {
            // Переходим к следующему градиенту в массиве
            currentIndex = (currentIndex + 1) % gradients.length;
            document.body.style.background = gradients[currentIndex];
        }
    </script>

</body>
</html>