Skip to content

Commit 7a0211e

Browse files
fix: correct homepage layout structure and remove duplicate filters (steam-bell-92#238)
- Move hero section before the tabs-section (was incorrectly nested inside tabs-wrapper, causing left-shifted layout and empty right space) - Remove duplicate tabs-section that lacked ARIA roles, accessibility attributes, and the Random Project button - Properly close all opened divs/sections for valid HTML structure Fixes steam-bell-92#238
1 parent 183d4a1 commit 7a0211e

1 file changed

Lines changed: 30 additions & 39 deletions

File tree

web-app/index.html

Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,36 @@ <h1>🎮 Python Mini Projects</h1>
320320
</nav>
321321

322322
<main id="main-content" tabindex="-1">
323+
<!-- Hero Section -->
324+
<section class="hero-section" aria-label="Welcome">
325+
<div class="hero-background"></div>
326+
<div class="container">
327+
<div class="hero-content">
328+
<h2 class="hero-title">Learn Python the Fun Way!</h2>
329+
<p class="hero-subtitle">25+ Mini Projects • Beautiful UI • Beginner Friendly • Zero Dependencies</p>
330+
331+
<div class="hero-features">
332+
<div class="feature-badge">
333+
<span class="feature-icon">🎮</span>
334+
<span class="feature-label">Games</span>
335+
</div>
336+
<div class="feature-badge">
337+
<span class="feature-icon">🔢</span>
338+
<span class="feature-label">Math</span>
339+
</div>
340+
<div class="feature-badge">
341+
<span class="feature-icon">🔐</span>
342+
<span class="feature-label">Utilities</span>
343+
</div>
344+
</div>
345+
346+
<button class="btn-explore" id="exploreBtn" aria-label="Explore all projects">
347+
Explore Projects →
348+
</button>
349+
</div>
350+
</div>
351+
</section>
352+
323353
<!-- Search & Category Tabs -->
324354
<section class="tabs-section" aria-label="Search and Project categories">
325355
<div class="container">
@@ -346,45 +376,6 @@ <h1>🎮 Python Mini Projects</h1>
346376
title="Discover a random project!">
347377
<i class="fas fa-dice"></i> Random Project 🎲
348378
</button>
349-
<!-- Hero Section -->
350-
<section class="hero-section" aria-label="Welcome">
351-
<div class="hero-background"></div>
352-
<div class="container">
353-
<div class="hero-content">
354-
<h2 class="hero-title">Learn Python the Fun Way!</h2>
355-
<p class="hero-subtitle">25+ Mini Projects • Beautiful UI • Beginner Friendly • Zero Dependencies</p>
356-
357-
<div class="hero-features">
358-
<div class="feature-badge">
359-
<span class="feature-icon">🎮</span>
360-
<span class="feature-label">Games</span>
361-
</div>
362-
<div class="feature-badge">
363-
<span class="feature-icon">🔢</span>
364-
<span class="feature-label">Math</span>
365-
</div>
366-
<div class="feature-badge">
367-
<span class="feature-icon">🔐</span>
368-
<span class="feature-label">Utilities</span>
369-
</div>
370-
</div>
371-
372-
<button class="btn-explore" id="exploreBtn" aria-label="Explore all projects">
373-
Explore Projects →
374-
</button>
375-
</div>
376-
</div>
377-
</section>
378-
379-
<!-- Search & Category Tabs -->
380-
<section class="tabs-section" aria-label="Search and Project categories">
381-
<div class="container">
382-
<div class="tabs-wrapper">
383-
<div class="tabs">
384-
<button class="tab active" data-category="all">🌟 All Projects</button>
385-
<button class="tab" data-category="games">🎮 Games</button>
386-
<button class="tab" data-category="math">🔢 Math</button>
387-
<button class="tab" data-category="utilities">🔐 Utilities</button>
388379
</div>
389380
</div>
390381
</section>

0 commit comments

Comments
 (0)