diff --git a/Pipfile.lock b/Pipfile.lock index 9676702..0b2f07a 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -138,10 +138,10 @@ }, "werkzeug": { "hashes": [ - "sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c", - "sha256:d5da73735293558eb1651ee2fddc4d0dedcfa06538b8813a2e20011583c9e49b" + "sha256:96da23fa8ccecbc3ae832a83df5c722c11547d021637faacb0bec4dd2f4666c8", + "sha256:ca5c2dcd367d6c0df87185b9082929d255358f5391923269335782b213d52655" ], - "version": "==0.14.1" + "version": "==0.15.1" } }, "develop": {} diff --git a/static/js/modal.js b/static/js/modal.js index 2c4ea4e..8a4a68b 100644 --- a/static/js/modal.js +++ b/static/js/modal.js @@ -1,13 +1,16 @@ $('#detailModal').on('show.bs.modal', function (event) { let card = $(event.relatedTarget); // Button that triggered the modal let post_id = card.data('post_id'); - + $('#details-intro').html("
\n" + + " Loading...\n" + + "
"); + $('#details-description').html(''); $.post(`/api/post/${post_id}`, data => { let post = data.post; console.log(post); - $('#details-title').text(post.title); + // $('#details-title').text(post.title); $('#details-intro').html(post.intro); $('#details-description').html(post.description); diff --git a/templates/main/index.html b/templates/main/index.html index 6111177..cd9536e 100644 --- a/templates/main/index.html +++ b/templates/main/index.html @@ -7,12 +7,11 @@
{% for post in posts %}
- +
- random image + product image + + {# Card image overlay (desktop only) #}
{{ post.title|safe }}
diff --git a/templates/main/modal.html b/templates/main/modal.html index ca68287..62d142d 100644 --- a/templates/main/modal.html +++ b/templates/main/modal.html @@ -8,8 +8,8 @@
-
-
+
+