-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
254 lines (242 loc) · 15.1 KB
/
index.php
File metadata and controls
254 lines (242 loc) · 15.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
<?php $title = 'Home - Bloa Programming Language'; include 'header.php'; ?>
<section class="relative min-h-screen flex items-center justify-center overflow-hidden">
<div class="absolute inset-0 opacity-20">
<div class="absolute top-0 left-10 w-80 h-80 bg-cyan-500 rounded-full mix-blend-multiply filter blur-3xl"></div>
<div class="absolute top-0 right-10 w-80 h-80 bg-blue-500 rounded-full mix-blend-multiply filter blur-3xl animation-delay-2000"></div>
<div class="absolute bottom-0 left-1/2 w-80 h-80 bg-indigo-500 rounded-full mix-blend-multiply filter blur-3xl animation-delay-4000"></div>
</div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10 py-32">
<h1 class="text-6xl md:text-7xl font-bold mb-8 leading-tight text-white">Welcome to <span class="bg-gradient-to-r from-cyan-400 to-blue-400 bg-clip-text text-transparent">Bloa</span></h1>
<p class="text-xl md:text-2xl mb-10 text-gray-400 max-w-3xl mx-auto leading-relaxed">A minimalist scripting language designed for simplicity, readability, and powerful performance. Write more with less code.</p>
<div class="flex flex-wrap gap-4 justify-center mb-16">
<a href="docs.php" class="bg-cyan-500 text-black px-8 py-4 rounded-lg font-bold hover:bg-cyan-400 hover:shadow-2xl hover:shadow-cyan-500/50 hover:scale-105 transition transform duration-300">Get Started</a>
<a href="examples.php" class="border-2 border-cyan-500 text-cyan-400 px-8 py-4 rounded-lg font-bold hover:bg-cyan-500 hover:text-black transition duration-300">View Examples</a>
<a href="https://github.com/bloa-lang/bloa-src" target="_blank" class="bg-gray-800 hover:bg-gray-700 text-white px-8 py-4 rounded-lg font-bold transition duration-300 border border-gray-700">
<i class="fab fa-github mr-2"></i>GitHub
</a>
</div>
</div>
</section>
<section class="py-24 relative z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-20">
<h2 class="text-4xl md:text-5xl font-bold mb-4 text-white">Why Choose Bloa?</h2>
<p class="text-xl text-gray-400 max-w-2xl mx-auto">Experience the perfect balance of simplicity and power</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="card-hover bg-gray-900 p-8 rounded-xl shadow-lg border border-gray-800">
<div class="w-16 h-16 bg-gradient-to-br from-cyan-500 to-blue-500 rounded-lg flex items-center justify-center mb-6">
<i class="fas fa-code text-2xl text-white"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-white">Simple Syntax</h3>
<p class="text-gray-400 leading-relaxed">Easy to learn and read, perfect for beginners and experts alike. Write more with less code.</p>
</div>
<div class="card-hover bg-gray-900 p-8 rounded-xl shadow-lg border border-gray-800">
<div class="w-16 h-16 bg-gradient-to-br from-emerald-500 to-cyan-500 rounded-lg flex items-center justify-center mb-6">
<i class="fas fa-rocket text-2xl text-white"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-white">Fast Execution</h3>
<p class="text-gray-400 leading-relaxed">Built with performance in mind, executes scripts quickly and efficiently with minimal overhead.</p>
</div>
<div class="card-hover bg-gray-900 p-8 rounded-xl shadow-lg border border-gray-800">
<div class="w-16 h-16 bg-gradient-to-br from-indigo-500 to-blue-500 rounded-lg flex items-center justify-center mb-6">
<i class="fas fa-tools text-2xl text-white"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-white">Rich Features</h3>
<p class="text-gray-400 leading-relaxed">Supports functions, classes, modules, and a comprehensive standard library for real-world applications.</p>
</div>
</div>
</div>
</section>
<section class="py-24 relative z-10 border-t border-gray-800">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-20">
<h2 class="text-4xl md:text-5xl font-bold mb-4 text-white">Quick Example</h2>
<p class="text-xl text-gray-400">See how simple and elegant Bloa code is</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
<div class="bg-gray-900 p-8 rounded-xl shadow-xl border border-gray-800">
<div class="flex items-center mb-4">
<span class="text-sm font-semibold text-cyan-400 uppercase">Calculator Example</span>
</div>
<pre class="code text-sm bg-black text-gray-100 p-6 rounded-lg overflow-x-auto border border-gray-700 leading-relaxed"><code>class Calculator {
function add(self, a, b) {
return a + b
}
function multiply(self, a, b) {
return a * b
}
}
calc = Calculator()
result = calc.add(5, 3)
say("5 + 3 = " + str(result))
product = calc.multiply(4, 7)
say("4 * 7 = " + str(product))</code></pre>
</div>
<div class="space-y-6">
<div class="flex space-x-4">
<i class="fas fa-check text-2xl text-cyan-400 flex-shrink-0 mt-1"></i>
<div>
<h4 class="font-bold text-lg text-white">Clean & Readable</h4>
<p class="text-gray-400">Syntax that's easy to understand at first glance</p>
</div>
</div>
<div class="flex space-x-4">
<i class="fas fa-check text-2xl text-cyan-400 flex-shrink-0 mt-1"></i>
<div>
<h4 class="font-bold text-lg text-white">Object-Oriented</h4>
<p class="text-gray-400">Full support for classes, inheritance, and polymorphism</p>
</div>
</div>
<div class="flex space-x-4">
<i class="fas fa-check text-2xl text-cyan-400 flex-shrink-0 mt-1"></i>
<div>
<h4 class="font-bold text-lg text-white">Powerful</h4>
<p class="text-gray-400">Rich standard library with everything you need</p>
</div>
</div>
<div class="flex space-x-4">
<i class="fas fa-check text-2xl text-cyan-400 flex-shrink-0 mt-1"></i>
<div>
<h4 class="font-bold text-lg text-white">Performance</h4>
<p class="text-gray-400">Optimized C++ interpreter for fast execution</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="py-24 relative z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-20">
<h2 class="text-4xl md:text-5xl font-bold mb-4 text-white">Featured Features</h2>
<p class="text-xl text-gray-400">Everything you need to build powerful applications</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-cyan-500 transition duration-300">
<i class="fas fa-list text-2xl text-cyan-400 mb-3"></i>
<h3 class="font-bold text-white mb-2">Lists & Arrays</h3>
<p class="text-gray-400 text-sm">Native support for collections and iteration</p>
</div>
<div class="bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-cyan-500 transition duration-300">
<i class="fas fa-repeat text-2xl text-cyan-400 mb-3"></i>
<h3 class="font-bold text-white mb-2">Control Flow</h3>
<p class="text-gray-400 text-sm">Complete loops, conditionals, and exception handling</p>
</div>
<div class="bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-cyan-500 transition duration-300">
<i class="fas fa-box text-2xl text-cyan-400 mb-3"></i>
<h3 class="font-bold text-white mb-2">Modules</h3>
<p class="text-gray-400 text-sm">Organize code with modular system</p>
</div>
<div class="bg-gray-900 p-6 rounded-lg border border-gray-800 hover:border-cyan-500 transition duration-300">
<i class="fas fa-puzzle-piece text-2xl text-cyan-400 mb-3"></i>
<h3 class="font-bold text-white mb-2">Extensible</h3>
<p class="text-gray-400 text-sm">Easy to extend with custom libraries</p>
</div>
</div>
</div>
</section>
<section class="py-24 relative z-10 border-t border-gray-800">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2 class="text-4xl md:text-5xl font-bold mb-6 text-white">Ready to Get Started?</h2>
<p class="text-xl text-gray-400 mb-10 max-w-2xl mx-auto">Join the Bloa community and start building amazing things today.</p>
<div class="flex flex-wrap gap-4 justify-center">
<a href="download.php" class="bg-cyan-500 text-black px-8 py-4 rounded-lg font-bold hover:bg-cyan-400 transition duration-300">
<i class="fas fa-download mr-2"></i>Download Now
</a>
<a href="docs.php" class="border-2 border-cyan-500 text-cyan-400 px-8 py-4 rounded-lg font-bold hover:bg-cyan-500 hover:text-black transition duration-300">
<i class="fas fa-book mr-2"></i>Read Docs
</a>
</div>
</div>
</section>
<?php include 'footer.php'; ?>
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold mb-4 gradient-text">Get Started Today</h2>
<p class="text-xl text-gray-600">Join the Bloa community and start building amazing applications</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center">
<div class="text-5xl font-bold gradient-text mb-4">01</div>
<h3 class="text-xl font-bold mb-3">Learn</h3>
<p class="text-gray-600 mb-4">Read our comprehensive documentation and explore examples</p>
<a href="docs.php" class="inline-block text-purple-600 font-semibold hover:text-purple-700">Start Learning →</a>
</div>
<div class="text-center">
<div class="text-5xl font-bold gradient-text mb-4">02</div>
<h3 class="text-xl font-bold mb-3">Code</h3>
<p class="text-gray-600 mb-4">Write your first Bloa program and experiment with the language</p>
<a href="examples.php" class="inline-block text-purple-600 font-semibold hover:text-purple-700">View Examples →</a>
</div>
<div class="text-center">
<div class="text-5xl font-bold gradient-text mb-4">03</div>
<h3 class="text-xl font-bold mb-3">Share</h3>
<p class="text-gray-600 mb-4">Contribute to the project and join our growing community</p>
<a href="https://github.com/bloa-lang/bloa-src" class="inline-block text-purple-600 font-semibold hover:text-purple-700" target="_blank">Contribute →</a>
</div>
</div>
</div>
</section>
<section class="py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold mb-4 gradient-text">Powerful Standard Library</h2>
<p class="text-xl text-gray-600">Everything you need for real-world applications</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="card-hover bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h3 class="text-xl font-bold mb-6 flex items-center"><i class="fas fa-calculator text-purple-600 mr-3"></i> Math Functions</h3>
<div class="space-y-2 text-gray-600">
<p>• sqrt(x), pow(base, exp)</p>
<p>• sin(x), cos(x), tan(x)</p>
<p>• log(x), exp(x), abs(x)</p>
<p>• floor(x), ceil(x), round(x)</p>
<p>• And many more...</p>
</div>
</div>
<div class="card-hover bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h3 class="text-xl font-bold mb-6 flex items-center"><i class="fas fa-file-alt text-purple-600 mr-3"></i> File I/O</h3>
<div class="space-y-2 text-gray-600">
<p>• read_file(path), write_file(path, content)</p>
<p>• exists(path), list_dir(path)</p>
<p>• mkdir(path), rmdir(path)</p>
<p>• remove(path), copy_file(from, to)</p>
<p>• And more file operations...</p>
</div>
</div>
<div class="card-hover bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h3 class="text-xl font-bold mb-6 flex items-center"><i class="fas fa-type text-purple-600 mr-3"></i> String Functions</h3>
<div class="space-y-2 text-gray-600">
<p>• len(s), split(s, delim), join(list, sep)</p>
<p>• substr(s, start, len?), find(s, sub)</p>
<p>• replace(s, old, new), to_upper(s), to_lower(s)</p>
<p>• trim(s), contains(s, sub), reverse(s)</p>
<p>• And string utilities...</p>
</div>
</div>
<div class="card-hover bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h3 class="text-xl font-bold mb-6 flex items-center"><i class="fas fa-wrench text-purple-600 mr-3"></i> Utilities</h3>
<div class="space-y-2 text-gray-600">
<p>• random_int(max), random_float(max)</p>
<p>• now() - current timestamp</p>
<p>• Type conversions: int(), float(), str(), bool()</p>
<p>• List operations: append(), length()</p>
<p>• More utilities available...</p>
</div>
</div>
</div>
</div>
</section>
<section class="py-20 bg-gradient-to-br from-purple-50 to-blue-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-4xl md:text-5xl font-bold mb-4 gradient-text">Ready to Start?</h2>
<p class="text-xl text-gray-600 mb-8 max-w-2xl mx-auto">Join thousands of developers using Bloa to build fast, beautiful applications</p>
<div class="flex flex-wrap gap-4 justify-center">
<a href="download.php" class="bg-gradient-primary text-white px-8 py-4 rounded-lg font-bold hover:shadow-2xl transition duration-300">Download Now</a>
<a href="docs.php" class="border-2 border-purple-600 text-purple-600 px-8 py-4 rounded-lg font-bold hover:bg-purple-50 transition duration-300">Read Documentation</a>
</div>
</div>
</div>
</section>
<?php include 'footer.php'; ?>