From c32144d4377ff34657914802f9352151cd4f1dd6 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 22 May 2024 18:21:40 +0200 Subject: [PATCH] refactor: improve UI consistency across templates Updated category and projects templates to enhance readability and maintain UI consistency. Both templates now use a card layout with image headers and a relocated author, channel information, and metrics (favorites, views) to the card footer for improved layout consistency and readability. Also standardized image and anchor tag formats across both pages, removing inline styles and deprecated classes for cleaner, more maintainable code. Changes aim to provide a more uniform user experience and simplify future template adjustments. --- templates/category.html | 49 ++++++++++++++++++----------------------- templates/projects.html | 39 ++++++++++++++++++++------------ 2 files changed, 47 insertions(+), 41 deletions(-) diff --git a/templates/category.html b/templates/category.html index caac509..0cc86a0 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,11 +1,13 @@ -{% extends "base.html" %} -{% block content %} +{% extends "base.html" %} {% block content %}

{{ title }}

{% for channel in channels %} @@ -17,37 +19,30 @@
{% for ible in ibles %} -
-
- +
+
+ {{ ible.title }}
{{ ible.title }}
-

- by - {{ ible.author }} -
- in - {{ ible.channel }} -
- {{ ible.views }} Views -
- {{ ible.favorites }} Favorites -

+
{% endfor %} diff --git a/templates/projects.html b/templates/projects.html index cb7751c..8218818 100644 --- a/templates/projects.html +++ b/templates/projects.html @@ -11,20 +11,31 @@
{% for ible in ibles %} -
- - {{ ible.title }} -

{{ ible.title }}

-
-

- by {{ ible.author }} in - {{ ible.channel }} -

-

{{ ible.views }} Views, {{ ible.favorites }} Favorites

+
+
+ + {{ ible.alt }} +
+
{{ ible.title }}
+
+
+ +
{% endfor %}