Modal Base: Img Text Btn

See "img upload" in sidebar snet/molecules for variants, or go to info panel and look for it in "references" (@snet-img-upload)

Refer to modal frame found in view tab for complete structure without content.

A modal's default size is 640px

Modifier classes for modals

  • modal-sm: 480px
  • modal-md: 720px (mainly used for modals containing images)
  • modal-lg: 896px
  • modal-xl: 1120px

Content loading

A modal with a content loading component behaves as follows:

  • It has a second body element with the -isLoading class that is hidden by default, and shown only when ...
  • ... the -contentLoading modifier is applied to the modal element ...
  • ... which in turn hides the regular modal body element which into which the content is injected
<div class="sds-modal modal fade" id="" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-md modal-dialog-centered modal-dialog-scrollable">
        <div class="sds-modal__content modal-content">

            <div class="sds-modal__body modal-body">

                <div class="row row-sm justify-content-center">
                    <div class="col-10">
                        <img src="https://design.spuerkeess.lu/media/illustrations/svg750x560/hero/sdsillu-welcome.svg" class="img-fluid" alt="">
                    </div>
                    <div class="col-10 text-center sds-stackXs">
                        <div class="h2">Bienvenue dans votre S-Net Pro</div>
                        <p class="sds-textBodyLg">Votre espace S-Net Professionnel est désormais activé et prêt à être utilisé, c’est parti !</p>
                    </div>
                </div>

            </div>

            <div class="sds-modal__footer modal-footer justify-content-center">

                <div class="sds-btnGroup">
                    <button type="button" class="sds-btn -btnPrimary">

                        <span class="sds-btn__text">Entrer</span>

                    </button>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block body %}
	<div class="row row-sm justify-content-center">
		<div class="col-10">
			<img src="{{ ("https://design.spuerkeess.lu/media" + illustrationsSDSPath + svg750xPath  + "/hero/sdsillu-welcome.svg") }}" class="img-fluid" alt="">
		</div>
		<div class="col-10 text-center {{ namespace }}stackXs">
			<div class="h2">Bienvenue dans votre S-Net Pro</div>
			<p class="{{ namespace }}textBodyLg">Votre espace S-Net Professionnel est désormais activé et prêt à être utilisé, c’est parti !</p>
		</div>
	</div>
{% endblock %}
{% block footer %}
	<div class="{{ namespace }}btnGroup">
		{% render "@btn-primary",{
			text: "Entrer",
			attrs: imgTextBtnModalAttrs
		},true %}
	</div>
{% endblock %}