{% extends 'base.html.twig' %}

{% block title %} Accueil {% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('styles/vitrine/index.css') }}">
    <link rel="stylesheet" href="{{ asset('styles/globals/bulles.css') }}">
{% endblock %}

{% block main %}
    <div class="bulle-container">

        <section class="bulle bulle-all-col flex-column align-items-center">
            <h1 class="text-center">Bienvenue sur le serveur de Ploush</h1>
            <p class="text-center">Le serveur est accessible a l'adresse :
                <span class="copy-link" data-controller="copy-text"
                      data-action="click->copy-text#copy" data-copy-text-target="text"
                      data-copy-text-value="ploush.top"
                >ploush.top</span></p>
        </section>

        <section class="bulle bulle-2-col bulle-2-row">
            <h4>Conseil java flags</h4>
            <p>Afin d'optimiser votre VM java, vous pouvez utiliser les flags suivants :</p>
            <ul>
                <li>
                    <span class="copy-link" data-controller="copy-text"
                          data-action="click->copy-text#copy" data-copy-text-target="text"
                          data-copy-text-value="-Xms4G -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGarbageThreshold=15 -XX:ShenandoahInitFreeThreshold=70 -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem -XX:+UseTransparentHugePages -XX:CICompilerCount=4 -XX:+OptimizeStringConcat -XX:ReservedCodeCacheSize=512m -XX:+SegmentedCodeCache -XX:-OmitStackTraceInFastThrow -Dfile.encoding=UTF-8 -Dfml.ignorePatchDiscrepancies=true"
                    >flags compatible OpenJDK</span>
                </li>
                <li>
                    <span class="copy-link" data-controller="copy-text"
                          data-action="click->copy-text#copy" data-copy-text-target="text"
                          data-copy-text-value="-Xms6G -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem -XX:+UseTransparentHugePages -XX:CICompilerCount=2 -XX:+OptimizeStringConcat -XX:ReservedCodeCacheSize=512m -XX:+SegmentedCodeCache -XX:-OmitStackTraceInFastThrow -Dfile.encoding=UTF-8 -Dfml.ignorePatchDiscrepancies=true -Xlog:gc:file=logs/gc.log:time,uptime:filecount=5,filesize=10m"
                    >flags compatible Oracle (Java "classique")</span>
                </li>
            </ul>
        </section>

        <section class="bulle bulle-2-col">
            <h4>Conseil launcher</h4>
            <p>Afin de vous faciliter l'installation des mods, je vous conseille vivement d'utiliser <a href="https://prismlauncher.org/" target="_blank" rel="noopener noreferrer">prism launcher</a> .</p>
        </section>

    </div>
{% endblock %}
