-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
239 lines (216 loc) · 9.51 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixel Pioneers - Contact Us</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
font-family: 'Press Start 2P', cursive;
background-color: #0a0e29;
color: #ff6b6b;
}
.pixel-bg {
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230f1642' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
.pixel-button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background-color: #4ecdc4;
border: none;
border-radius: 5px;
box-shadow: 0 6px #45b7aa;
}
.pixel-button:hover {
background-color: #3cb0a0;
}
.pixel-button:active {
background-color: #3cb0a0;
box-shadow: 0 3px #666;
transform: translateY(4px);
}
.pixel-input {
background-color: #1a2151;
border: 2px solid #4ecdc4;
color: #ff6b6b;
padding: 10px;
font-family: 'Press Start 2P', cursive;
font-size: 14px;
}
.pixel-input:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.5);
}
@media (max-width: 768px) {
.pixel-button {
padding: 8px 16px;
font-size: 14px;
}
}
</style>
</head>
<body class="overflow-x-hidden pixel-bg">
<nav class="bg-[#0f1642] text-[#ff6b6b] p-4 sticky top-0 z-50">
<div class="container mx-auto flex justify-between items-center">
<a href="index.html" class="text-xl md:text-2xl">Pixel Pioneers</a>
<ul class="hidden md:flex space-x-6 text-sm">
<li><a href="index.html" class="hover:text-[#4ecdc4] transition duration-300">Home</a></li>
<li><a href="games.html" class="hover:text-[#4ecdc4] transition duration-300">Games</a></li>
<li><a href="blog.html" class="hover:text-[#4ecdc4] transition duration-300">Blog</a></li>
<li><a href="#" class="text-[#4ecdc4]">Contact</a></li>
</ul>
<div class="md:hidden">
<button id="hamburger-menu" class="text-[#ff6b6b] focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h16m-7 6h7"></path>
</svg>
</button>
</div>
</div>
</nav>
<div id="mobile-menu"
class="md:hidden fixed top-[60px] left-0 w-full bg-[#0f1642] z-40 transform -translate-y-full">
<ul class="p-4">
<li><a href="index.html" class="block py-2 hover:text-[#4ecdc4] transition duration-300">Home</a></li>
<li><a href="games.html" class="block py-2 hover:text-[#4ecdc4] transition duration-300">Games</a></li>
<li><a href="blog.html" class="block py-2 hover:text-[#4ecdc4] transition duration-300">Blog</a></li>
<li><a href="#" class="block py-2 text-[#4ecdc4]">Contact</a></li>
</ul>
</div>
<header class="py-16 bg-[#1a2151] text-center px-4">
<h1 class="text-3xl md:text-4xl lg:text-5xl font-bold mb-4">Contact Us</h1>
<p class="text-lg text-[#4ecdc4]">Get in touch with the Pixel Pioneers team!</p>
</header>
<main class="py-16 bg-[#0f1642] px-4">
<div class="container mx-auto">
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="contact-info">
<h2 class="text-2xl font-bold mb-6">Contact Information</h2>
<div class="mb-4">
<h3 class="text-[#4ecdc4] mb-2">Email</h3>
<p>info@pixelpioneers.com</p>
</div>
<div class="mb-4">
<h3 class="text-[#4ecdc4] mb-2">Phone</h3>
<p>+1 (123) 456-7890</p>
</div>
<div class="mb-4">
<h3 class="text-[#4ecdc4] mb-2">Address</h3>
<p>123 Pixel Street, Gametown, GT 12345</p>
</div>
<div class="mt-8">
<h3 class="text-[#4ecdc4] mb-2">Follow Us</h3>
<div class="flex space-x-4">
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] transition duration-300">Facebook</a>
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] transition duration-300">Twitter</a>
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] transition duration-300">Instagram</a>
</div>
</div>
</div>
<div class="contact-form">
<h2 class="text-2xl font-bold mb-6">Send Us a Message</h2>
<form>
<div class="mb-4">
<label for="name" class="block text-[#4ecdc4] mb-2">Name</label>
<input type="text" id="name" name="name" class="pixel-input w-full" required>
</div>
<div class="mb-4">
<label for="email" class="block text-[#4ecdc4] mb-2">Email</label>
<input type="email" id="email" name="email" class="pixel-input w-full" required>
</div>
<div class="mb-4">
<label for="subject" class="block text-[#4ecdc4] mb-2">Subject</label>
<input type="text" id="subject" name="subject" class="pixel-input w-full" required>
</div>
<div class="mb-4">
<label for="message" class="block text-[#4ecdc4] mb-2">Message</label>
<textarea id="message" name="message" rows="4" class="pixel-input w-full" required></textarea>
</div>
<button type="submit" class="pixel-button">Send Message</button>
</form>
</div>
</div>
</div>
</main>
<section class="py-16 bg-[#1a2151] px-4">
<div class="container mx-auto text-center">
<h2 class="text-2xl font-bold mb-8">Find Us</h2>
<div class="max-w-2xl mx-auto">
<!-- Placeholder for a map -->
<div class="bg-[#0f1642] h-64 rounded-lg flex items-center justify-center">
<p class="text-[#4ecdc4]">Map Placeholder</p>
</div>
</div>
</div>
</section>
<footer class="bg-[#0f1642] text-[#ff6b6b] py-16">
<div class="container mx-auto text-center">
<p>© 2024 Pixel Pioneers. All rights reserved.</p>
<div class="mt-4">
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] mx-2 transition duration-300">Facebook</a>
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] mx-2 transition duration-300">Twitter</a>
<a href="#" class="text-[#ff6b6b] hover:text-[#4ecdc4] mx-2 transition duration-300">Instagram</a>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
const hamburger = document.getElementById('hamburger-menu');
const mobileMenu = document.getElementById('mobile-menu');
hamburger.addEventListener('click', () => {
hamburger.classList.toggle('open');
mobileMenu.classList.toggle('active');
});
// GSAP Animations
gsap.from("header", { y: -50, opacity: 0, duration: 1, ease: "power3.out" });
gsap.from(".contact-info", {
x: -50,
opacity: 0,
duration: 1,
scrollTrigger: {
trigger: ".contact-info",
start: "top 80%",
}
});
gsap.from(".contact-form", {
x: 50,
opacity: 0,
duration: 1,
scrollTrigger: {
trigger: ".contact-form",
start: "top 80%",
}
});
gsap.from(".pixel-input", {
y: 20,
opacity: 0,
duration: 0.5,
stagger: 0.1,
scrollTrigger: {
trigger: ".contact-form",
start: "top 80%",
}
});
gsap.from(".find-us", {
y: 50,
opacity: 0,
duration: 1,
scrollTrigger: {
trigger: ".find-us",
start: "top 80%",
}
});
</script>
</body>
</html>