Selamlar TurkHackTeam Ailesi
Hocalarım Selamlar Bu Tarz Konularda Kendimi Geliştiriyorum
Sizin İçin Bir İndex Hazırladım
görüş ve önerilerinizi bekliyorum

Sizin İçin Bir İndex Hazırladım
görüş ve önerilerinizi bekliyorum
HTML:
<!DOCTYPE html>
<html lang="tr-TR">
<head>
<title>Kod</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="canvas-container">
<canvas id="spider-web"></canvas>
</div>
<div class="yazı">
<a href="https://turkhackteam.org/uye/fladd.1013298/">
<img src="https://r.resimlink.com/sxeI0MaBu.png">
</a>
<a href="https://turkhackteam.org">
<img src="https://i.hizliresim.com/pyb0t54.png">
</a>
<div class="font">
<h1>Hacked By TurkHackTeam</h1>
<h2>Hello Admin <br>Hacked By TurkHackTeam and Fladd</h2>
<p><span id="red">Bin Atlı Akınlarda</span> <span id="cyan">Çocuklar Gibi Şendik</span><br>
<span id="purple">Bin Atlı o Gün</span> <span id="green">Dev Gibi Bir Orduyu Yendik</span></p>
</div>
</div>
<script src="index.js"></script>
</body>
</html>
Css
CSS:
body {
background-image: url('https://i.hizliresim.com/g6aa7R.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
.yazı {
padding: 0;
margin: 0;
text-align: center;
text-shadow: black;
position: relative;
z-index: 1;
}
.yazı h1, .yazı h2 {
color: white;
transition: all 0.3s ease-in-out;
}
.yazı h1 {
padding-top: 20px;
font-weight: bold;
font-size: 50px;
}
.yazı h2 {
margin-top: 10px;
}
.yazı p {
font-size: 30px;
}
.yazı p #red {
color: red;
}
.yazı p #cyan {
color: cyan;
}
.yazı p #purple {
color: purple;
}
.yazı p #green {
color: green;
}
.yazı h1, .yazı h2 , .font {
text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}
.yazı a img {
width: 10%;
height: 10%;
padding-top: 20px;
}
.canvas-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
canvas {
width: 100%;
height: 100%;
display: block;
}
JavaScript:
const canvas = document.getElementById('spider-web');
const ctx = canvas.getContext('2d');
function resizeCanvas() {
canvas.width = canvas.clientWidth;
canvas.height = canvas.clientHeight;
}
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
const points = [];
const mouse = {
x: null,
y: null
};
canvas.addEventListener('mousemove', (event) => {
mouse.x = event.clientX;
mouse.y = event.clientY;
});
class Point {
constructor(x, y, radius, color) {
this.x = x;
this.y = y;
this.radius = radius;
this.color = color;
this.dx = Math.random() - 0.5;
this.dy = Math.random() - 0.5;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
ctx.fillStyle = this.color;
ctx.fill();
}
update() {
if (this.x < 0 || this.x > canvas.width) this.dx = -this.dx;
if (this.y < 0 || this.y > canvas.height) this.dy = -this.dy;
this.x += this.dx;
this.y += this.dy;
this.draw();
}
}
function init() {
for (let i = 0; i < 150; i++) {
let radius = 2;
let x = Math.random() * canvas.width;
let y = Math.random() * canvas.height;
let color = 'white';
points.push(new Point(x, y, radius, color));
}
}
function animate() {
requestAnimationFrame(animate);
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let i = 0; i < points.length; i++) {
points[i].update();
for (let j = i + 1; j < points.length; j++) {
const dx = points[i].x - points[j].x;
const dy = points[i].y - points[j].y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < 100) {
ctx.beginPath();
ctx.moveTo(points[i].x, points[i].y);
ctx.lineTo(points[j].x, points[j].y);
ctx.strokeStyle = 'rgba(255, 255, 255, ' + (1 - distance / 100) + ')';
ctx.stroke();
}
}
if (mouse.x && mouse.y) {
const dx = points[i].x - mouse.x;
const dy = points[i].y - mouse.y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < 100) {
ctx.beginPath();
ctx.moveTo(points[i].x, points[i].y);
ctx.lineTo(mouse.x, mouse.y);
ctx.strokeStyle = 'rgba(255, 255, 255, ' + (1 - distance / 100) + ')';
ctx.stroke();
}
}
}
}
init();
animate();



