DAAP_interface/templates/home.html

90 lines
2.5 KiB
HTML
Raw Normal View History

2020-09-25 13:00:51 +02:00
{% extends "layout.html" %}
{% block content %}
<!-- BANNER -->
<div id="home-top-div">
<!-- LOOP TO GET THE IMAGES -->
{% set count = namespace(value=0) %}
{% for img in ImagesBanner %}
<img class="banner-image-{{ count.value }}" src='{{ img | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
{% set count.value = count.value + 1 %}
{% endfor %}
<!-- END LOOPS IMAGES -->
<p class="heading_A">The Digital Archive of Artists' Publishing is an interactive, user-driven, searchable database of artists' books and publications.</p>
2020-11-14 19:41:53 +01:00
<div id="wrapper-bt">
2021-07-28 10:57:52 +02:00
<a id="wrapper-top-buttons" class="primary-button" href="{{ url_for('browsethearchive') }}">BROWSE THE ARCHIVE FROM A-Z</a>
2020-11-15 12:03:08 +01:00
<a id="wrapper-top-buttons" class="secondary-button" href="{{ url_for('casestudy') }}">CAROLEE SCHNEEMANN CASE STUDY</a>
2020-11-14 19:41:53 +01:00
</div>
</div>
<div class="scroll-down"><span>Scroll Down</span></div>
<!-- PUBLICATIONS -->
2020-09-25 13:00:51 +02:00
<div id="home-recently-added-works">
2020-09-26 20:42:58 +02:00
<div class="pagetitle" id="home-recent-title">RECENTLY ADDED WORKS</div>
2020-09-26 18:10:28 +02:00
<div id="home-recent-grid">
<!-- LOOP TO GET LAST ADDED ITEMS -->
2020-11-05 17:46:22 +01:00
{% for x in results['results']['bindings']%}
<!-- FOR EACH ITEM EXTRACT IMG, URL AND TITLE + DATE -->
2020-11-05 17:46:22 +01:00
<div class="home-recent-items">
<div class="home-recent-items-top">
{% if "image" in x %}
2020-12-10 22:14:27 +01:00
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
2020-11-05 17:46:22 +01:00
<img class="home-recent-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> <br>
{% else %}
2020-12-10 22:14:27 +01:00
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
2020-11-05 17:46:22 +01:00
<img class="home-recent-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br>
</a>
{% endif %}
</div>
<div class="home-recent-items-bottom">
2020-12-10 22:14:27 +01:00
<a class="title" href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
{{ x["workLabel"]["value"]}}
</a> <br>
<span class="date">
{% if "date" in x %}
2022-03-17 14:21:56 +01:00
{{ x["date"]["value"][:-16] }}
{% endif %}
</span>
2020-09-26 18:10:28 +02:00
2022-03-17 14:21:56 +01:00
2020-11-05 17:46:22 +01:00
</div>
2020-09-26 18:10:28 +02:00
2020-11-05 17:46:22 +01:00
</div>
{% endfor %}
<!-- END LOOP -->
2020-09-26 18:10:28 +02:00
2020-11-05 17:46:22 +01:00
</div>
2020-09-26 18:10:28 +02:00
2021-07-28 10:57:52 +02:00
<div class="home-show-wrapper"><a href="{{ url_for('datesindex_recent') }}" class="home-show primary-button">BROWSE ALL RECENTLY ADDED</a></div>
2020-09-26 18:10:28 +02:00
2020-09-25 13:00:51 +02:00
</div>
2020-09-26 18:10:28 +02:00
<!--
post_wrap =
home-recent-grid
pst =
home-recent-items
-->
<!-- RECENTLY ADDED ITEMS SCRIPT -->
<script src="{{ url_for('static', filename='/js/scripts.js') }}" type="text/javascript"></script>
2020-09-26 18:10:28 +02:00
2020-09-25 13:00:51 +02:00
{% endblock content %}