<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome Card</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
            background: linear-gradient(to right, #4facfe, #00f2fe);
            margin: 0;
        }

        .card {
            width: 350px;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: white;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
        }

        .top-section {
            display: flex;
            align-items: center;
            width: 100%;
        }

        .profile-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #4facfe;
            margin-right: 15px;
        }

        .user-details {
            text-align: left;
            flex: 1;
        }

        .user-name {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }

        .user-username {
            font-size: 14px;
            color: #666;
        }

        .welcome-text {
            font-size: 16px;
            font-weight: bold;
            color: #007bff;
            margin: 10px 0;
        }

        .group-name {
            font-size: 14px;
            color: #444;
            font-style: italic;
            margin-top: 5px;
        }
    </style>
</head>
<body>

    <div class="card">
        <div class="top-section">
            <img src="https://via.placeholder.com/80" id="profileImage" class="profile-img">
            <div class="user-details">
                <div class="user-name" id="userName">Your Name</div>
                <div class="user-username" id="userUsername">@username</div>
            </div>
        </div>
        <div class="welcome-text" id="welcomeText">Welcome to the Team</div>
        <div class="group-name" id="groupName">Group Name</div>
    </div>

    <script>
        // Get parameters from URL
        const urlParams = new URLSearchParams(window.location.search);
        const photo = urlParams.get('photo') || "https://via.placeholder.com/80";
        const name = urlParams.get('name') || "Your Name";
        const username = urlParams.get('username') || "username";
        const text = urlParams.get('text') || "Welcome to the Team";
        const downtext = urlParams.get('downtext') || "Group Name";

        // Update UI with API data
        document.getElementById('profileImage').src = photo;
        document.getElementById('userName').textContent = name;
        document.getElementById('userUsername').textContent = `@${username}`;
        document.getElementById('welcomeText').textContent = text;
        document.getElementById('groupName').textContent = downtext;
    </script>

</body>
</html>