-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
199 lines (177 loc) · 6.47 KB
/
contact.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
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>İletişim</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
.contact-info {
transform: translateY(20px);
opacity: 0;
animation: slideIn 0.5s ease forwards;
}
.info-item {
transition: transform 0.3s ease;
}
.info-item:hover {
transform: translateX(10px);
background-color: #f8f9fa;
padding: 10px;
border-radius: 5px;
}
.form-container {
transform: translateY(30px);
opacity: 0;
animation: slideIn 0.5s ease forwards 0.3s;
}
@keyframes slideIn {
to {
transform: translateY(0);
opacity: 1;
}
}
button {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
button:after {
content: '';
position: absolute;
width: 0;
height: 100%;
top: 0;
left: 0;
background: rgba(255,255,255,0.2);
transition: width 0.3s ease;
}
button:hover:after {
width: 100%;
}
.success-message {
display: none;
background-color: #4CAF50;
color: white;
padding: 15px;
border-radius: 5px;
margin-top: 20px;
text-align: center;
animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0,123,255,0.3);
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Ana Sayfa</a></li>
<li><a href="about.html">Hakkımda</a></li>
<li><a href="reference.html">Referanslar</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contact.html" class="active">İletişim</a></li>
</ul>
</nav>
</header>
<main>
<h1>İletişim</h1>
<!-- İletişim Bilgileri Bölümü -->
<div class="contact-info">
<h2>İletişim Bilgilerim</h2>
<div class="info-item">
<i class="fas fa-user"></i>
<p><strong>Ad Soyad:</strong> [Mert Doğanay]</p>
</div>
<div class="info-item">
<i class="fas fa-phone"></i>
<p><strong>Telefon:</strong> <a href="tel:+905334727561">+90 533 472 75 61</a></p>
</div>
<div class="info-item">
<i class="fas fa-envelope"></i>
<p><strong>E-posta:</strong> <a href="mailto:[mertdoganay437@gmail.com]">[mertdoganay437@gmail.com]</a></p>
</div>
</div>
<div class="form-container">
<h2>Bana Mesaj Gönderin</h2>
<form>
<div class="form-group">
<label for="name">Ad Soyad:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">E-posta:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Mesaj:</label>
<textarea id="message" name="message" required></textarea>
</div>
<button type="submit">Gönder</button>
</form>
</div>
<div class="success-message" id="successMessage">
Mesajınız başarıyla gönderildi!
</div>
</main>
<footer>
<p>© 2024 Tüm hakları saklıdır.</p>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
const form = document.querySelector('form');
const successMessage = document.getElementById('successMessage');
// Form gönderimi
form.addEventListener('submit', function(e) {
e.preventDefault();
// Form verilerini al
const formData = new FormData(form);
const name = formData.get('name');
const email = formData.get('email');
const message = formData.get('message');
// Form kontrolü
if (name && email && message) {
// Başarılı mesajını göster
successMessage.style.display = 'block';
// Formu temizle
form.reset();
// 3 saniye sonra mesajı gizle
setTimeout(() => {
successMessage.style.display = 'none';
}, 3000);
}
});
// Input alanları için animasyon
const inputs = document.querySelectorAll('input, textarea');
inputs.forEach(input => {
input.addEventListener('focus', function() {
this.parentElement.style.transform = 'translateX(10px)';
});
input.addEventListener('blur', function() {
this.parentElement.style.transform = 'translateX(0)';
});
});
// İletişim bilgileri için hover efekti
const infoItems = document.querySelectorAll('.info-item');
infoItems.forEach(item => {
item.addEventListener('mouseenter', function() {
this.style.backgroundColor = '#f8f9fa';
});
item.addEventListener('mouseleave', function() {
this.style.backgroundColor = 'transparent';
});
});
});
</script>
</body>
</html>