Retour

Tuile (tile)

Documentation

Tuile de téléchargement, cas max

Ajouter un attribut "download" sur le lien permet de forcer le téléchargement et éviter l'ouverture dans le navigateur. Ajoutez-y une valeur pour renommer le fichier au téléchargement.

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7952">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="#" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement, contenu minimum

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7955">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="#" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
</div>

Tuile de téléchargement MD, taille par défaut

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7959">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="#" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement SM

<div class="village-tile village-tile--sm village-tile--download village-enlarge-link" id="tile-7962">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="#" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement sans pictogramme

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7966">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="#" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
</div>

Tuile de téléchargement vertical à partir du breakpoint md

<div class="village-tile village-tile--vertical@md village-tile--download village-enlarge-link" id="tile-7970">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="../../img/image.jpg" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement vertical à partir du breakpoint lg

<div class="village-tile village-tile--vertical@lg village-tile--download village-enlarge-link" id="tile-7973">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a href="../../img/image.jpg" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__detail">Détail obligatoire (Extension - Poids - Langue)</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement avec détail renseigné automatiquement

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7977">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a data-village-assess-file href="../../../img/image.jpg" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">[À MODIFIER - Ce texte est remplacé en js par les informations du fichier, insérer ici les données connues ou laisser vide]</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Remplissage automatique des détails en Bytes

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7980">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a data-village-assess-file="bytes" href="../../../img/image.jpg" download>Download the french document lorem ipsum</a>
            </h3>
            <p class="village-tile__detail"> </p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Tuile de téléchargement avec fichier en langue étrangère

<div class="village-tile village-tile--download village-enlarge-link" id="tile-7984">
    <div class="village-tile__body">
        <div class="village-tile__content">
            <h3 class="village-tile__title">
                <a data-village-assess-file href="../../../img/image.jpg" hreflang="en" download>Télécharger le document XX</a>
            </h3>
            <p class="village-tile__desc">Description (optionnelle)</p>
            <p class="village-tile__detail">[À MODIFIER - Ce texte est remplacé en js par les informations du fichier, insérer ici les données connues ou laisser vide]</p>
        </div>
    </div>
    <div class="village-tile__header">
        <div class="village-tile__pictogram">
            <svg aria-hidden="true" class="village-artwork" viewBox="0 0 80 80" width="80px" height="80px">
                <use class="village-artwork-decorative" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-decorative"></use>
                <use class="village-artwork-minor" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-minor"></use>
                <use class="village-artwork-major" href="../../../../dist/artwork/pictograms/document/document-download.svg#artwork-major"></use>
            </svg>
        </div>
    </div>
</div>

Paramètres d’affichage

Choisissez un thème pour personnaliser l’apparence du site.