-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformulafactory.html
More file actions
410 lines (365 loc) · 14.1 KB
/
formulafactory.html
File metadata and controls
410 lines (365 loc) · 14.1 KB
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formula Factory - Chemistry Crafting Game</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
:root {
--primary-color: #00ffff;
--secondary-color: #4b0082;
--bg-dark: #001a1a;
--text-light: #e6ffff;
--gradient-dark: rgba(0, 26, 26, 0.9);
--gradient-light: rgba(0, 255, 255, 0.1);
--border-color: rgba(75, 0, 130, 0.2);
--card-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body {
margin: 0;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
line-height: 1.6;
overflow-x: hidden;
}
/* Enhanced Header Styles */
header {
background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0, 255, 255, 0.1);
padding: 1rem;
position: sticky;
top: 0;
z-index: 100;
width: 100%;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.logo {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(45deg, var(--primary-color), #fff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
padding: 0;
margin: 0;
}
.nav-links a {
color: var(--text-light);
text-decoration: none;
font-size: 1rem;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: var(--transition);
position: relative;
}
.nav-links a:hover {
color: var(--primary-color);
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--primary-color);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
/* Improved Card Styles */
.card {
background: linear-gradient(145deg, rgba(0, 26, 26, 0.4), rgba(0, 0, 0, 0.6));
border: 2px solid var(--border-color);
border-radius: 10px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1);
transition: all 0.3s ease-in-out;
}
.card:hover {
border-color: var(--primary-color);
box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
transform: translateY(-5px);
}
/* Enhanced Button Styles */
button {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: var(--text-light);
border: none;
padding: 1rem 2rem;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}
button:hover {
transform: scale(1.05);
box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}
/* Enhanced Section Styles */
.section {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
h1, h2, h3 {
margin: 0 0 1.5rem 0;
}
h2 {
font-size: 2.5rem;
background: linear-gradient(45deg, var(--primary-color), #fff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
margin-bottom: 3rem;
}
/* Enhanced Grid Styles */
.grid {
display: grid;
gap: 2rem;
}
.grid-2 {
grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
grid-template-columns: repeat(3, 1fr);
}
/* Enhanced Icon Styles */
.skill-icon {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
text-align: center;
}
/* Enhanced Background Animation */
.bg-animation {
position: fixed;
width: 100%;
height: 100%;
z-index: -1;
background: radial-gradient(circle, #002626 0%, #001a1a 100%);
}
.floating-shapes {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.shape {
position: absolute;
background: rgba(0, 255, 255, 0.05);
border: 2px solid rgba(0, 255, 255, 0.1);
border-radius: 50%;
animation: float 15s infinite ease-in-out;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(10px, -15px) rotate(5deg); }
50% { transform: translate(0, -25px) rotate(0deg); }
75% { transform: translate(-10px, -15px) rotate(-5deg); }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
nav {
padding: 0 1rem;
}
.nav-links {
position: fixed;
top: 70px;
left: 0;
right: 0;
background: rgba(0,0,0,0.9);
backdrop-filter: blur(10px);
flex-direction: column;
padding: 1rem;
gap: 1rem;
display: none;
}
.nav-links.active {
display: flex;
}
.logo {
font-size: 1.5rem;
}
}
</style>
</head>
<body>
<div class="bg-animation">
<div class="floating-shapes">
<div class="shape" style="width: 60px; height: 60px; left: 10%; top: 20%;"></div>
<div class="shape" style="width: 40px; height: 40px; left: 80%; top: 60%;"></div>
<div class="shape" style="width: 80px; height: 80px; left: 50%; top: 80%;"></div>
</div>
</div>
<header>
<nav>
<div class="logo">Formula Factory</div>
<ul class="nav-links">
<li><a href="#overview">Overview</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#gameplay">Gameplay</a></li>
<li><a href="#download">Play Now</a></li>
</ul>
</nav>
</header>
<main>
<section class="section hero">
<h1 style="font-size: 4rem; text-align: center; color: var(--primary-color); margin-bottom: 2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">Formula Factory</h1>
</section>
<section class="section" id="overview">
<h2>Welcome to Formula Factory</h2>
<div class="grid grid-2"></div>
<div class="card">
<h3>Chemical Crafting</h3>
<p>Discover and collect basic elements, then combine them into complex compounds. Build your own chemistry empire from the ground up!</p>
</div>
<div class="card">
<h3>Automation Adventure</h3>
<p>Create automated production lines, optimize your chemical processes, and unlock new technologies as you expand your factory.</p>
</div>
</div>
</section>
<section class="section" id="features">
<h2>Key Features</h2>
<div class="grid grid-2">
<div class="card">
<div class="skill-icon">
<i class="fas fa-atom"></i>
</div>
<h3>118 Elements</h3>
<p>Access the complete periodic table and discover endless combination possibilities.</p>
</div>
<div class="card">
<div class="skill-icon">
<i class="fas fa-cogs"></i>
</div>
<h3>Automation Systems</h3>
<p>Design and build automated production lines to scale up your chemical manufacturing.</p>
</div>
<div class="card">
<div class="skill-icon">
<i class="fas fa-flask"></i>
</div>
<h3>Research Lab</h3>
<p>Unlock new compounds and technologies through your research facility.</p>
</div>
<div class="card">
<div class="skill-icon">
<i class="fas fa-industry"></i>
</div>
<h3>Factory Building</h3>
<p>Create an efficient layout for your chemical processing plant.</p>
</div>
</div>
<p style="font-size: 0.8rem; color: #999; margin-top: 1rem; text-align: center;">
* The features listed above represent our development roadmap. Current version features may vary. Please check the latest release notes for available features.
</p>
</section>
<section class="section" id="gameplay">
<h2>Gameplay Mechanics</h2>
<div class="grid grid-3">
<div class="card">
<h3>Element Collection</h3>
<p>Extract basic elements from the environment and store them for future use.</p>
</div>
<div class="card">
<h3>Compound Creation</h3>
<p>Follow chemical formulas to create compounds and unlock new possibilities.</p>
</div>
<div class="card">
<h3>Factory Management</h3>
<p>Manage resources, optimize production, and expand your chemical empire.</p>
</div>
</div>
</section>
<section class="section" id="download">
<h2>Start Experimenting</h2>
<div class="card" style="text-align: center;">
<h3>Play Formula Factory Now</h3>
<p>Available on Steam and itch.io</p>
<button style="margin-top: 1rem;" class="button" onclick="window.open('https://itch.io/', 'blank')">
<span style="color: var(--text-light); text-decoration: none; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-play"></i> Play Now
</span>
</button>
</div>
</section>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Enhanced shape animations
const shapes = document.querySelectorAll('.shape');
shapes.forEach(shape => {
const randomX = Math.random() * 100;
const randomY = Math.random() * 100;
shape.style.left = `${randomX}%`;
const duration = 15 + Math.random() * 10;
shape.style.animation = `float ${duration}s infinite ease-in-out`;
shape.style.animationDelay = `${Math.random() * -20}s`;
});
// Smooth scroll with offset for header
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
const headerOffset = 80;
const elementPosition = target.getBoundingClientRect().top;
const offsetPosition = elementPosition + window.pageYOffset - headerOffset;
window.scrollTo({
top: offsetPosition,
behavior: 'smooth'
});
});
});
// Enhanced card hover effects
document.querySelectorAll('.card').forEach(card => {
card.addEventListener('mouseenter', () => {
card.style.transform = 'translateY(-10px)';
card.style.borderColor = 'var(--primary-color)';
});
card.addEventListener('mouseleave', () => {
card.style.transform = 'translateY(0)';
card.style.borderColor = 'var(--border-color)';
});
});
// Add scroll reveal effect
const revealElements = document.querySelectorAll('.card, .section h2');
const revealOnScroll = () => {
revealElements.forEach(element => {
const elementTop = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight;
if (elementTop < windowHeight - 100) {
element.style.opacity = '1';
element.style.transform = 'translateY(0)';
}
});
};
window.addEventListener('scroll', revealOnScroll);
revealOnScroll();
});
</script>
</body>
</html>