diff --git a/blogexample/templates/posts.html b/blogexample/templates/posts.html index 5e3b162..432e6d1 100644 --- a/blogexample/templates/posts.html +++ b/blogexample/templates/posts.html @@ -6,7 +6,8 @@ Posts - + + @@ -37,39 +38,90 @@ #signout a{ padding: 2px 0px 2px 20px; } + .card { + box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); + transition: 0.3s; + width: 100%; + margin-bottom: 20px; + } + .card:hover { + box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); + } + .container { + padding: 2px 16px; + } + .grid-container { + display: grid; + grid-template-columns: auto auto auto; + gap: 20px; + padding: 20px; + } + .grid-item { + background-color: #f1f1f1; + padding: 20px; + font-size: 30px; + text-align: center; + } + .navbar { + margin-bottom: 0; + border-radius: 0; + } + .navbar-brand { + padding: 5px 40px; + } + .navbar-nav li a { + padding-top: 15px; + padding-bottom: 15px; + } -
- -
-{% with messages = get_flashed_messages() %} - {% if messages %} - {% for message in messages %} -

{{ message }}

- {% endfor %} - {% endif %} -{% endwith %} -
-{% for each_post in posts %} -
-
-

{{each_post.title}}

-
-     -     - + +
+
+ {% for each_post in posts %} +
+ Post Image +
+

{{each_post.title}}

+

{{ each_post.body[:100] }}... Read More

+

Tags: {{ each_post.tagstring }}

+

Published: {{ each_post.visible }}

+

Last updated: {{ each_post.updated_on.strftime('%m/%d/%Y') }}

+
+     +     + +
+ +
+
+ {% endfor %}
-{% endfor %} -
- \ No newline at end of file +