From f85d2aac01b125eb43f715c1075a0fae1d97d530 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 6 Jun 2020 00:56:23 +0200 Subject: improved feed menu --- newspipe/static/css/custom.css | 8 ++++++++ newspipe/static/js/articles.js | 6 +++--- newspipe/templates/home.html | 41 ++++++++++++++++++++++++++++++++++++----- newspipe/web/views/home.py | 6 ++++++ 4 files changed, 53 insertions(+), 8 deletions(-) diff --git a/newspipe/static/css/custom.css b/newspipe/static/css/custom.css index 0488c441..33b0509c 100644 --- a/newspipe/static/css/custom.css +++ b/newspipe/static/css/custom.css @@ -53,6 +53,14 @@ a { color: #0082c9; } +.bg-primary { + background-color: #0082c9 !important; + opacity: 1; + color: white; + text-align: center; +} + + /* Sticky footer */ .footer { position: absolute; diff --git a/newspipe/static/js/articles.js b/newspipe/static/js/articles.js index 5fb84b46..99a5df4a 100644 --- a/newspipe/static/js/articles.js +++ b/newspipe/static/js/articles.js @@ -105,16 +105,16 @@ function change_unread_counter(feed_id, increment) { $('.like').on('click', function() { var article_id = $(this).parent().parent().parent().attr("data-article"); var data; - if ($(this).hasClass("fa-star")) { + if ($(this).hasClass("fa-heart")) { data = JSON.stringify({like: false}) - $(this).removeClass('fa-star').addClass('fa-star-o'); + $(this).removeClass('fa-heart').addClass('fa-heart-o'); if(window.location.pathname.indexOf('/favorites') != -1) { $(this).parent().parent().parent().remove(); } } else { data = JSON.stringify({like: true}) - $(this).removeClass('fa-star-o').addClass('fa-star'); + $(this).removeClass('fa-heart-o').addClass('fa-heart'); } // sends the updates to the server diff --git a/newspipe/templates/home.html b/newspipe/templates/home.html index 3238ad9e..96b30aaf 100644 --- a/newspipe/templates/home.html +++ b/newspipe/templates/home.html @@ -15,8 +15,8 @@ {% else %}
-