Visit here: https://reactorcoregames.github.io/commander-wars-website/
A vibrant, feature-rich single-page website for Commander Wars - the free, open-source turn-based strategy game inspired by Advance Wars. Built with bold Advance Wars 2-inspired design aesthetics and modern web technologies.
This is a fully responsive, static single-page website showcasing Commander Wars with:
- Video background with looping gameplay footage
- Bold, colorful Advance Wars-inspired design with heavy borders and vibrant color schemes
- Responsive mobile-first approach with hamburger navigation
- Horizontal auto-scrolling gallery for screenshots
- 10 quick-access links to essential resources
- Platform-specific download sections with installation instructions
- Comprehensive modding information and community resources
- 74 screenshot gallery with external hosting
- Konami Code easter egg for fun interaction
Commander Wars Homepage/
โโโ index.html # Main HTML file with all page content
โโโ style.css # Complete styling with Advance Wars-inspired design
โโโ script.js # Interactive JavaScript features
โโโ assets/ # Media files
โ โโโ curated screenshot (1-10).png # Featured screenshots
โ โโโ modding capabilities image.png # Modding showcase
โ โโโ !cow_video_loop.mp4 # Background video loop
โโโ README.md # This file
- Advance Wars 2 Bold Aesthetic: Heavy black borders, vibrant faction colors, and bold typography
- Color Palette:
- Red Faction:
#FF0000,#E63946 - Blue Faction:
#0066FF,#457B9D - Green Faction:
#00CC00,#95E1D3 - Yellow Faction:
#FFD700,#FFE66D - Magenta:
#FF00FF(modding theme)
- Red Faction:
- Typography: Arial Black for headers, Arial for body text
- Box Shadows: 3D-style drop shadows for depth
- Borders: Thick 4-8px borders on all major elements
- Custom Scrollbars: Styled scrollbars matching the game theme
- Fixed Top Navigation Bar (desktop) with 7 sections
- Hamburger Menu (mobile) - slide-in navigation drawer
- Smooth Scrolling to all anchor links
- Active Section Highlighting - nav items highlight based on scroll position
- Auto-close Menu when clicking links or outside the menu
- Full-screen video background with dark overlay
- Two "island" boxes:
- Hero island with game logo, tagline, description, and 4 badges
- Quick links island with 10 colorful action buttons
- 4 Hero Badges: FREE, OPEN SOURCE, MODDABLE, CROSS-PLATFORM
- 10 Quick Links: Download, Discord, Tactics, COs, Gallery, Mods, Wiki, Modding, Bugs, FAQ
- Horizontal Scrolling Gallery: Auto-scrolling on desktop with custom styled scrollbar
- Auto-scrolls at 0.3px per frame (~60fps)
- Pauses on hover
- Stops permanently on user scroll/touch
- Features 10 curated screenshots
- Images scale up on hover with gold border
- Mobile-Optimized: Horizontal scroll preserved on mobile for easy browsing
-
About Section
- Two-column layout (1.5fr : 1fr ratio)
- 4 stat boxes showing: 60+ units, โ map size, 30+ commanders, 100% moddable
- Feature images on the right
-
Features Section
- 3-column layout with center image column
- 8 main feature boxes in 4 colors (red, blue, green, yellow)
- 4 mini-feature boxes at the bottom
- Center showcases 2 gameplay screenshots
-
Download Section
- 4-column grid for platforms: Windows, Linux, macOS, Android
- Each platform box includes:
- Platform icon and name
- System requirements
- Download button
- Filename in monospace font
- Step-by-step installation instructions
- Platform-specific border colors
- Screenshot pair at the bottom
-
Modding Section
- 2-column layout (content + sidebar)
- 6 mod feature boxes explaining capabilities
- Sidebar with modding image and 4 action buttons:
- Modding guides (purple)
- ModDB (red)
- Discord mods (blue)
- GameBanana (gold)
- Sticky sidebar on desktop
-
Gallery Section
- Link to external gallery (PostImages)
- Grid layout displaying 74 screenshots
- Lazy loading for performance
- External links to full-resolution images
- Hover effects with border color change
-
Community Section
- 4 community boxes: Discord, ModDB, GameBanana, GitHub
- Each with icon, description, button, and screenshot
- 6-item resource grid below
- Video showcase with border styling
- Footer with license and contact information
- Hamburger Menu Toggle with animation
- Smooth Scrolling with offset for fixed nav
- Active Nav Highlighting based on scroll position
- Video Autoplay Handling with fallback play button
- External Link Safety (adds
rel="noopener noreferrer") - Lazy Loading for gallery images using IntersectionObserver
- Konami Code Easter Egg (โโโโโโโโBA):
- Triggers confetti animation
- Shows "COMMANDER WARS FOREVER!" message
- 50 colored confetti pieces with physics
- Performance Optimization: Pauses video when tab is hidden
- Accessibility: Screen reader announcements for section changes
- Auto-Scrolling Gallery: Horizontal auto-scroll with user control
- Console Art: Shows ASCII art and hints in browser console
- Error Handling: Global error listener
- Full 3-column features layout
- Horizontal scrolling gallery with custom scrollbar
- Side-by-side content layouts
- Sticky modding sidebar
- 2-column layouts for most sections
- Features rearranged to grid
- Download/community sections in 2 columns
- Hamburger menu replaces top nav
- Single column layouts throughout
- Video background changes to relative positioning
- Hero islands become full-width borderless blocks
- Quick links in 2-column grid with smaller text
- Horizontal gallery still functional with smaller images
- All multi-column grids become single column
- Smaller font sizes and padding
Simply open index.html in any modern web browser. All paths are relative.
- Create a new project in Cloudflare Pages
- Upload all files (index.html, style.css, script.js, assets/)
- Build settings: None (static site)
- Deploy!
This site works on any static host:
- GitHub Pages: Push to repo, enable Pages in settings
- Netlify: Drag and drop folder or connect repo
- Vercel: Import project and deploy
- AWS S3 + CloudFront: Upload files to S3 bucket
- Any web server: Place files in public directory
Requirements:
- No server-side code
- No build process needed
- No dependencies to install
- GitHub Repository: https://github.com/Robosturm/Commander_Wars
- Discord Community: https://discord.com/invite/ZqExNgm
- Official Wiki: https://github.com/Robosturm/Commander_Wars/wiki
- Game Releases: https://github.com/Robosturm/Commander_Wars/releases
- ModDB: https://www.moddb.com/games/commander-wars
- GameBanana: https://gamebanana.com/games/23411
- Screenshot Gallery: https://postimg.cc/gallery/d05Q8PB
- Tactics Guide: https://www.commanderwars.com/wiki/Tactics
- CO & Unit Overview: https://github.com/Robosturm/Commander_Wars/wiki/CO-and-new-Unit-Overview
- Modding Documentation: https://github.com/Robosturm/Commander_Wars/wiki/Modding
- FAQ: https://www.commanderwars.com/wiki/F.A.Q.
- Email: commanderwars@gmx.de
- Report Bugs: https://github.com/Robosturm/Commander_Wars/issues
Edit CSS variables or direct color values in style.css:
/* Navigation */
.main-nav { background: #000; border-bottom: 6px solid #FF0000; }
/* Feature boxes */
.red-box { background: #FF6B6B; }
.blue-box { background: #4ECDC4; }
.green-box { background: #95E1D3; }
.yellow-box { background: #FFE66D; }- Add HTML in
index.html:
<section id="newsection" class="content-section">
<div class="container">
<h1 class="section-title">NEW SECTION</h1>
<!-- Your content -->
</div>
</section>- Add Navigation Link in
index.html:
<nav class="main-nav" id="mainNav">
<a href="#newsection">NEW SECTION</a>
</nav>- Style It in
style.css(JavaScript auto-handles smooth scroll)
- Replace files in
assets/folder with same filenames - Or update image paths in
index.html:
<img src="assets/your-new-screenshot.png" alt="Description">Edit the .link-grid section in index.html (lines 109-150):
<a href="YOUR_URL" target="_blank" class="quick-link your-link">
<span class="link-icon">๐ฏ</span>
<span>YOUR TEXT</span>
</a>Add corresponding styles in style.css:
.your-link { background: #YOUR_COLOR; color: #FFF; }- Chrome/Edge: 90+ (all features)
- Firefox: 88+ (all features)
- Safari: 14+ (all features)
- Mobile Safari: iOS 14+ (all features)
- Chrome Mobile: Android 6+ (all features)
- CSS Grid & Flexbox
- CSS Custom Scrollbars (WebKit)
- HTML5 Video with autoplay
- IntersectionObserver API
- CSS Transforms & Transitions
- requestAnimationFrame
- Smooth scroll behavior
- No JavaScript: Site still navigable, just no smooth scroll
- No video support: Falls back to static background
- No IntersectionObserver: Images load immediately
- Older browsers: Basic layout preserved
- Lazy Loading: Gallery images load on demand
- Video Optimization: Pauses when tab not visible
- Smooth Animations: Uses
requestAnimationFramefor 60fps - Minimal Dependencies: Zero external libraries
- Optimized Assets: Compressed images and video
- Efficient Scrolling: Throttled scroll event handlers
- Comprehensive meta tags
- Open Graph tags for social sharing
- Twitter Card support
- Schema.org structured data (VideoGame type)
- Semantic HTML5 elements
- Descriptive alt text on all images
- Canonical URL specified
- ARIA labels on interactive elements
- ARIA live regions for section announcements
- Keyboard navigation support
- Screen reader-friendly navigation
- High contrast borders and text
- Focus states on interactive elements
- Skip-to-content via anchor links
Triggers a confetti celebration with 50 animated confetti pieces and a popup message.
Open browser DevTools console to see ASCII art and discover the Konami Code hint.
Themed scrollbars matching game colors (Chrome/Edge/Safari only).
Horizontal gallery auto-scrolls until user interaction.
index.html: ~25KBstyle.css: ~30KBscript.js: ~10KB- Total (without assets): ~65KB
- Assets vary based on image/video quality
- HTML parsed
- CSS loaded (blocking)
- Images loaded (lazy)
- JavaScript executes
- Video autoplays
- Gallery auto-scroll starts
- No jQuery
- No Bootstrap
- No icon libraries (uses emoji)
- No font libraries (system fonts)
- Pure vanilla HTML/CSS/JS
If you encounter issues:
- Check that all files are in correct locations
- Verify
assets/folder is in same directory asindex.html - Test in different browsers
- Check browser console for errors
- Ensure modern browser (see Browser Support above)
This website is created for the Commander Wars community.
Commander Wars is licensed under LGPL-3.0.
- Game Development: Robosturm and Commander Wars contributors
- Website Design: Built with Claude Code
- Design Inspiration: Advance Wars series by Intelligent Systems/Nintendo
- Website Project Leader: Reactorcore - https://linktr.ee/reactorcore
Advance Wars is a trademark of Nintendo. Commander Wars is not affiliated with or endorsed by Nintendo.
Built with โค๏ธ for the Commander Wars community | ยฉ 2026 Commander Wars Community
