<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 Sayfa Bulunamadı</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
}
.container {
position: relative;
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 80px;
color: #f44336;
}
p {
font-size: 20px;
color: #555;
}
.back-home {
margin-top: 30px;
text-decoration: none;
font-size: 18px;
color: #007bff;
}
.back-home:hover {
text-decoration: underline;
}
.image-container {
position: relative;
display: inline-block;
}
img {
max-width: 100%;
height: auto;
}
.speech-bubble {
position: absolute;
top: 70px;
left: 45px;
background: transparent;
color: black;
font-size: 16px;
font-weight: bold;
text-align: center;
width: auto;
line-height: 1.5;
border: none;
padding: 0;
white-space: nowrap;
}
.speech-bubble::after {
display: none;
}
</style>
</head>
<body>
<div class="container">
<h1>404</h1>
<p>Üzgünüz, aradığınız sayfa bulunamadı!</p>
<div class="image-container">
<img src="https://i.hizliresim.com/ggvyt37.png" alt="404 Image">
<div class="speech-bubble" id="ipAddressBubble">IP Alınıyor..</div>
</div>
<br>
<a href="/" class="back-home">Anasayfaya Dön</a>
</div>
<script>
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
const ipAddress = data.ip;
document.getElementById('ipAddressBubble').innerHTML = `IP Adresiniz;<br>${ipAddress}`;
})
.catch(error => {
document.getElementById('ipAddressBubble').textContent = 'IP adresi alınamadı.';
console.error('IP adresi alınırken hata oluştu:', error);
});
</script>
</body>
</html>
[CENTER][/CENTER]