-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
249 lines (215 loc) · 7.82 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kişisel Web Sitem</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
min-height: 100vh;
transition: background 2s cubic-bezier(0.4, 0, 0.2, 1);
padding: 20px;
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: rgba(255, 255, 255, 0.92);
padding: 30px;
border-radius: 15px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
header {
text-align: center;
margin-bottom: 40px;
}
h1 {
font-size: 2.5em;
color: #333;
margin-bottom: 10px;
}
.subtitle {
color: #666;
font-size: 1.2em;
}
.content-section {
margin-bottom: 40px;
}
h2 {
color: #444;
margin-bottom: 20px;
border-bottom: 2px solid #eee;
padding-bottom: 10px;
}
.hobbies {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.hobby-card {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.hobby-card:hover {
transform: translateY(-5px);
}
.chart-container {
margin-top: 30px;
height: 400px;
}
footer {
text-align: center;
margin-top: 40px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Hoşgeldiniz</h1>
<p class="subtitle">Kişisel Web Sitemde Gezinin</p>
</header>
<section class="content-section">
<h2>Hobilerim</h2>
<div class="hobbies">
<div class="hobby-card">
<h3>Fotoğrafçılık</h3>
<p>Doğa ve şehir manzaralarını fotoğraflamaktan keyif alıyorum.</p>
</div>
<div class="hobby-card">
<h3>Kitap Okuma</h3>
<p>Bilim kurgu ve fantastik edebiyat en sevdiğim türler.</p>
</div>
<div class="hobby-card">
<h3>Kodlama</h3>
<p>Web geliştirme ve yapay zeka projeleri üzerinde çalışıyorum.</p>
</div>
</div>
</section>
<section class="content-section">
<h2>Becerilerim</h2>
<div class="chart-container">
<canvas id="skillsChart"></canvas>
</div>
</section>
<footer>
<p>© 2025 Kişisel Web Sitem - Tüm hakları saklıdır.</p>
</footer>
</div>
<script>
// Renk paleti grupları
const colorGroups = [
{
primary: ['#FF6B6B', '#4ECDC4', '#45B7D1'],
secondary: ['#FFE66D', '#95E1D3', '#FF8B94']
},
{
primary: ['#A8E6CF', '#DCEDC1', '#FFD3B6'],
secondary: ['#C3E8BD', '#E7F3D3', '#FFDCC8']
},
{
primary: ['#6C5B7B', '#C06C84', '#F67280'],
secondary: ['#8B7B9B', '#D88CA0', '#FF919B']
}
];
let currentColors = {
color1: colorGroups[0].primary[0],
color2: colorGroups[0].primary[1],
color3: colorGroups[0].primary[2]
};
let targetColors = {
color1: colorGroups[0].primary[0],
color2: colorGroups[0].primary[1],
color3: colorGroups[0].primary[2]
};
function interpolateColor(color1, color2, factor) {
const r1 = parseInt(color1.substring(1, 3), 16);
const g1 = parseInt(color1.substring(3, 5), 16);
const b1 = parseInt(color1.substring(5, 7), 16);
const r2 = parseInt(color2.substring(1, 3), 16);
const g2 = parseInt(color2.substring(3, 5), 16);
const b2 = parseInt(color2.substring(5, 7), 16);
const r = Math.round(r1 + (r2 - r1) * factor);
const g = Math.round(g1 + (g2 - g1) * factor);
const b = Math.round(b1 + (b2 - b1) * factor);
return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b.toString(16).padStart(2, '0')}`;
}
let animationFrame;
let lastMouseX = 0;
let lastMouseY = 0;
const smoothingFactor = 0.03; // Daha yavaş geçiş için düşük değer
function updateBackground() {
// Renkleri yumuşak bir şekilde interpolate et
currentColors.color1 = interpolateColor(currentColors.color1, targetColors.color1, smoothingFactor);
currentColors.color2 = interpolateColor(currentColors.color2, targetColors.color2, smoothingFactor);
currentColors.color3 = interpolateColor(currentColors.color3, targetColors.color3, smoothingFactor);
// Gradyeni güncelle
const angle = (lastMouseX * 360).toFixed(0);
document.body.style.background = `
linear-gradient(${angle}deg,
${currentColors.color1} 0%,
${currentColors.color2} 50%,
${currentColors.color3} 100%)
`;
animationFrame = requestAnimationFrame(updateBackground);
}
document.addEventListener('mousemove', (e) => {
lastMouseX = e.clientX / window.innerWidth;
lastMouseY = e.clientY / window.innerHeight;
// Renk grubunu seç
const groupIndex = Math.floor(lastMouseY * colorGroups.length);
const colorGroup = colorGroups[groupIndex];
// Hedef renkleri güncelle
targetColors = {
color1: colorGroup.primary[Math.floor(Math.random() * colorGroup.primary.length)],
color2: colorGroup.secondary[Math.floor(Math.random() * colorGroup.secondary.length)],
color3: colorGroup.primary[Math.floor(Math.random() * colorGroup.primary.length)]
};
});
// Animasyonu başlat
updateBackground();
// Beceriler grafiği
const ctx = document.getElementById('skillsChart').getContext('2d');
new Chart(ctx, {
type: 'radar',
data: {
labels: ['Web Geliştirme', 'Tasarım', 'Fotoğrafçılık', 'Yazılım', 'İletişim', 'Proje Yönetimi'],
datasets: [{
label: 'Beceri Seviyesi',
data: [90, 75, 85, 80, 95, 70],
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgba(54, 162, 235, 1)',
borderWidth: 2,
pointBackgroundColor: 'rgba(54, 162, 235, 1)',
}]
},
options: {
scales: {
r: {
beginAtZero: true,
max: 100
}
},
plugins: {
legend: {
display: false
}
}
}
});
</script>
</body>
</html>