{% extends "base.html" %}

{% block title %}
    Aerogramme - A robust email server
{% endblock title %}

{% block content %}
<section class="section" id="home-section">
  <div>

    <div class="flex flex-col items-center justify-center py-12 px-8 md:px-12 xl:px-0">
      <h1 class="hidden">{{config.extra.organization.name}}</h1>
      <img src="{{ config.extra.organization.logo }}" width="800" alt="{{config.extra.organization.name}}"/>
      <p class="text-gray-500 leading-10 pt-4 text-xl text-center">{{ config.extra.organization.description }}</p>
      <div class="flex items-center justify-center space-x-2 md:space-x-4 py-4">
        <a
          href="{{ config.base_url }}/download/"
          title="Aerogramme releases"
          class="group flex items-center justify-center space-x-1 font-semibold shadow hover:shadow-lg px-4 py-3 rounded text-white transition-all duration-500 bg-gradient-to-tl from-aerogramme-blue via-blue-500 to-blue-300 bg-size-200 bg-pos-0 hover:bg-pos-100">
          <svg class="w-6 h-6 animate-pulse" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"></path></svg>
          <span class="inline text-sm md:text-base">Download</span>
        </a>
        <a
          href="/documentation/quick-start/"
          title="Get started with the documentation"
          class="group flex items-center justify-center space-x-1 font-semibold shadow hover:shadow-lg px-4 py-3 rounded text-white transition-all duration-500 bg-gradient-to-tl from-gray-400 via-gray-500 to-gray-400 bg-size-200 bg-pos-0 hover:bg-pos-100">
            <svg class="w-6 h-6 animate-pulse" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg>
            <span class="inline text-sm md:text-base">Get Started</span>
        </a>
      </div>
      <div class="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-x-32 py-12">
          <a href="{{config.base_url}}/documentation/connect/imap/" class="group flex flex-col items-center justify-center p-2">
            <img src="{{ get_url(path='icons/mailbox.svg') }}" class="h-[172px] transform group-hover:translate-y-2 transition duration-500">
            <span class="text-xl text-gray-700 font-semibold mt-4 transform group-hover:-translate-y-1 transition duration-500 whitespace-nowrap">Mailbox</span>
          </a>
          <a href="{{config.base_url}}/documentation/connect/caldav/" class="group flex flex-col items-center justify-center p-2">
            <img src="{{ get_url(path='icons/calendar.svg') }}" class="h-[172px] transform group-hover:translate-y-2 transition duration-500">
            <span class="text-xl text-gray-700 font-semibold mt-4 transform group-hover:-translate-y-1 transition duration-500 whitespace-nowrap">Calendar (coming soon)</span>
          </a>
          <a href="{{config.base_url}}/documentation/connect/carddav/" class="group flex flex-col items-center justify-center p-2">
            <img src="{{ get_url(path='icons/contacts.svg') }}" class="h-[172px] transform group-hover:translate-y-2 transition duration-500">
            <span class="text-xl text-gray-700 font-semibold mt-4 transform group-hover:-translate-y-1 transition duration-500 whitespace-nowrap">Contacts (coming later)</span>
          </a>
      </div>
    </div>

    <div class="w-full flex flex-col items-center justify-center border-b">
      <div id="mailbox-about" class="w-full shadow-lg mx-auto flex flex-col lg:flex-row items-center justify-around lg:space-x-12 py-4 text-sm text-gray-700 border-t">
          <p class="text-aerogramme-blue text-2xl tracking-wide">Hundred years ago, delivering mails across the globe was hazardous, but there is no reason for it to be the case today</p>
      </div>
      <div id="mailbox-container" class="relative w-full shadow-inner border-b">
        <div class="absolute top-0 left-1/2 transform -translate-x-1/2 w-16 overflow-hidden inline-block">
          <div class="h-8 w-8 bg-white -rotate-45 transform origin-top-left shadow-md"></div>
        </div>
      </div>
      <div id="mailbox-about-2" class="w-full shadow-lg mx-auto flex flex-col lg:flex-row items-center justify-around lg:space-x-12 py-4 text-sm text-gray-700 border-t">
          <p class="text-aerogramme-blue text-2xl tracking-wide">Discover how Aerogramme makes your correspondence safe and pleasant</p>
      </div>
    </div>

    <div class="grid grid-cols-1 xl:grid-cols-2 gap-x-0 xl:gap-x-12 gap-y-24 text-aerogramme-gray font-light bg-gray-100 py-12 px-4 md:px-0 w-full shadow-inner">
      <div class="flex flex-col items-center justify-start space-y-2">
        <h2 class="mb-2 text-xl text-center md:text-2xl font-bold text-aerogramme-blue leading-5">Clear goals</h2>
        <div class="w-8 h-1 bg-aerogramme-blue"></div>
        <p class="text-center leading-5 italic text-lg">Aerogramme design enables the following properties:</p>
        <ul class="list-style-none font-semibold flex flex-col items-center justify-center py-4">
          <li class="py-1.5 flex flex-col items-center justify-center text-center">
            Highly resilient<br>
            <div class="font-normal">
	      Multiple instances of Aerogramme can been run in parallel without coordination.<br>
	      Multi-region support, survive datacenter failures.
            </div>
          </li>
          <div class="w-2 h-2 rounded-full bg-aerogramme-blue"></div>
          <li class="py-1.5 flex flex-col items-center justify-center">
            <span>Easy to operate</span>
	    <p class="font-normal text-center">Transparently replicate mailbox and solve conflicts.<br>
	    Integrate with your LDAP server.</p>
          </li>
          <div class="w-2 h-2 rounded-full bg-aerogramme-blue"></div>

          <li class="py-1.5 flex flex-col items-center justify-center">
            <span>Privacy friendly</span>
	    <p class="font-normal text-center">Per-user encryption of mailboxes.<br>Can be run as a local proxy to hide your mailbox content from the server.</p>
          </li>
        </ul>
      </div>

      <div class="flex flex-col items-center justify-start space-y-2">
        <h2 class="mb-2 text-xl text-center md:text-2xl font-bold text-aerogramme-blue leading-5">Roadmap</h2>
        <div class="w-8 h-1 bg-aerogramme-blue"></div>
        <p class="text-center leading-5 italic text-lg">
	Aerogramme is currently a technical preview.<br/>The following released are planned:
        </p>
        <ul class="text-center list-style-none flex flex-col space-y-2 justify-start py-4">
          <li class="flex flex-col md:flex-row items-center justify-start">
            <div class="flex items-center space-x-2 w-max whitespace-nowrap bg-gray-200 shadow-inner py-0.5 px-1.5 rounded-md">
              <span class="font-normal">✅ 0.1.x</span>
            </div>
            <span class="px-2">Correct parsing of emails. (~june '23).</span>
          </li>
          <li class="flex flex-col md:flex-row items-center justify-start">
            <div class="flex items-center space-x-2 w-max whitespace-nowrap bg-gray-200 shadow-inner py-0.5 px-1.5 rounded-md">
              <span class="font-normal">✅ 0.2.x</span>
            </div>
            <span class="px-2">Support of IMAP4. (~january '24).</span>
          </li>
          <li class="flex flex-col md:flex-row items-center justify-start">
            <div class="flex items-center space-x-2 w-max whitespace-nowrap bg-gray-200 shadow-inner py-0.5 px-1.5 rounded-md">
              <span class="font-normal">⌛0.3.x</span>
            </div>
            <span class="px-2">CalDAV support. (~february '24).</span>
          </li>
          <li class="flex flex-col md:flex-row items-center justify-start">
            <div class="flex items-center space-x-2 w-max whitespace-nowrap bg-gray-200 shadow-inner py-0.5 px-1.5 rounded-md">
              <span class="font-normal">⌛0.5.x</span>
            </div>
            <span class="px-2">CardDAV support. (~june '24)</span>
          </li>
          <li class="flex flex-col md:flex-row items-center justify-start">
            <div class="flex items-center space-x-2 w-max whitespace-nowrap bg-gray-200 shadow-inner py-0.5 px-1.5 rounded-md">
              <span class="font-normal">⌛0.6.x</span>
            </div>
            <span class="px-2">Public beta. (~december '24)</span>
          </li>
        </ul>
      </div>

      <div class="flex flex-col items-center justify-start space-y-2 px-6 xl:px-0">
        <h2 class="mb-2 text-xl text-center md:text-2xl font-bold text-aerogramme-blue leading-5">It works with your email client</h2>
        <div class="w-8 h-1 bg-aerogramme-blue"></div>
        <p class="text-center leading-5 italic pb-4 text-lg">
          Aerogramme integrates into your existing workflow:
        </p>
        <p class="font-normal">
          Aerogramme implements the IMAP protocol<br>and thus is already compatible with many applications.
        </p>
        <ul class="grid grid-cols-3 gap-6 py-4 px-8">
          <li class="flex items-center justify-start">
            <a href="https://www.thunderbird.net" target="_blank" title="Thunderbird">
              <img class="h-20 w-20" src="{{ get_url(path='images/thunderbird.svg') }}" alt="Thunderbird">
            </a>
          </li>
          <li class="flex items-center justify-start">
            <a href="https://k9mail.app/" target="_blank" title="K9Mail">
              <img class="h-20 w-20" src="{{ get_url(path='images/k9mail.svg') }}" alt="K9Mail">
            </a>
          </li>
          <li class="flex items-center justify-start">
            <a href="https://en.wikipedia.org/wiki/GNOME_Evolution" target="_blank" title="Evolution">
              <img class="w-20" src="{{ get_url(path='images/evolution.svg') }}" alt="Evolution">
            </a>
          </li>
          <!--<li class="flex items-center justify-start">
            <a href="https://mastodon.social/" target="_blank" title="Mastodon">
              <img class="h-20 w-20" src="{{ get_url(path='images/mastodon-logo.svg') }}" alt="Mastodon">
            </a>
	  </li>-->
        </ul>
      </div>

      <div class="flex flex-col items-center justify-start space-y-2 px-6 xl:px-0">
        <h2 class="mb-2 text-xl text-center md:text-2xl font-bold text-aerogramme-blue leading-5">Standing on the shoulders of giants</h2>
        <div class="w-8 h-1 bg-aerogramme-blue"></div>
        <p class="text-center leading-5 italic text-lg">
          Aerogramme leverages insights from research & other software:
        </p>
        <ul class="text-center list-style-none flex flex-col items-center py-4">
          <li>
            <a target="_blank" href="https://dl.acm.org/doi/10.1145/224057.224070" class="font-semibold hover:text-aerogramme-blue">Managing update conflicts in Bayou, a weakly connected replicated storage system</a>
            by Terry et al.
          </li>
	  <li>
            <a target="_blank" href="https://drops.dagstuhl.de/opus/volltexte/2018/8645/" class="font-semibold hover:text-aerogramme-blue">Designing a Planetary-Scale IMAP Service with Conflict-free Replicated Data Types</a>
            by Jungnickel et al.
	  </li>
          <li>
            <a target="_blank" href="https://0xacab.org/liberate/trees" class="font-semibold hover:text-aerogramme-blue">Technology for Resting Email Encrypted Storage (TREES)</a>
            used by Rise Up.
          </li>
	  <li>
            <a target="_blank" href="https://doc.dovecot.org/admin_manual/obox/design/" class="font-semibold hover:text-aerogramme-blue">Dovecot Obox Plugin</a>
            by Open-Xchange.
	  </li>
        </ul>
	<p>
	<a class="text-aerogramme-blue underline" href="/documentation/design/related-work/">Read our related work analysis</a>
	</p>
      </div>
    </div>

    <div class="w-full flex flex-col items-center justify-center shadow-inner">
      <div class="px-8 py-24 space-y-8 text-aerogramme-gray max-w-4xl mx-auto">
        <h2 class="text-2xl text-aerogramme-blue font-semibold">Sponsors and funding</h2>
        <p>A member of the <a class="text-aerogramme-blue underline" href="https://deuxfleurs.fr/" target="_blank">Deuxfleurs association</a>
          has received a grant from <a class="text-aerogramme-blue underline" href="https://nlnet.nl/project/Aerogramme/" target="_blank">NLnet</a>,
          to fund his working on Aerogramme full-time for a year : from March 2023 to February 2024.</p>
        <p>If you want to fund Aerogramme development past its initial grant,
          either through donation or support contract,
          please <a class="text-aerogramme-blue underline" href="mailto:{{config.extra.social.email}}">get in touch with us</a></p>  
	<p class="flex flex-row justify-around">
	 <img src="{{ get_url(path='images/nlnet.svg') }}" class="w-1/3" alt="NLnet logo">
         <img src="{{ get_url(path='images/Logo-NGIAssure-tag.svg') }}" class="w-1/3" alt="NGI Assure logo">
	</p>
        <p class="italic">This project was funded through the NGI Assure Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 957073.</p>
      </div>
    </div>

  </div>
</section>
{% endblock %}
