{% extends "layout.html.j2" %}
{% set active_page="home/" %}

{% block main %}
    {# <div style="height: 5em; display: block;"></div> #}
<header class= "bg-light">
  <div class="container container--padding">
    <img src="/static/images/cara_full_text.png" class="logo d-block m-auto" id="desktop_logo">
    <img src="/static/images/cara_full_logo.png" class="logo d-none m-auto" id="mobile_logo">
  </div>
</header>
   
<div class="container container--padding">
  <div class="d-flex mb-3 justify-content-center" id="calculator_app_button">
    <div><a href="{{ calculator_prefix }}" role="button" class="btn btn-outline-primary"><div class="d-flex d-row"><i class="icon-calculator"></i><span class="pl-1">Calculator</div></a></div>
  </div>
  <div class="split">
    <div class="col-lg-8 col-md-7 pl-0">
      <h2 class="paragraph-title">Introduction</h2><br>
      <div>
          <p>
          CARA is a risk assessment tool developed to model the concentration of viruses in enclosed spaces, in order to inform space-management decisions.
          It does this by simulating the long-range airborne spread SARS-CoV-2 virus in a finite volume, assuming homogenous mixing, and it estimates the risk of COVID-19 airborne transmission therein.
          Please see the <a href="/about">About</a> page for more details on the methodology, assumptions and limitations of CARA.
          </p>
          <p>
          The full CARA source code can be accessed freely under an Apache 2.0 open source license from our <a href="https://gitlab.cern.ch/cara/cara">code repository</a>.
          It includes detailed instructions on how to run your own version of this tool.
          </p>
          <br>
      </div>
    </div>
    <div class="align-self-center">
      <img src="static/images/CARA_1_Vs3_Colour.jpg" class="cara_home_image">
    </div>
  </div>
  <br>
  
  <div id="apps_section" class="d-none">
    <div class="d-flex flex-row" >
      <h2 class="paragraph-title pr-4 align-self-center">Apps:</h2>
      <br>
      <div class="pr-3"><a href="{{ calculator_prefix }}" role="button" class="btn btn-lg btn-outline-primary"><div class="d-flex d-row"><i class="icon-calculator"></i><span class="pl-2">Calculator</div></a></div>
      <br>
      <div class="expert_app_button"><a href="https://cara.web.cern.ch/expert-app" role="button" class="btn btn-lg btn-outline-secondary"><div class="d-flex d-row"><i class="icon-expert"></i><span class="pl-2">Expert (beta)</div></a></div>
    </div>
    <hr width="95%">
  </div>

  {% block cara_at_cern %}
  {% endblock cara_at_cern %}

  <br>
  <div>
    <h2 class="paragraph-title">Reference & Citation</h2><br>
    <p>
    <b>For use of the CARA model:</b><br>
      <ul> 
        <li> Henriques A, Mounet N, Aleixo L, Elson P, Devine J, Azzopardi G, Andreini M, Rognlien M, Tarocco N, Tang J. (2022). 
        Modelling airborne transmission of SARS-CoV-2 using CARA: risk assessment for enclosed spaces. 
        <i>Interface Focus</i>  <b>12</b>: 20210076. <a href=https://doi.org/10.1098/rsfs.2021.0076>doi.org/10.1098/rsfs.2021.0076</a> </li>
        <a href=https://royalsocietypublishing.org/action/showCitFormats?doi=10.1098%2Frsfs.2021.0076><i>Download citation</i></a><br>
          <b><i>Short-range expiratory jet model from:</i></b> 
          <ul>
              <li> Jia W, Wei J, Cheng P, Wang Q, Li Y. (2022).
              Exposure and respiratory infection risk via the short-range airborne route.
              <i>Building and Environment</i> <b>219</b>: 109166. <a href=https://doi.org/10.1016/j.buildenv.2022.109166>doi.org/10.1016/j.buildenv.2022.109166</a>
              </li>
          </ul>
      </ul>
      <b>For use of the CARA web app:</b><br>
      <ul> 
        <li>CARA – COVID Airborne Risk Assessment tool</li>
        <a href="https://doi.org/10.5281/zenodo.6520432"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.6520432.svg" alt="DOI"></a><br>
        © Copyright 2020-2021 CERN. All rights not expressly granted are reserved.<br>
        Licensed under the Apache License, Version 2.0<br>
        <a href=https://gitlab.cern.ch/cara/cara/-/blob/master/LICENSE><i>LICENSE</i></a>
      </ul>
    </p>
  </div>
  
  <br>
  <h3 class="acknowledgements">Acknowledgements</h3><br>
  <details>
    <summary>Click to expand</summary>
    <br>
    <em>{{ text_blocks['Acknowledgements'] }}</em>
  </details>
  <span style="height: 3vh; display: block;"></span>
  </div>
</div>
{% endblock main %}
