{% extends "main.html" %}

{% block content %}
<div class="hero-section">
  <h1>Welcome to Changemaker V5 </h1>
  <p class="subtitle">Your battle-tested, lightweight, self-hosted productivity suite. Empowering you with complete control, inherent security, and true freedom of speech.</p>
  <a href="#apps-showcase" class="cta-button">Explore Applications</a>
</div>

<div class="info-section">
  <h2>What is Changemaker?</h2>
  <p>Changemaker V5 is a project undertaken by The Bunker Operations, headquartered in Edmonton, Alberta, Canada, to provide our community a digital campaign alternative to mainstream American systems. It empowers you to deploy secure, locally-built websites, blogs, newsletters, & forms – from personal projects to full-fledged campaigns.</p>
</div>

<div class="info-section">
  <h2>🚀 Quick Start & Onboarding</h2>
  <p>Ready to dive in? Here’s how to get started:</p>
  <h3>1. Access and Edit Your Site with Code Server</h3>
  <p><strong>Code Server</strong> (VS Code in your browser) is already configured to allow you to edit your entire Changemaker site, including this documentation and application configurations. To access it, click the "Login" button in the header, which typically links to Code Server or your main dashboard where Code Server can be accessed.</p>
  <p><strong>To log into Code Server:</strong></p>
  <ul>
    <li>The default access URL is usually <code>http://localhost:8888/</code> or you can access it through the homepage.</li>
    <li>Your Code Server password can be found within your project files at: <code>configs/code-server/.config/code-server/config.yaml</code>. You can view this file using Code Server's file explorer after an initial login, or access it directly on your server.</li>
  </ul>
  <p>Code Server is pre-configured to open your main Changemaker project folder (e.g., <code>/home/bunker-admin/Changemaker/</code>), so you can start editing files immediately after logging in.</p>
  <h3>2. Update Your Site Configuration</h3>
  <p>Open your <code>mkdocs.yml</code> file and customize these key settings:</p>
  <div class="code-block">
<pre>site_name: Your Awesome Site
site_description: A brief, compelling description of your new site
site_author: Your Name or Organization</pre>
  </div>
  <p>Save the file, and your site will update almost instantly!</p>
  <p>For more detailed setup instructions, refer to the full <a href="{{ 'readme/' | url }}">Installation Guide</a>.</p>
</div>

<div class="apps-grid-container" id="apps-showcase">
  <h2>Core Applications & Services</h2>
  <p style="text-align: center; max-width: 700px; margin: 0 auto 2rem auto;">Changemaker V5 comes packed with a suite of powerful, self-hosted tools. Click on any app to learn more about its features and how to use it.</p>
  <div class="apps-grid">
    <div class="app-card">
      <div>
        <h3><span class="material-icons" style="vertical-align: bottom; margin-right: 8px;">dashboard</span>Homepage</h3>
        <p>Main dashboard for Changemaker V5. Your central command center for all services.</p>
      </div>
      <a href="{{ 'apps/homepage/' | url }}" class="button">Learn More</a>
    </div>

    <div class="app-card">
      <div>
        <h3><span class="material-icons" style="vertical-align: bottom; margin-right: 8px;">code</span>Code Server</h3>
        <p>Visual Studio Code in your browser. Develop and edit code from any device.</p>
      </div>
      <a href="{{ 'apps/code-server/' | url }}" class="button">Learn More</a>
    </div>

    <div class="app-card">
      <div>
        <h3><span class="material-icons" style="vertical-align: bottom; margin-right: 8px;">edit_note</span>Flatnotes</h3>
        <p>Simple, markdown-based note-taking, directly connected to your blog.</p>
      </div>
      <a href="{{ 'apps/flatnotes/' | url }}" class="button">Learn More</a>
    </div>

    <div class="app-card">
      <div>
        <h3><span class="material-icons" style="vertical-align: bottom; margin-right: 8px;">mail</span>Listmonk</h3>
        <p>Self-hosted newsletter and mailing list manager for full control over campaigns.</p>
      </div>
      <a href="{{ 'apps/listmonk/' | url }}" class="button">Learn More</a>
    </div>

    <div class="app-card">
      <div>
        <h3><span class="material-icons" style="vertical-align: bottom; margin-right: 8px;">table_chart</span>NocoDB</h3>
        <p>Open Source Airtable Alternative. Turn any database into a smart spreadsheet.</p>
      </div>
      <a href="{{ 'apps/nocodb/' | url }}" class="button">Learn More</a>
    </div>
    <!-- Add more app cards here as you create their documentation pages -->
  </div>
</div>

<div class="info-section">
  <h2>Development Pathway</h2>
  <p>Changemaker is continuously evolving. Here are some identified wants for development:</p>
  <ul>
    <li>Internal integrations for asset management (e.g., shared plain file locations).</li>
    <li>Database connections for automation systems (e.g., manuals for NocoDB & n8n).</li>
    <li>Enhanced manuals and landing site for the whole system.</li>
    <li>Comprehensive training materials.</li>
  </ul>
  <p>Stay tuned for updates and new features! For more details, check the <a href="{{ 'readme/#development-pathway' | url }}">full development pathway</a>.</p>
</div>

{% endblock %}

{% block tabs %}
  {{ super() }}
{% endblock %}