import React, { useState } from 'react'; import { Download, CheckCircle, Loader2, Monitor, Zap, Shield, Code } from 'lucide-react'; export default function DownloadPage() { const [downloading, setDownloading] = useState(false); const [progress, setProgress] = useState(0); const handleDownload = async () => { setDownloading(true); setProgress(0); try { // Fetch the installer const response = await fetch('/api/download/desktop'); const contentLength = response.headers.get('content-length'); const total = parseInt(contentLength || '0', 10); const reader = response.body?.getReader(); const chunks: Uint8Array[] = []; let receivedLength = 0; if (reader) { while (true) { const { done, value } = await reader.read(); if (done) break; chunks.push(value); receivedLength += value.length; setProgress(Math.round((receivedLength / total) * 100)); } } // Combine chunks and create blob const blob = new Blob(chunks); const url = window.URL.createObjectURL(blob); // Trigger download const a = document.createElement('a'); a.href = url; a.download = 'AeThex-OS-setup.exe'; document.body.appendChild(a); a.click(); document.body.removeChild(a); window.URL.revokeObjectURL(url); setProgress(100); // Show success message setTimeout(() => { setDownloading(false); setProgress(0); }, 2000); } catch (error) { console.error('Download failed:', error); setDownloading(false); setProgress(0); alert('Download failed. Please try again.'); } }; return (
{/* Hero Section */}

Download AeThex OS

The complete learning ecosystem. Build, learn, and deploy compliant software.

{/* Download Button */}

AeThex OS Desktop

Version 0.1.0 • Windows x64 • 2.5 MB

{!downloading ? ( ) : (
{progress < 100 ? ( <> Downloading... {progress}% ) : ( <> Download Complete! )}
{progress === 100 && (

Open the downloaded file to install AeThex OS

)}
)}
Supports Windows 10 and later
{/* Installation Steps */}
1

Download

Click the download button to get the installer

2

Install

Run the installer and follow the setup wizard

3

Start Learning

Launch AeThex OS and begin your journey

{/* Features */}

What's Inside

Full IDE

Monaco editor with syntax highlighting and IntelliSense

Terminal

Full-featured terminal with command execution

AeThex Language

Write once, compile to JS, Lua, Verse, C#

Compliance

Built-in COPPA, GDPR, CCPA compliance tools

{/* System Requirements */}

System Requirements

Minimum

  • • Windows 10 or later
  • • 4 GB RAM
  • • 500 MB available space
  • • 1280x720 display

Recommended

  • • Windows 11
  • • 8 GB RAM or more
  • • 2 GB available space
  • • 1920x1080 display
{/* FAQ */}

Frequently Asked Questions

Is AeThex OS free?

Yes! AeThex OS is completely free to download and use.

Does it require an internet connection?

You can use many features offline, but some features like cloud sync and updates require internet.

How do I get updates?

AeThex OS automatically checks for updates and will notify you when a new version is available.

Is my data safe?

Yes. All your data is stored locally on your device. Optional cloud sync is encrypted end-to-end.

{/* CTA */}

Ready to start building?

); }