<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ubuntu Autoinstaller - InfraHub</title>

    <link
    rel="stylesheet"
    href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
    />
    <!-- Serve CSS via Flask -->
    <link rel="stylesheet" href="{{ url_for('pages.serve_css', filename='retro.css') }}">
</head>
<body>

    <header>
        <div class="header-inner">
            <div class="left">
                <img src="{{ url_for('pages.serve_png', filename='infrahublogo.png') }}" alt="InfraHub Logo" class="logo">
            </div>

            <nav>
            <ul class="navbar">
                <li><a href="{{ url_for('pages.index') }}"><i class="fa fa-house"></i> Home</a></li>
                <li><a href="{{ url_for('pages.isos') }}"><i class="fa fa-compact-disc"></i> ISOs</a></li>
                <li><a href="{{ url_for('pages.playbooks') }}"><i class="fa fa-scroll"></i> Playbooks</a></li>
                <li><a href="{{ url_for('pages.docker') }}"><i class="fab fa-docker"></i>Docker Sandbox</a></li>
                <li><a href="{{ url_for('pages.aws') }}"><i class="fab fa-aws"></i>AWS Guide</a></li>
                <li><a href="https://github.com/AJprogramming123/OpsCenter" target="_blank"><i class="fab fa-github"></i> GitHub</a></li>
            </ul>
            </nav>
        </div>
    </header>

    <!-- Go Back Home Button -->
    <div class="back-home">
        <a href="{{ url_for('pages.index') }}" class="btn back-btn"><i class="fa fa-arrow-left"></i> Go Back Home</a>
    </div>

    <section class="sections">
        <div class="container">
            <h2>Download Your Preconfigured ISO</h2>
            <div class="cards">

                <div class="card">
                    <h3>Ubuntu Desktop ISO (Official)</h3>
                    <p>Before proceeding, note the following:</p>
                    <ul>
                        <li>As of Ubuntu <strong>24.04+</strong>, Subiquity now supports desktop autoinstallers.</li>
                        <li>Ensure you download version <strong>24.04 LTS</strong> or later for this configuration to function.</li>
                        <li>This will redirect you to the <em>official Ubuntu website</em> to obtain the ISO.</li>
                    </ul>

                    <div style="text-align: center; margin-top: 1rem;">
                        <a href="https://ubuntu.com/download/desktop" target="_blank" class="btn">⬇️ Download Official Ubuntu ISO</a>
                    </div>

                    <hr style="margin: 2rem 0; border: 1px dashed #b59f7f;">

                    <h3>Autoinstall Configuration File</h3>
                    <p>
                        Download the ready-to-use <strong>autoinstall.yaml</strong> configuration file used to automate Ubuntu setup.
                    </p>
                    <div style="text-align: center; margin-top: 1rem;">
                        <a href="{{ url_for('pages.download_file', filename='autoinstall.yaml') }}" class="btn" download>🧩 Download autoinstall.yaml</a>
                    </div>

                    <p style="margin-top: 1rem; text-align: center; font-size: 0.9rem;">
                        Want to view the full code or follow a step-by-step guide?<br>
                        Check out the project on GitHub:<br>
                        <a href="https://github.com/AJprogramming123/OpsCenter-autoinstaller" target="_blank" style="color: #5c4731; font-weight: bold; text-decoration: underline;">
                            Visit OpsCenter Autoinstaller Repo →
                        </a>
                    </p>

                    <p style="margin-top: 1rem; text-align: center; font-style: italic; color: #7a5e3c;">
                    <iframe
                        src="https://www.youtube.com/embed/4KiVolDbvIU"
                        frameborder="0"
                        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen>
                    </iframe>
                    </p>
                </div>

            </div>
        </div>
    </section>

    <footer>
        <p>© 2025 InfraHub — Designed for Learning and Deployment</p>
    </footer>
</body>
</html>
