X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f3872a90b13a88be0473e3ce3126240d0d5cbb74..811c2c30277f11cc7a35a347a74e4112f97569ac:/src/wolnelektury/templates/2022/main_page.html?ds=sidebyside diff --git a/src/wolnelektury/templates/2022/main_page.html b/src/wolnelektury/templates/2022/main_page.html index 8112c09e0..ca9d9586c 100644 --- a/src/wolnelektury/templates/2022/main_page.html +++ b/src/wolnelektury/templates/2022/main_page.html @@ -139,61 +139,71 @@ {% block global-content %} <main class="l-main"> + + {% if widget %} + <div class="l-change-pop show"><p>{{ widget.description }}</p></div> + <section class="l-section"> + <iframe src="{{ widget.url }}" style="width: 100%; height: 600px; border: none;"></iframe> + </section> + {% endif %} + {% if recommended_collection %} <section class="l-section"> <div class="l-collections js-collections"> <div class="l-collections__header"> <h3><a href="{{ recommended_collection.get_absolute_url }}">{{ recommended_collection.title }}</a></h3> - {% comment %} <div class="l-your-books__header__actions"> <button class="js-prev-slide"><i class="icon icon-arrow-left"></i></button> <button class="js-next-slide"><i class="icon icon-arrow-right"></i></button> </div> - {% endcomment %} </div> <div class="l-books"> - {% for book in recommended_collection.get_5_books %} + {% for book in recommended_collection.get_books %} {% include 'catalogue/2022/book_box.html' %} {% endfor %} </div> + <div class="c-read_more"> + <a href="/katalog/kolekcje/">zobacz wszystkie kolekcje</a> + </div> </div> + </section> {% endif %} <section class="l-section"> - <div class="p-homepage__info"> - <div class="p-homepage__info__box"> - {% carousel_2022 'main_2022' %} - </div> - <div class="p-homepage__info__box p-homepage__info__box--donate"> - <figure> - <img src="{% static '2022/images/book-donate.svg' %}" alt="DorzuÄ siÄ!"> - </figure> - <div class="p-homepage__info__box__content"> - <p> - Nasze ksiÄ Å¼ki sÄ dostÄpne dla tysiÄcy - dzieciaków dziÄki <strong>darowiznom</strong> od - osób takich jak <strong>Ty</strong>! - </p> - <a href="{% url 'club_join' %}?pk_campaign=home" class="l-button l-button--default l-button--default--dark">DorzuÄ siÄ!</a> - </div> + <div class="p-homepage__info"> + <div class="p-homepage__info__box p-homepage__info__box--carousel"> + {% carousel_2022 'main_2022' %} + </div> + <div class="p-homepage__info__box p-homepage__info__box--donate"> + <figure> + <img src="{% static '2022/images/book-donate.svg' %}" alt="DorzuÄ siÄ!"> + </figure> + <div class="p-homepage__info__box__content"> + <p> + Nasze ksiÄ Å¼ki sÄ dostÄpne dla tysiÄcy + dzieciaków dziÄki <strong>darowiznom</strong> od + osób takich jak <strong>Ty</strong>! + </p> + <a href="{% url 'club_join' %}?pk_campaign=home" class="l-button l-button--default l-button--default--dark">DorzuÄ siÄ!</a> </div> - <div class="p-homepage__info__box p-homepage__info__box--newsletter"> - <figure> - <img src="{% static '2022/images/book-newsletter.svg' %}" alt="Zapisz siÄ na nasz Newsletter!"> - </figure> - <div class="p-homepage__info__box__content"> - <h3> - Zapisz siÄ na nasz <strong>Newsletter!</strong> - </h3> - <a href="{% url 'subscribe' %}?pk_campaign=home" class="l-button l-button--default">Weź udziaÅ</a> - </div> + </div> + <div class="p-homepage__info__box p-homepage__info__box--newsletter"> + <figure> + <img src="{% static '2022/images/book-newsletter.svg' %}" alt="Zapisz siÄ na nasz Newsletter!"> + </figure> + <div class="p-homepage__info__box__content"> + <h3> + Informacja o nowoÅciach <strong>Newsletter!</strong> + </h3> + <a href="{% url 'subscribe' %}?pk_campaign=home" class="l-button l-button--default">Zapisz siÄ</a> </div> </div> + </div> </section> - <section class="l-section"> - <div class="l-quotes"> + <section class="l-section l-section--row"> + <div class="l-quotes" style=""> {% for ambassador in ambassadors %} <div class="l-quotes__item"> {% thumbnail ambassador.photo '100x100' crop="center" as ambphoto %} @@ -206,6 +216,11 @@ </div> {% endfor %} </div> + + <div class="l-quotes-ad" style=""> + {% preview_ad_homepage %} + </div> + </section> <section class="l-section"> @@ -245,7 +260,7 @@ <p> Jak budujemy najpopularniejszÄ <strong>bibliotekÄ online</strong> w Polsce </p> - <a href="#" class="l-button l-button--default">Dowiedz siÄ wiÄcej</a> + <a href="/info/jak-powstaja-wolne-lektury/" class="l-button l-button--default">Dowiedz siÄ wiÄcej</a> </div> </div> </div> @@ -253,18 +268,17 @@ </section> </main> - {% preview_ad_homepage %} <section class="l-section"> - <div class="l-collections js-new-books-slider"> + <div class="l-collections js-collections"> <div class="l-collections__header"> - <h3>NowoÅci</h3> + <h3><a href="/katalog/nowe/">NowoÅci</a></h3> <div class="l-your-books__header__actions"> <button class="js-prev-slide"><i class="icon icon-arrow-left"></i></button> <button class="js-next-slide"><i class="icon icon-arrow-right"></i></button> </div> </div> - <div class="l-books"> + <div class="l-books" style="display:block;"> {% for book in last_published %} {% include 'catalogue/2022/book_box.html' %} {% endfor %} @@ -305,7 +319,7 @@ </ul> </div> - {#% sponsor_page 'footer' %#} + {% sponsor_page 'footer' %} </div> </section>