this block is called Games Column All State make it separate from the Games Column when pressing the games button and have that column be called Games Column Games State
Browse files- index.html +63 -27
index.html
CHANGED
|
@@ -217,9 +217,9 @@ Download CV
|
|
| 217 |
</div>
|
| 218 |
<div id="projects-grid" class="w-full max-w-5xl mx-auto grid grid-cols-1 gap-8">
|
| 219 |
<!-- Game Column -->
|
| 220 |
-
<div id="games-col" class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 221 |
<h3 class="text-2xl font-bold mb-6 text-center">Games</h3>
|
| 222 |
-
|
| 223 |
<img src="https://static.wixstatic.com/media/6588f2_d9fdecb14bfc48ac99bd5efed3e1b054~mv2.png" alt="Project 1" class="w-full h-48 object-cover">
|
| 224 |
<div class="p-6">
|
| 225 |
<h2 class="text-2xl font-bold mb-2">Bap Cat</h2>
|
|
@@ -256,6 +256,46 @@ Download CV
|
|
| 256 |
</div>
|
| 257 |
</div>
|
| 258 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
<!-- Art Column -->
|
| 260 |
<div id="art-col" class="flex flex-col items-center gap-8">
|
| 261 |
<h3 class="text-2xl font-bold mb-6 text-center">Art</h3>
|
|
@@ -364,71 +404,67 @@ View All Projects
|
|
| 364 |
feather.replace();
|
| 365 |
// Project filtering functionality
|
| 366 |
function filterProjects(filter) {
|
| 367 |
-
const
|
|
|
|
| 368 |
const artCol = document.getElementById('art-col');
|
| 369 |
const gamesBtn = document.getElementById('games-btn');
|
| 370 |
const artBtn = document.getElementById('art-btn');
|
| 371 |
const allBtn = document.getElementById('all-btn');
|
| 372 |
const projectsGrid = document.getElementById('projects-grid');
|
| 373 |
-
|
|
|
|
| 374 |
gamesBtn.classList.remove('bg-red-600', 'text-white');
|
| 375 |
gamesBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 376 |
artBtn.classList.remove('bg-red-600', 'text-white');
|
| 377 |
artBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 378 |
allBtn.classList.remove('bg-red-600', 'text-white');
|
| 379 |
allBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
|
|
|
| 380 |
if (filter === 'games') {
|
| 381 |
-
// Show only games column centered
|
| 382 |
-
|
|
|
|
| 383 |
artCol.style.display = 'none';
|
| 384 |
projectsGrid.style.gridTemplateColumns = '1fr';
|
| 385 |
-
projectsGrid.style.maxWidth = '640px';
|
| 386 |
|
| 387 |
// Update button styles
|
| 388 |
gamesBtn.classList.add('bg-red-600', 'text-white');
|
| 389 |
gamesBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
| 390 |
-
artBtn.classList.remove('bg-red-600', 'text-white');
|
| 391 |
-
artBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 392 |
-
allBtn.classList.remove('bg-red-600', 'text-white');
|
| 393 |
-
allBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 394 |
|
| 395 |
} else if (filter === 'art') {
|
| 396 |
// Show only art column centered
|
| 397 |
-
|
|
|
|
| 398 |
artCol.style.display = 'grid';
|
| 399 |
projectsGrid.style.gridTemplateColumns = '1fr';
|
| 400 |
-
projectsGrid.style.maxWidth = '640px';
|
| 401 |
|
| 402 |
// Update button styles
|
| 403 |
artBtn.classList.add('bg-red-600', 'text-white');
|
| 404 |
artBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
| 405 |
-
gamesBtn.classList.remove('bg-red-600', 'text-white');
|
| 406 |
-
gamesBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 407 |
-
allBtn.classList.remove('bg-red-600', 'text-white');
|
| 408 |
-
allBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 409 |
|
| 410 |
} else { // all
|
| 411 |
// Show both columns side by side
|
| 412 |
-
|
|
|
|
| 413 |
artCol.style.display = 'grid';
|
| 414 |
projectsGrid.style.gridTemplateColumns = '1fr 1fr';
|
| 415 |
-
projectsGrid.style.maxWidth = '1024px';
|
| 416 |
-
|
|
|
|
| 417 |
allBtn.classList.add('bg-red-600', 'text-white');
|
| 418 |
allBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
| 419 |
-
gamesBtn.classList.remove('bg-red-600', 'text-white');
|
| 420 |
-
gamesBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 421 |
-
artBtn.classList.remove('bg-red-600', 'text-white');
|
| 422 |
-
artBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 423 |
}
|
| 424 |
-
}
|
| 425 |
// Initialize with all shown by default
|
| 426 |
document.addEventListener('DOMContentLoaded', function() {
|
| 427 |
const projectsGrid = document.getElementById('projects-grid');
|
| 428 |
projectsGrid.style.gridTemplateColumns = '1fr 1fr';
|
| 429 |
projectsGrid.style.maxWidth = '1024px';
|
| 430 |
-
projectsGrid.style.gap = '2rem';
|
| 431 |
-
|
|
|
|
| 432 |
});
|
| 433 |
// Scroll to section function
|
| 434 |
function scrollToSection(sectionId) {
|
|
|
|
| 217 |
</div>
|
| 218 |
<div id="projects-grid" class="w-full max-w-5xl mx-auto grid grid-cols-1 gap-8">
|
| 219 |
<!-- Game Column -->
|
| 220 |
+
<div id="games-col-all" class="grid grid-cols-1 md:grid-cols-2 gap-8" style="display: none;">
|
| 221 |
<h3 class="text-2xl font-bold mb-6 text-center">Games</h3>
|
| 222 |
+
<div class="project-card bg-gray-50 rounded-xl overflow-hidden shadow-sm max-w-2xl mx-auto w-full">
|
| 223 |
<img src="https://static.wixstatic.com/media/6588f2_d9fdecb14bfc48ac99bd5efed3e1b054~mv2.png" alt="Project 1" class="w-full h-48 object-cover">
|
| 224 |
<div class="p-6">
|
| 225 |
<h2 class="text-2xl font-bold mb-2">Bap Cat</h2>
|
|
|
|
| 256 |
</div>
|
| 257 |
</div>
|
| 258 |
</div>
|
| 259 |
+
<!-- Games Column (Filtered State) -->
|
| 260 |
+
<div id="games-col-filtered" class="grid grid-cols-1 gap-8" style="display: none;">
|
| 261 |
+
<h3 class="text-2xl font-bold mb-6 text-center">Games</h3>
|
| 262 |
+
<div class="project-card bg-gray-50 rounded-xl overflow-hidden shadow-sm max-w-2xl mx-auto w-full">
|
| 263 |
+
<img src="https://static.wixstatic.com/media/6588f2_d9fdecb14bfc48ac99bd5efed3e1b054~mv2.png" alt="Project 1" class="w-full h-48 object-cover">
|
| 264 |
+
<div class="p-6">
|
| 265 |
+
<h2 class="text-2xl font-bold mb-2">Bap Cat</h2>
|
| 266 |
+
<h3 class="text-xl font-semibold mb-2">A game about a cat spreading chaos in their owners cafe</h3>
|
| 267 |
+
<p class="text-gray-600 mb-4">Why? Simply because it wants to spend more time with their owner.</p>
|
| 268 |
+
<a href="#" class="text-red-600 hover:text-red-800 font-medium inline-flex items-center">
|
| 269 |
+
View Project
|
| 270 |
+
<i data-feather="arrow-right" class="ml-2"></i>
|
| 271 |
+
</a>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
<div class="project-card bg-gray-50 rounded-xl overflow-hidden shadow-sm max-w-2xl mx-auto">
|
| 275 |
+
<img src="http://static.photos/gaming/640x360/101" alt="Game Project 1" class="w-full h-48 object-cover">
|
| 276 |
+
<div class="p-6">
|
| 277 |
+
<h2 class="text-2xl font-bold mb-2">Mech Warrior</h2>
|
| 278 |
+
<h3 class="text-xl font-semibold mb-2">Epic mech battles in futuristic cities</h3>
|
| 279 |
+
<p class="text-gray-600 mb-4">Strategic combat game with customizable mech units</p>
|
| 280 |
+
<a href="#" class="text-red-600 hover:text-red-800 font-medium inline-flex items-center">
|
| 281 |
+
View Project
|
| 282 |
+
<i data-feather="arrow-right" class="ml-2"></i>
|
| 283 |
+
</a>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
<div class="project-card bg-gray-50 rounded-xl overflow-hidden shadow-sm max-w-2xl mx-auto">
|
| 287 |
+
<img src="http://static.photos/gaming/640x360/102" alt="Game Project 2" class="w-full h-48 object-cover">
|
| 288 |
+
<div class="p-6">
|
| 289 |
+
<h2 class="text-2xl font-bold mb-2">Pixel Adventure</h2>
|
| 290 |
+
<h3 class="text-xl font-semibold mb-2">Retro-style platformer with modern mechanics</h3>
|
| 291 |
+
<p class="text-gray-600 mb-4">Explore a vibrant pixel world full of secrets and challenges</p>
|
| 292 |
+
<a href="#" class="text-red-600 hover:text-red-800 font-medium inline-flex items-center">
|
| 293 |
+
View Project
|
| 294 |
+
<i data-feather="arrow-right" class="ml-2"></i>
|
| 295 |
+
</a>
|
| 296 |
+
</div>
|
| 297 |
+
</div>
|
| 298 |
+
</div>
|
| 299 |
<!-- Art Column -->
|
| 300 |
<div id="art-col" class="flex flex-col items-center gap-8">
|
| 301 |
<h3 class="text-2xl font-bold mb-6 text-center">Art</h3>
|
|
|
|
| 404 |
feather.replace();
|
| 405 |
// Project filtering functionality
|
| 406 |
function filterProjects(filter) {
|
| 407 |
+
const gamesColAll = document.getElementById('games-col-all');
|
| 408 |
+
const gamesColFiltered = document.getElementById('games-col-filtered');
|
| 409 |
const artCol = document.getElementById('art-col');
|
| 410 |
const gamesBtn = document.getElementById('games-btn');
|
| 411 |
const artBtn = document.getElementById('art-btn');
|
| 412 |
const allBtn = document.getElementById('all-btn');
|
| 413 |
const projectsGrid = document.getElementById('projects-grid');
|
| 414 |
+
|
| 415 |
+
// Reset all buttons
|
| 416 |
gamesBtn.classList.remove('bg-red-600', 'text-white');
|
| 417 |
gamesBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 418 |
artBtn.classList.remove('bg-red-600', 'text-white');
|
| 419 |
artBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 420 |
allBtn.classList.remove('bg-red-600', 'text-white');
|
| 421 |
allBtn.classList.add('border', 'border-red-600', 'text-red-600');
|
| 422 |
+
|
| 423 |
if (filter === 'games') {
|
| 424 |
+
// Show only filtered games column centered
|
| 425 |
+
gamesColAll.style.display = 'none';
|
| 426 |
+
gamesColFiltered.style.display = 'grid';
|
| 427 |
artCol.style.display = 'none';
|
| 428 |
projectsGrid.style.gridTemplateColumns = '1fr';
|
| 429 |
+
projectsGrid.style.maxWidth = '640px';
|
| 430 |
|
| 431 |
// Update button styles
|
| 432 |
gamesBtn.classList.add('bg-red-600', 'text-white');
|
| 433 |
gamesBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 434 |
|
| 435 |
} else if (filter === 'art') {
|
| 436 |
// Show only art column centered
|
| 437 |
+
gamesColAll.style.display = 'none';
|
| 438 |
+
gamesColFiltered.style.display = 'none';
|
| 439 |
artCol.style.display = 'grid';
|
| 440 |
projectsGrid.style.gridTemplateColumns = '1fr';
|
| 441 |
+
projectsGrid.style.maxWidth = '640px';
|
| 442 |
|
| 443 |
// Update button styles
|
| 444 |
artBtn.classList.add('bg-red-600', 'text-white');
|
| 445 |
artBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 446 |
|
| 447 |
} else { // all
|
| 448 |
// Show both columns side by side
|
| 449 |
+
gamesColAll.style.display = 'grid';
|
| 450 |
+
gamesColFiltered.style.display = 'none';
|
| 451 |
artCol.style.display = 'grid';
|
| 452 |
projectsGrid.style.gridTemplateColumns = '1fr 1fr';
|
| 453 |
+
projectsGrid.style.maxWidth = '1024px';
|
| 454 |
+
|
| 455 |
+
// Update button styles
|
| 456 |
allBtn.classList.add('bg-red-600', 'text-white');
|
| 457 |
allBtn.classList.remove('border', 'border-red-600', 'text-red-600');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 458 |
}
|
| 459 |
+
}
|
| 460 |
// Initialize with all shown by default
|
| 461 |
document.addEventListener('DOMContentLoaded', function() {
|
| 462 |
const projectsGrid = document.getElementById('projects-grid');
|
| 463 |
projectsGrid.style.gridTemplateColumns = '1fr 1fr';
|
| 464 |
projectsGrid.style.maxWidth = '1024px';
|
| 465 |
+
projectsGrid.style.gap = '2rem';
|
| 466 |
+
document.getElementById('games-col-all').style.display = 'grid';
|
| 467 |
+
filterProjects('all');
|
| 468 |
});
|
| 469 |
// Scroll to section function
|
| 470 |
function scrollToSection(sectionId) {
|