<!doctype html>
<html lang="{{ "lang_code"|tr(lang) }}">
    <head>
        <title>{{ "index_title"|tr(lang) }} – {{ "index_description"|tr(lang) }}</title>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="{{ "meta_description"|tr(lang) }}" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="icon" type="image/png" sizes="48x48" href="/assets/favicon.ico" />
        <link rel="stylesheet" href="/assets/index.css?v=1.2" />
        <link rel="stylesheet" href="/assets/cloud.css?v=1.0" />
        <noscript><style> .jsonly { display: none } </style></noscript>
            <script>
                /* junk javascript with basic spambot protection features.
                Drunk indentation is vim's fault.
               unsatisifed? Please make a PR. : ) */
                window.onload = function() {
                                    // retrieved from server-side template
                                    let csrf_token = "{{ csrf_token }}";
                                    document.getElementById('new_link_button').addEventListener('click', function () {
                                                        new_link(csrf_token);
                                                    });
                                }

                function new_link(csrf) {
                                    document.getElementById("csrf_token").value = csrf;
                                    document.getElementById('new_link').submit();
                                    document.getElementById('new_link_button').classList.add("hidden");
                                    document.getElementById('loading_ring').classList.remove("hidden");
                                }

            </script>
    </head>
    <body>
        <div class="flex page-heading fullheight">
            <div class="flex page-heading-text">
                <div class="flex">
                    <a class="flex" href="https://42l.fr"><img class="logo" src="/assets/logo.svg" /></a>
                </div>
                <div>
                    <h1 class="title">{{ "index_title"|tr(lang) }}<sup class="beta-tag">{{ "index_beta_tag"|tr(lang) }}</sup></h1>
                    <h2 class="title">{{ "index_description"|tr(lang) }}</h2>
                </div>
            </div>
            <div class="fullwidth flex">
            </div>
            <div class="fullwidth flex">
                <noscript>
                    <a class="ncstyle-button margin-bottom">{{ "index_nojs"|tr(lang) }}</a>
                </noscript>
                <form id="new_link" action="/link" method="post">
                    <input id="csrf_token" name="csrf_token" type="text" class="hidden">
                    <a id="new_link_button" class="click jsonly ncstyle-button margin-bottom">{{ "index_createform_button"|tr(lang) }}</a> </form>
                <div id="loading_ring" class="hidden lds-ring"><div></div><div></div><div></div><div></div></div>
            </div>
            <a class="scroll-down-link scroll-down-arrow"></a>
        </div>
        <div class="has-text-centered beta-banner">
            <h3>{{ "index_beta_banner_desc1"|tr(lang) }}</h3>
            <p>{{ "index_beta_banner_desc2"|tr(lang) }}<a href="https://42l.fr/Contact">{{ "index_beta_banner_desc_link"|tr(lang) }}</a>.</p>
        </div>
        <div>
            <div class="c-flex c-jumbo c-color-inverted c-color-mailred">
                <div class="c-fullwidth">
                    <div class="has-text-centered">
                        <br />
                        <br />
                        <p>{{ "index_disclaimer1"|tr(lang) }}</p>
                        <p>{{ "index_disclaimer2"|tr(lang) }}<a href="https://42l.fr/Faire-un-don">{{ "index_disclaimer2_link_org"|tr(lang) }}</a>{{ "index_disclaimer2_or"|tr(lang) }}<a href="https://www.bountysource.com/teams/nextcloud">{{ "index_disclaimer2_nc"|tr(lang) }}</a>.</p>
                    </div>
                </div>
            </div>
            <br />
            <div class="c-flex c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/question.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/question.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel1_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel1_desc1"|tr(lang) }}</p>
                    <p>{{ "index_panel1_desc2"|tr(lang) }}</p>
                </div>
            </div>
            <div class="c-flex c-flex-reverse c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/fields.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/fields.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel2_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel2_desc1"|tr(lang) }}</p>
                    <p>{{ "index_panel2_desc2"|tr(lang) }}<a href="https://github.com/nextcloud/forms/issues?q=is%3Aissue+is%3Aopen+label%3A%22feature%3A+%E2%9D%93+question+types%22">{{ "index_panel2_desc2_link"|tr(lang) }}</a>.</p>
                </div>
            </div>
            <div class="c-flex c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/responses.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/responses.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel3_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel3_desc1"|tr(lang) }}</p>
                </div>
            </div>
            <div class="c-flex c-flex-reverse c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/responses-export.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/responses-export.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel4_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel4_desc1"|tr(lang) }}</p>
                </div>
            </div>
            <div class="c-flex c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/params.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/params.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel5_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel5_desc1"|tr(lang) }}</p>
                    <p>{{ "index_panel5_desc2"|tr(lang) }}</p>
                </div>
            </div>
            <div class="c-flex c-flex-reverse c-jumbo">
                <div class="c-subelem">
                    <a target="_blank" href="/assets/screen/{{ "lang_code"|tr(lang) }}/formslist.png"><img class="c-img-shadow" alt="" src="/assets/screen/{{ "lang_code"|tr(lang) }}/formslist.png" /></a>
                </div>
                <div class="c-subelem">
                    <h3>{{ "index_panel6_title"|tr(lang) }}</h3>
                    <p>{{ "index_panel5_desc1"|tr(lang) }}</p>
                </div>
            </div>
        </div>
        <br />
        <div class="c-flex c-jumbo c-blue">
            <a href="https://42l.fr/Rapport-technique" class="c-button" target="_blank">{{ "index_bottom_docs"|tr(lang) }}</a>
            <a href="https://git.42l.fr/neil/sncf" class="c-button" target="_blank">{{ "index_bottom_source"|tr(lang) }}</a>
            <a href="https://git.42l.fr/neil/sncf/src/branch/root/LICENSE" class="c-button" target="_blank">{{ "index_bottom_lic"|tr(lang) }}</a>
        </div>
        <br />
        <div class="has-text-centered page-heading">
            <br />
            <h3 class="title">Crédits</h3>
            <p>{{ "index_credits_desc1"|tr(lang) }}<a href="https://nextcloud.com/">{{ "index_credits_desc1_link"|tr(lang) }}</a>{{ "index_credits_desc1_a"|tr(lang) }}</p>
            <p>{{ "index_credits_desc2"|tr(lang) }}<a href="https://shelter.moe/@Neil">Neil</a>{{ "index_credits_desc2_for"|tr(lang) }}<a href="https://42l.fr">{{ "index_credits_desc2_org"|tr(lang) }}</a> (<a href="https://git.42l.fr/neil/sncf">{{"index_credits_desc3"|tr(lang) }}</a>).</p>
            <br />
        </div>
    </body>
</html>

