Update index2.html
Browse files- index2.html +128 -358
index2.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Ali Brown |
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
<script>
|
@@ -39,41 +39,40 @@
|
|
39 |
</script>
|
40 |
<style>
|
41 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
42 |
-
|
43 |
body {
|
44 |
font-family: 'Inter', sans-serif;
|
45 |
background-color: #0F172A;
|
46 |
color: #F8FAFC;
|
47 |
}
|
48 |
-
|
49 |
.gradient-bg {
|
50 |
background: linear-gradient(-45deg, #0F172A, #1E293B, #334155, #475569);
|
51 |
background-size: 400% 400%;
|
52 |
animation: gradient 15s ease infinite;
|
53 |
}
|
54 |
-
|
55 |
.card-hover {
|
56 |
transition: all 0.3s ease;
|
57 |
}
|
58 |
-
|
59 |
.card-hover:hover {
|
60 |
transform: translateY(-5px);
|
61 |
box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
|
62 |
}
|
63 |
-
|
64 |
.social-icon {
|
65 |
transition: all 0.3s ease;
|
66 |
}
|
67 |
-
|
68 |
.social-icon:hover {
|
69 |
transform: scale(1.2);
|
70 |
color: #FFD700;
|
71 |
}
|
72 |
-
|
73 |
.nav-link {
|
74 |
position: relative;
|
75 |
}
|
76 |
-
|
77 |
.nav-link::after {
|
78 |
content: '';
|
79 |
position: absolute;
|
@@ -84,11 +83,11 @@
|
|
84 |
background-color: #FFD700;
|
85 |
transition: width 0.3s ease;
|
86 |
}
|
87 |
-
|
88 |
.nav-link:hover::after {
|
89 |
width: 100%;
|
90 |
}
|
91 |
-
|
92 |
.app-card {
|
93 |
background: rgba(30, 41, 59, 0.7);
|
94 |
backdrop-filter: blur(10px);
|
@@ -106,10 +105,9 @@
|
|
106 |
</div>
|
107 |
<div class="hidden md:block">
|
108 |
<div class="ml-10 flex items-baseline space-x-4">
|
109 |
-
<a href="#home" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Home</a>
|
110 |
-
<a href="#projects" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Projects</a>
|
111 |
-
<a href="#about" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">About</a>
|
112 |
-
<a href="#contact" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Contact</a>
|
113 |
</div>
|
114 |
</div>
|
115 |
</div>
|
@@ -128,13 +126,12 @@
|
|
128 |
</div>
|
129 |
</div>
|
130 |
</div>
|
131 |
-
|
132 |
<div class="hidden md:hidden" id="mobile-menu">
|
133 |
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
134 |
-
<a href="#home" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Home</a>
|
135 |
-
<a href="#projects" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Projects</a>
|
136 |
-
<a href="#about" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">About</a>
|
137 |
-
<a href="#contact" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Contact</a>
|
138 |
<a href="https://huggingface.co/AliBrown" target="_blank" class="bg-hf-purple hover:bg-yellow-500 text-hf-dark block px-3 py-2 rounded-md text-base font-medium flex items-center justify-center">
|
139 |
<i class="fas fa-robot mr-2"></i> Visit Hugging Face
|
140 |
</a>
|
@@ -142,298 +139,146 @@
|
|
142 |
</div>
|
143 |
</nav>
|
144 |
|
145 |
-
<
|
146 |
-
<
|
147 |
-
<
|
148 |
-
<
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
<p class="text-lg text-gray-300 mb-8">
|
153 |
-
A developer and security enthusiast based in Berlin. I love building solid web applications, hardening servers, and bringing ideas to life with a touch of AI.
|
154 |
-
</p>
|
155 |
-
<div class="flex space-x-4">
|
156 |
-
<a href="#projects" class="bg-hf-purple hover:bg-yellow-500 text-hf-dark px-6 py-3 rounded-md font-medium">
|
157 |
-
Explore My Projects
|
158 |
-
</a>
|
159 |
-
<a href="#contact" class="border border-hf-purple text-hf-purple hover:bg-hf-purple hover:text-hf-dark px-6 py-3 rounded-md font-medium">
|
160 |
-
Contact Me
|
161 |
-
</a>
|
162 |
-
</div>
|
163 |
-
</div>
|
164 |
-
<div class="md:w-1/2 flex justify-center">
|
165 |
-
<div class="relative w-64 h-64 md:w-80 md:h-80">
|
166 |
-
<div class="absolute inset-0 bg-hf-purple/20 rounded-full blur-xl animate-pulse"></div>
|
167 |
-
<div class="relative w-full h-full flex items-center justify-center">
|
168 |
-
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo" class="w-full h-full object-contain animate-float">
|
169 |
-
</div>
|
170 |
-
</div>
|
171 |
-
</div>
|
172 |
-
</div>
|
173 |
-
</section>
|
174 |
-
|
175 |
-
<section id="projects" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
|
176 |
-
<div class="text-center mb-16">
|
177 |
-
<h2 class="text-3xl md:text-4xl font-bold mb-4">
|
178 |
-
<span class="text-hf-purple">My</span>
|
179 |
-
<span class="text-white">Projects</span>
|
180 |
-
</h2>
|
181 |
-
<p class="text-gray-400 max-w-2xl mx-auto">
|
182 |
-
Here's a selection of my work, from AI-powered tools to secure server architectures.
|
183 |
</p>
|
184 |
-
</
|
185 |
-
|
186 |
-
<div class="relative">
|
187 |
-
<div class="overflow-hidden">
|
188 |
-
<div id="carousel" class="flex transition-transform duration-500 ease-in-out -ml-4">
|
189 |
-
<div class="carousel-item w-full md:w-1/2 lg:w-1/3 p-4 flex-shrink-0">
|
190 |
-
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
191 |
-
<div class="flex items-center mb-4">
|
192 |
-
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
193 |
-
<i class="fas fa-brain text-hf-purple text-2xl"></i>
|
194 |
-
</div>
|
195 |
-
<h3 class="text-xl font-semibold ml-4">AI-Powered Portal</h3>
|
196 |
-
</div>
|
197 |
-
<p class="text-gray-400 mb-6 flex-grow">
|
198 |
-
An informational portal for Germany's youth services, enhanced with an AI component to make complex data easily accessible.
|
199 |
-
</p>
|
200 |
-
<div class="flex justify-between items-center mt-auto">
|
201 |
-
<span class="text-sm text-hf-purple">AI • Full-Stack • Data</span>
|
202 |
-
<a href="https://jugendamt-deutschland.de" target="_blank" rel="noopener noreferrer" class="text-hf-purple hover:text-yellow-500 font-medium flex items-center">
|
203 |
-
Visit <i class="fas fa-external-link-alt ml-2"></i>
|
204 |
-
</a>
|
205 |
-
</div>
|
206 |
-
</div>
|
207 |
-
</div>
|
208 |
-
|
209 |
-
<div class="carousel-item w-full md:w-1/2 lg:w-1/3 p-4 flex-shrink-0">
|
210 |
-
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
211 |
-
<div class="flex items-center mb-4">
|
212 |
-
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
213 |
-
<i class="fas fa-shield-halved text-hf-purple text-2xl"></i>
|
214 |
-
</div>
|
215 |
-
<h3 class="text-xl font-semibold ml-4">Secure Architectures</h3>
|
216 |
-
</div>
|
217 |
-
<p class="text-gray-400 mb-6 flex-grow">
|
218 |
-
My passion project: experimenting with and hardening server configurations to build secure and resilient infrastructure from the ground up.
|
219 |
-
</p>
|
220 |
-
<div class="flex justify-between items-center mt-auto">
|
221 |
-
<span class="text-sm text-hf-purple">Security • Servers • DevOps</span>
|
222 |
-
<a href="https://github.com/volkansah" target="_blank" rel="noopener noreferrer" class="text-hf-purple hover:text-yellow-500 font-medium flex items-center">
|
223 |
-
Explore <i class="fas fa-external-link-alt ml-2"></i>
|
224 |
-
</a>
|
225 |
-
</div>
|
226 |
-
</div>
|
227 |
-
</div>
|
228 |
-
|
229 |
-
<div class="carousel-item w-full md:w-1/2 lg:w-1/3 p-4 flex-shrink-0">
|
230 |
-
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
231 |
-
<div class="flex items-center mb-4">
|
232 |
-
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
233 |
-
<i class="fas fa-globe-europe text-hf-purple text-2xl"></i>
|
234 |
-
</div>
|
235 |
-
<h3 class="text-xl font-semibold ml-4">Custom Web Solutions</h3>
|
236 |
-
</div>
|
237 |
-
<p class="text-gray-400 mb-6 flex-grow">
|
238 |
-
Various websites I've built for fun and for clients, focusing on clean code, performance, and great user experience.
|
239 |
-
</p>
|
240 |
-
<div class="flex justify-between items-center mt-auto">
|
241 |
-
<span class="text-sm text-hf-purple">Web Dev • UI/UX</span>
|
242 |
-
<a href="https://volkansah.github.io/" target="_blank" rel="noopener noreferrer" class="text-hf-purple hover:text-yellow-500 font-medium flex items-center">
|
243 |
-
See More <i class="fas fa-external-link-alt ml-2"></i>
|
244 |
-
</a>
|
245 |
-
</div>
|
246 |
-
</div>
|
247 |
-
</div>
|
248 |
-
</div>
|
249 |
-
</div>
|
250 |
-
|
251 |
-
<button id="prevBtn" class="absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-hf-dark/80 hover:bg-hf-accent text-white p-3 rounded-full -ml-2 hidden sm:block">
|
252 |
-
<i class="fas fa-chevron-left"></i>
|
253 |
-
</button>
|
254 |
-
<button id="nextBtn" class="absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-hf-dark/80 hover:bg-hf-accent text-white p-3 rounded-full -mr-2 hidden sm:block">
|
255 |
-
<i class="fas fa-chevron-right"></i>
|
256 |
-
</button>
|
257 |
-
</div>
|
258 |
-
</section>
|
259 |
|
260 |
-
|
261 |
-
|
262 |
-
<div class="
|
263 |
-
<div class="
|
264 |
-
<
|
265 |
-
<
|
266 |
-
|
267 |
-
</h2>
|
268 |
-
<p class="text-gray-400 mb-6">
|
269 |
-
As a developer with a deep interest in cybersecurity, I focus on building applications that are not just functional, but also secure and robust. My journey began with web development and quickly grew into a passion for securing the entire stack.
|
270 |
-
</p>
|
271 |
-
<p class="text-gray-400 mb-6">
|
272 |
-
I'm driven by curiosity, whether it's exploring new ways to harden a Linux server or integrating AI models from Hugging Face into my work to solve real-world problems.
|
273 |
-
</p>
|
274 |
-
<div class="flex flex-wrap gap-4 mb-6">
|
275 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">Full-Stack Dev</span>
|
276 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">Cybersecurity</span>
|
277 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">Server Hardening</span>
|
278 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">JavaScript</span>
|
279 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">Linux</span>
|
280 |
-
<span class="bg-hf-dark/80 text-hf-purple px-3 py-1 rounded-full text-sm">AI Integration</span>
|
281 |
-
</div>
|
282 |
-
<a href="https://github.com/volkansah" target="_blank" rel="noopener noreferrer" class="inline-flex items-center text-hf-purple hover:text-yellow-500 font-medium">
|
283 |
-
<i class="fab fa-github mr-2"></i> Visit my GitHub
|
284 |
-
</a>
|
285 |
-
</div>
|
286 |
-
</div>
|
287 |
-
<div class="lg:w-1/2 lg:pl-10">
|
288 |
-
<div class="grid grid-cols-2 gap-4">
|
289 |
-
<div class="bg-hf-dark/50 border border-gray-800 rounded-xl p-6 card-hover">
|
290 |
-
<div class="text-hf-purple text-4xl mb-4">
|
291 |
-
<i class="fas fa-code"></i>
|
292 |
</div>
|
293 |
-
<h3 class="text-xl font-semibold
|
294 |
-
<p class="text-gray-400">
|
295 |
-
I actively contribute to and maintain projects on my GitHub profile.
|
296 |
-
</p>
|
297 |
</div>
|
298 |
-
<
|
299 |
-
|
300 |
-
|
|
|
|
|
|
|
301 |
</div>
|
302 |
-
<h3 class="text-xl font-semibold
|
303 |
-
<p class="text-gray-400">
|
304 |
-
Hands-on experience with server setup, maintenance, and security protocols.
|
305 |
-
</p>
|
306 |
</div>
|
307 |
-
<
|
308 |
-
|
309 |
-
|
|
|
|
|
|
|
310 |
</div>
|
311 |
-
<h3 class="text-xl font-semibold
|
312 |
-
<p class="text-gray-400">
|
313 |
-
Passionate about hardening systems and building secure digital environments.
|
314 |
-
</p>
|
315 |
</div>
|
316 |
-
<
|
317 |
-
|
318 |
-
|
|
|
|
|
|
|
319 |
</div>
|
320 |
-
<h3 class="text-xl font-semibold
|
321 |
-
<p class="text-gray-400">
|
322 |
-
Built and launched several web projects, including an AI-powered portal.
|
323 |
-
</p>
|
324 |
</div>
|
|
|
325 |
</div>
|
326 |
</div>
|
327 |
-
</
|
328 |
-
</section>
|
329 |
|
330 |
-
|
331 |
-
|
332 |
-
<
|
333 |
-
<
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
<div class="flex flex-col lg:flex-row gap-10">
|
342 |
-
<div class="lg:w-1/2">
|
343 |
-
<form action="#" method="POST" class="bg-hf-dark/50 border border-gray-800 rounded-xl p-8">
|
344 |
-
<div class="mb-6">
|
345 |
-
<label for="name" class="block text-gray-300 mb-2">Your Name</label>
|
346 |
-
<input type="text" id="name" name="name" class="w-full bg-hf-dark border border-gray-700 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-hf-purple">
|
347 |
-
</div>
|
348 |
-
<div class="mb-6">
|
349 |
-
<label for="email" class="block text-gray-300 mb-2">Email Address</label>
|
350 |
-
<input type="email" id="email" name="email" class="w-full bg-hf-dark border border-gray-700 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-hf-purple">
|
351 |
-
</div>
|
352 |
-
<div class="mb-6">
|
353 |
-
<label for="subject" class="block text-gray-300 mb-2">Subject</label>
|
354 |
-
<input type="text" id="subject" name="subject" class="w-full bg-hf-dark border border-gray-700 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-hf-purple">
|
355 |
</div>
|
356 |
-
<div
|
357 |
-
<
|
358 |
-
<
|
359 |
</div>
|
360 |
-
|
361 |
-
Send Message
|
362 |
-
</button>
|
363 |
-
</form>
|
364 |
</div>
|
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 |
-
<div class="flex space-x-6">
|
405 |
-
<a href="https://github.com/volkansah" target="_blank" rel="noopener noreferrer" class="social-icon text-gray-400 hover:text-hf-purple text-2xl">
|
406 |
-
<i class="fab fa-github"></i>
|
407 |
-
</a>
|
408 |
-
<a href="https://volkansah.github.io/" target="_blank" rel="noopener noreferrer" class="social-icon text-gray-400 hover:text-hf-purple text-2xl">
|
409 |
-
<i class="fas fa-globe"></i>
|
410 |
-
</a>
|
411 |
-
<a href="https://huggingface.co/AliBrown" target="_blank" rel="noopener noreferrer" class="social-icon text-gray-400 hover:text-hf-purple text-2xl">
|
412 |
-
<i class="fas fa-robot"></i>
|
413 |
-
</a>
|
414 |
-
</div>
|
415 |
-
</div>
|
416 |
</div>
|
417 |
</div>
|
418 |
-
</
|
419 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
|
421 |
<footer class="bg-hf-dark/50 border-t border-gray-800 py-10">
|
422 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
423 |
<div class="flex flex-col md:flex-row justify-between items-center">
|
424 |
<div class="mb-6 md:mb-0">
|
425 |
-
<span class="text-hf-purple font-bold text-xl">Ali Brown
|
426 |
<p class="text-gray-400 mt-2">Building the future, securely.</p>
|
427 |
</div>
|
428 |
<div class="flex flex-wrap justify-center gap-6">
|
429 |
-
<a href="#home" class="text-gray-400 hover:text-hf-purple">Home</a>
|
430 |
-
<a href="#projects" class="text-gray-400 hover:text-hf-purple">Projects</a>
|
431 |
-
<a href="#about" class="text-gray-400 hover:text-hf-purple">About</a>
|
432 |
-
<a href="#contact" class="text-gray-400 hover:text-hf-purple">Contact</a>
|
433 |
</div>
|
434 |
</div>
|
435 |
<div class="mt-8 pt-8 border-t border-gray-800 text-center text-gray-500 text-sm">
|
436 |
-
<p>© 2025 Ali Brown Portfolio. All rights reserved.</p>
|
437 |
</div>
|
438 |
</div>
|
439 |
</footer>
|
@@ -448,81 +293,6 @@
|
|
448 |
mobileMenu.classList.toggle('hidden');
|
449 |
});
|
450 |
}
|
451 |
-
|
452 |
-
// Smooth scrolling for navigation links
|
453 |
-
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
454 |
-
anchor.addEventListener('click', function (e) {
|
455 |
-
e.preventDefault();
|
456 |
-
const targetId = this.getAttribute('href');
|
457 |
-
const targetElement = document.querySelector(targetId);
|
458 |
-
|
459 |
-
if (targetElement) {
|
460 |
-
window.scrollTo({
|
461 |
-
top: targetElement.offsetTop - 64, // Adjust for fixed nav height
|
462 |
-
behavior: 'smooth'
|
463 |
-
});
|
464 |
-
|
465 |
-
if (!mobileMenu.classList.contains('hidden')) {
|
466 |
-
mobileMenu.classList.add('hidden');
|
467 |
-
}
|
468 |
-
}
|
469 |
-
});
|
470 |
-
});
|
471 |
-
|
472 |
-
// Carousel functionality
|
473 |
-
const carousel = document.getElementById('carousel');
|
474 |
-
const prevBtn = document.getElementById('prevBtn');
|
475 |
-
const nextBtn = document.getElementById('nextBtn');
|
476 |
-
|
477 |
-
if (carousel) {
|
478 |
-
const items = carousel.querySelectorAll('.carousel-item');
|
479 |
-
const itemCount = items.length;
|
480 |
-
let currentIndex = 0;
|
481 |
-
|
482 |
-
function getVisibleItems() {
|
483 |
-
if (window.innerWidth >= 1024) return 3; // lg
|
484 |
-
if (window.innerWidth >= 768) return 2; // md
|
485 |
-
return 1; // sm
|
486 |
-
}
|
487 |
-
|
488 |
-
function updateCarousel() {
|
489 |
-
const itemWidth = items[0].getBoundingClientRect().width;
|
490 |
-
const containerGap = parseInt(getComputedStyle(items[0]).paddingRight) * 2;
|
491 |
-
const totalWidth = itemWidth + containerGap;
|
492 |
-
|
493 |
-
carousel.style.transform = `translateX(-${currentIndex * totalWidth}px)`;
|
494 |
-
|
495 |
-
// Button visibility
|
496 |
-
const visibleItems = getVisibleItems();
|
497 |
-
prevBtn.disabled = currentIndex === 0;
|
498 |
-
nextBtn.disabled = currentIndex >= itemCount - visibleItems;
|
499 |
-
|
500 |
-
prevBtn.style.opacity = prevBtn.disabled ? '0.4' : '1';
|
501 |
-
nextBtn.style.opacity = nextBtn.disabled ? '0.4' : '1';
|
502 |
-
}
|
503 |
-
|
504 |
-
prevBtn.addEventListener('click', () => {
|
505 |
-
if (currentIndex > 0) {
|
506 |
-
currentIndex--;
|
507 |
-
updateCarousel();
|
508 |
-
}
|
509 |
-
});
|
510 |
-
|
511 |
-
nextBtn.addEventListener('click', () => {
|
512 |
-
if (currentIndex < itemCount - getVisibleItems()) {
|
513 |
-
currentIndex++;
|
514 |
-
updateCarousel();
|
515 |
-
}
|
516 |
-
});
|
517 |
-
|
518 |
-
window.addEventListener('resize', () => {
|
519 |
-
// Reset to avoid issues on resize
|
520 |
-
currentIndex = 0;
|
521 |
-
updateCarousel();
|
522 |
-
});
|
523 |
-
|
524 |
-
updateCarousel(); // Initial call
|
525 |
-
}
|
526 |
});
|
527 |
</script>
|
528 |
</body>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Ali Brown | PyFundaments</title>
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
<script>
|
|
|
39 |
</script>
|
40 |
<style>
|
41 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
42 |
body {
|
43 |
font-family: 'Inter', sans-serif;
|
44 |
background-color: #0F172A;
|
45 |
color: #F8FAFC;
|
46 |
}
|
47 |
+
|
48 |
.gradient-bg {
|
49 |
background: linear-gradient(-45deg, #0F172A, #1E293B, #334155, #475569);
|
50 |
background-size: 400% 400%;
|
51 |
animation: gradient 15s ease infinite;
|
52 |
}
|
53 |
+
|
54 |
.card-hover {
|
55 |
transition: all 0.3s ease;
|
56 |
}
|
57 |
+
|
58 |
.card-hover:hover {
|
59 |
transform: translateY(-5px);
|
60 |
box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
|
61 |
}
|
62 |
+
|
63 |
.social-icon {
|
64 |
transition: all 0.3s ease;
|
65 |
}
|
66 |
+
|
67 |
.social-icon:hover {
|
68 |
transform: scale(1.2);
|
69 |
color: #FFD700;
|
70 |
}
|
71 |
+
|
72 |
.nav-link {
|
73 |
position: relative;
|
74 |
}
|
75 |
+
|
76 |
.nav-link::after {
|
77 |
content: '';
|
78 |
position: absolute;
|
|
|
83 |
background-color: #FFD700;
|
84 |
transition: width 0.3s ease;
|
85 |
}
|
86 |
+
|
87 |
.nav-link:hover::after {
|
88 |
width: 100%;
|
89 |
}
|
90 |
+
|
91 |
.app-card {
|
92 |
background: rgba(30, 41, 59, 0.7);
|
93 |
backdrop-filter: blur(10px);
|
|
|
105 |
</div>
|
106 |
<div class="hidden md:block">
|
107 |
<div class="ml-10 flex items-baseline space-x-4">
|
108 |
+
<a href="index.html#home" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Home</a>
|
109 |
+
<a href="index.html#projects" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Projects</a>
|
110 |
+
<a href="index.html#about" class="nav-link text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">About</a>
|
|
|
111 |
</div>
|
112 |
</div>
|
113 |
</div>
|
|
|
126 |
</div>
|
127 |
</div>
|
128 |
</div>
|
129 |
+
|
130 |
<div class="hidden md:hidden" id="mobile-menu">
|
131 |
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
132 |
+
<a href="index.html#home" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Home</a>
|
133 |
+
<a href="index.html#projects" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Projects</a>
|
134 |
+
<a href="index.html#about" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">About</a>
|
|
|
135 |
<a href="https://huggingface.co/AliBrown" target="_blank" class="bg-hf-purple hover:bg-yellow-500 text-hf-dark block px-3 py-2 rounded-md text-base font-medium flex items-center justify-center">
|
136 |
<i class="fas fa-robot mr-2"></i> Visit Hugging Face
|
137 |
</a>
|
|
|
139 |
</div>
|
140 |
</nav>
|
141 |
|
142 |
+
<main class="pt-32 pb-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
|
143 |
+
<section class="mb-16">
|
144 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-4">
|
145 |
+
<span class="text-hf-purple">PyFundaments:</span> A Secure Python Micro-Framework
|
146 |
+
</h1>
|
147 |
+
<p class="text-lg text-gray-300 max-w-4xl">
|
148 |
+
PyFundaments is not a monolithic framework, but a meticulously crafted, modular foundation for Python applications. It was developed with a **"security-first" mindset**, aiming to provide every application with a stable, secure, and clean fundament. The architecture is designed to be flexible, adapting to the needs of various projects—be it a simple Discord bot, a complex ML pipeline, or a full-fledged web application.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
</p>
|
150 |
+
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
+
<section class="mb-16">
|
153 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-8">Core Principles</h2>
|
154 |
+
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
|
155 |
+
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
156 |
+
<div class="flex items-center mb-4">
|
157 |
+
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
158 |
+
<i class="fas fa-shield-halved text-hf-purple text-2xl"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
160 |
+
<h3 class="text-xl font-semibold ml-4">Security by Design</h3>
|
|
|
|
|
|
|
161 |
</div>
|
162 |
+
<p class="text-gray-400">Every application starts on a verified, secure base, minimizing vulnerabilities from the ground up.</p>
|
163 |
+
</div>
|
164 |
+
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
165 |
+
<div class="flex items-center mb-4">
|
166 |
+
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
167 |
+
<i class="fas fa-cubes text-hf-purple text-2xl"></i>
|
168 |
</div>
|
169 |
+
<h3 class="text-xl font-semibold ml-4">Modular Architecture</h3>
|
|
|
|
|
|
|
170 |
</div>
|
171 |
+
<p class="text-gray-400">Services are initialized only as needed, ensuring a lean and efficient execution tailored to the project.</p>
|
172 |
+
</div>
|
173 |
+
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
174 |
+
<div class="flex items-center mb-4">
|
175 |
+
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
176 |
+
<i class="fas fa-link-slash text-hf-purple text-2xl"></i>
|
177 |
</div>
|
178 |
+
<h3 class="text-xl font-semibold ml-4">Clear Separation</h3>
|
|
|
|
|
|
|
179 |
</div>
|
180 |
+
<p class="text-gray-400">A clean divide between business logic and infrastructure, handled by `main.py` and `app.py`.</p>
|
181 |
+
</div>
|
182 |
+
<div class="app-card rounded-xl p-6 h-full card-hover flex flex-col">
|
183 |
+
<div class="flex items-center mb-4">
|
184 |
+
<div class="bg-hf-purple/20 p-3 rounded-lg">
|
185 |
+
<i class="fas fa-gear text-hf-purple text-2xl"></i>
|
186 |
</div>
|
187 |
+
<h3 class="text-xl font-semibold ml-4">Flexibility</h3>
|
|
|
|
|
|
|
188 |
</div>
|
189 |
+
<p class="text-gray-400">Conditional loading of services via the `.env` file allows projects to use only what they need.</p>
|
190 |
</div>
|
191 |
</div>
|
192 |
+
</section>
|
|
|
193 |
|
194 |
+
<section class="mb-16">
|
195 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-8">How It Works</h2>
|
196 |
+
<div class="app-card rounded-xl p-8">
|
197 |
+
<p class="text-gray-400 mb-6">
|
198 |
+
The heart of the framework is `main.py`. It serves as the first line of defense, ensuring all necessary components are in place. It validates your configuration, initializes required services (like PostgreSQL database connections, encryption, or user management), and makes them available to your application. Services for which no configuration is found are gracefully skipped.
|
199 |
+
</p>
|
200 |
+
<div class="bg-hf-dark/80 p-6 rounded-lg border border-gray-700 space-y-4">
|
201 |
+
<div>
|
202 |
+
<h4 class="text-hf-purple font-medium mb-2">Installation</h4>
|
203 |
+
<pre class="text-gray-300 bg-gray-900 rounded-lg p-3"><code>pip install -r requirements.txt</code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
</div>
|
205 |
+
<div>
|
206 |
+
<h4 class="text-hf-purple font-medium mb-2">Execution</h4>
|
207 |
+
<pre class="text-gray-300 bg-gray-900 rounded-lg p-3"><code>python main.py</code></pre>
|
208 |
</div>
|
209 |
+
</div>
|
|
|
|
|
|
|
210 |
</div>
|
211 |
+
</section>
|
212 |
+
|
213 |
+
<section class="mb-16">
|
214 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-8">Key Modules</h2>
|
215 |
+
<div class="app-card rounded-xl p-8">
|
216 |
+
<p class="text-gray-400 mb-6">
|
217 |
+
PyFundaments includes a suite of security-critical modules, all housed within the `fundaments/` directory. Each module has a specific role in securing your application.
|
218 |
+
</p>
|
219 |
+
<div class="overflow-x-auto">
|
220 |
+
<table class="min-w-full text-left">
|
221 |
+
<thead class="border-b-2 border-gray-700">
|
222 |
+
<tr>
|
223 |
+
<th class="py-3 px-4 font-semibold text-hf-purple">Module</th>
|
224 |
+
<th class="py-3 px-4 font-semibold text-hf-purple">Description</th>
|
225 |
+
</tr>
|
226 |
+
</thead>
|
227 |
+
<tbody>
|
228 |
+
<tr class="border-b border-gray-800">
|
229 |
+
<td class="py-4 px-4 text-gray-300">`access_control.py`</td>
|
230 |
+
<td class="py-4 px-4 text-gray-400">Role-based access management for your application.</td>
|
231 |
+
</tr>
|
232 |
+
<tr class="border-b border-gray-800">
|
233 |
+
<td class="py-4 px-4 text-gray-300">`encryption.py`</td>
|
234 |
+
<td class="py-4 px-4 text-gray-400">Robust cryptographic routines for data security.</td>
|
235 |
+
</tr>
|
236 |
+
<tr class="border-b border-gray-800">
|
237 |
+
<td class="py-4 px-4 text-gray-300">`postgresql.py`</td>
|
238 |
+
<td class="py-4 px-4 text-gray-400">Secure, asynchronous database access.</td>
|
239 |
+
</tr>
|
240 |
+
<tr class="border-b border-gray-800">
|
241 |
+
<td class="py-4 px-4 text-gray-300">`security.py`</td>
|
242 |
+
<td class="py-4 px-4 text-gray-400">The central layer for orchestrating security measures.</td>
|
243 |
+
</tr>
|
244 |
+
<tr>
|
245 |
+
<td class="py-4 px-4 text-gray-300">`user_handler.py`</td>
|
246 |
+
<td class="py-4 px-4 text-gray-400">Module for managing authentication and identities.</td>
|
247 |
+
</tr>
|
248 |
+
</tbody>
|
249 |
+
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
</div>
|
251 |
</div>
|
252 |
+
</section>
|
253 |
+
|
254 |
+
<section class="mb-16">
|
255 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-8">License and Ethics</h2>
|
256 |
+
<div class="app-card rounded-xl p-8">
|
257 |
+
<p class="text-gray-400 mb-4">
|
258 |
+
PyFundaments is released under the Apache 2.0 License. It's crucial to note that the project includes a **mandatory ethical use policy**. Its use is strictly prohibited for any purposes that promote hatred, facilitate illegal activities, or spread malicious content.
|
259 |
+
</p>
|
260 |
+
<p class="text-gray-400">
|
261 |
+
Give a ⭐ if you find the structure helpful!
|
262 |
+
</p>
|
263 |
+
</div>
|
264 |
+
</section>
|
265 |
+
</main>
|
266 |
|
267 |
<footer class="bg-hf-dark/50 border-t border-gray-800 py-10">
|
268 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
269 |
<div class="flex flex-col md:flex-row justify-between items-center">
|
270 |
<div class="mb-6 md:mb-0">
|
271 |
+
<span class="text-hf-purple font-bold text-xl">Ali Brown aka Volkan Sah</span>
|
272 |
<p class="text-gray-400 mt-2">Building the future, securely.</p>
|
273 |
</div>
|
274 |
<div class="flex flex-wrap justify-center gap-6">
|
275 |
+
<a href="index.html#home" class="text-gray-400 hover:text-hf-purple">Home</a>
|
276 |
+
<a href="index.html#projects" class="text-gray-400 hover:text-hf-purple">Projects</a>
|
277 |
+
<a href="index.html#about" class="text-gray-400 hover:text-hf-purple">About</a>
|
|
|
278 |
</div>
|
279 |
</div>
|
280 |
<div class="mt-8 pt-8 border-t border-gray-800 text-center text-gray-500 text-sm">
|
281 |
+
<p>© 2025 Ali Brown aka Volkan Sah Portfolio. All rights reserved.</p>
|
282 |
</div>
|
283 |
</div>
|
284 |
</footer>
|
|
|
293 |
mobileMenu.classList.toggle('hidden');
|
294 |
});
|
295 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
});
|
297 |
</script>
|
298 |
</body>
|