From 2ac0a1ae014bd46f0516e4ed5c06e4d296a17c5d Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 27 May 2023 00:30:10 -0400 Subject: Upd::Post,Styles;Future::Possible Post Translation --- static/css/styles.css | 34 ++++++++++++++++++++++++++++++++-- static/images/icons/translate.png | Bin 0 -> 36337 bytes templates/blog/post.html | 34 ++++++++++++++++++++++++++++++---- 3 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 static/images/icons/translate.png diff --git a/static/css/styles.css b/static/css/styles.css index 65202b99..950e281a 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -318,14 +318,44 @@ blockquote { } #article { - padding: 0px; + padding: 0px 10px; display: block; clear: both; - width: 730px; + width: 710px; + border: solid 1px #311b4f; + border-top: none; + border-bottom-right-radius: 5px; + border-bottom-left-radius: 5px; } #article-body { + width: 710px; +} + +#post-actions-bar { width: 730px; + margin: 0px; + padding: 0px; + display: block; + border-bottom: solid 1px #311b4f; +} + +.pa-btn { + margin: 0px; + display: inline-block; + text-decoration: none; + font-size: 11px; + font-weight: bold; + padding: 5px 10px; + background-color: #311b4f; + border-top-right-radius: 5px; + border-top-left-radius: 5px; + color: #dddddd; +} + +.pa-btn:hover { + text-decoration: none; + background-color: #3e2a6d; } #article-body img, diff --git a/static/images/icons/translate.png b/static/images/icons/translate.png new file mode 100644 index 00000000..33ac3e81 Binary files /dev/null and b/static/images/icons/translate.png differ diff --git a/templates/blog/post.html b/templates/blog/post.html index 99aa8a37..12146162 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -1,8 +1,21 @@ {% extends 'blog/partials/base.html' %} {% block content %} {% load static %} {% load tz %} -
-

+
+ Article + Opinions + Your Thoughts? + {% comment %} + Translate to Japanese + {% if request.session.language == 'jp' %} + Translate to English + {% else %} + Translate to Japanese + {% endif %} + {% endcomment %} +
+
+

{{ post.title }}

@@ -21,14 +34,19 @@ {% localtime on %}{{ post.date | date:"M d, Y" }}{% endlocaltime %}
+
{{ post.first_paragraph | safe }}
-
+
{{ post.body | safe }}

-

Comments

+

Comments + + Back to Top + +

{% if comments %}
{% for comment in comments %} @@ -194,6 +212,14 @@ for (var i = 0; i < textareas.length; i++) { textareas[i].onkeydown = handleKeyDown; } + + //pa-btn scroll animate override + $('.pa-btn').click(function() { + $('html, body').animate({ + scrollTop: $($(this).attr('href')).offset().top - 50 + }, 500); + return false; + }); {% include 'blog/partials/mathjax.html' %} -- cgit v1.2.3