From ac2472f8ce58027cf21f82be8133591b1f140415 Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Fri, 17 Feb 2023 10:19:12 -0500 Subject: [PATCH 1/4] :art: size image and css fixes * Sizes the profile image to match designs on the profile page. * Fixes regression of gray text --- static/css/styles.css | 13 ++++++++----- templates/forum/forum_list.html | 12 ++++++------ templates/homepage.html | 4 ++-- templates/includes/_footer.html | 2 +- templates/includes/_header.html | 14 +++++++------- .../libraries/includes/search_command_palatte.html | 4 ++-- templates/libraries/includes/search_results.html | 6 +++--- templates/partials/breadcrumb.html | 6 +++--- templates/users/profile.html | 4 ++-- 9 files changed, 34 insertions(+), 31 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 2969f420..dc989db7 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1297,6 +1297,14 @@ input[type=file] { width: 200px; } +.w-\[100px\] { + width: 100px; +} + +.w-\[80px\] { + width: 80px; +} + .min-w-0 { min-width: 0px; } @@ -1643,11 +1651,6 @@ input[type=file] { background-color: transparent; } -.bg-gray-800 { - --tw-bg-opacity: 1; - background-color: rgb(31 41 55 / var(--tw-bg-opacity)); -} - .bg-slate { --tw-bg-opacity: 1; background-color: rgb(49 74 87 / var(--tw-bg-opacity)); diff --git a/templates/forum/forum_list.html b/templates/forum/forum_list.html index 9e592fe6..de07ee0d 100644 --- a/templates/forum/forum_list.html +++ b/templates/forum/forum_list.html @@ -12,10 +12,10 @@ {% if node.level == root_level %} {% if node.obj.is_category %}
-
+
@@ -30,10 +30,10 @@ {% with node.previous_sibling.obj as previous_sibling %} {% if previous_sibling and previous_sibling.is_category or not previous_sibling in forum_contents.visible_forums or not previous_sibling %}
-
+
-

{% trans "Forums" %}

+

{% trans "Forums" %}

@@ -198,10 +198,10 @@ {% endrecurseforumcontents %} {% else %}
-
+
-

{% trans "Forums" %}

+

{% trans "Forums" %}

diff --git a/templates/homepage.html b/templates/homepage.html index 5d5210d5..a9ef10f1 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -10,10 +10,10 @@
-

+

Boost provides free peer-reviewed portable C++ source libraries.

-

Experience C++ libraries created by experts to be reliable, skillfully designed, and well-tested.

+

Experience C++ libraries created by experts to be reliable, skillfully designed, and well-tested.

Downloads Download Latest Version Details > diff --git a/templates/includes/_footer.html b/templates/includes/_footer.html index b7675523..41f2a855 100644 --- a/templates/includes/_footer.html +++ b/templates/includes/_footer.html @@ -5,7 +5,7 @@
-

+

Join the growing community

diff --git a/templates/includes/_header.html b/templates/includes/_header.html index 065e4451..c8e0000d 100644 --- a/templates/includes/_header.html +++ b/templates/includes/_header.html @@ -66,7 +66,7 @@ 1.79.0 Releases on 9-8-22 >
diff --git a/templates/libraries/includes/search_command_palatte.html b/templates/libraries/includes/search_command_palatte.html index 520e35da..2f71d49a 100644 --- a/templates/libraries/includes/search_command_palatte.html +++ b/templates/libraries/includes/search_command_palatte.html @@ -14,7 +14,7 @@ >
-
    +
      diff --git a/templates/libraries/includes/search_results.html b/templates/libraries/includes/search_results.html index c35a2eb3..83bcd9d3 100644 --- a/templates/libraries/includes/search_results.html +++ b/templates/libraries/includes/search_results.html @@ -2,19 +2,19 @@
    • - {{ library.name|capfirst }}: {{ library.description }} - +
    • {% empty %}
      -

      We couldn't find any libraries with that term. Please try again.

      diff --git a/templates/partials/breadcrumb.html b/templates/partials/breadcrumb.html index 36dc7763..5ab428a9 100644 --- a/templates/partials/breadcrumb.html +++ b/templates/partials/breadcrumb.html @@ -6,7 +6,7 @@ class="fas fa-home"> {% trans "Forum index" %} {% if forum %} {% for ancestor in forum.get_ancestors %} -
      - user + user
      {{ user.get_full_name }} From 8b1c5d4eb0ebcd143fcb95774cd84ef4d9631771 Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Fri, 17 Feb 2023 10:29:37 -0500 Subject: [PATCH 2/4] :art: adds images to library list --- static/css/styles.css | 41 ++++++++------------- templates/libraries/_library_list_item.html | 6 ++- 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index dc989db7..9279a3bd 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1277,6 +1277,10 @@ input[type=file] { width: 1.5rem; } +.w-\[40px\] { + width: 40px; +} + .w-4 { width: 1rem; } @@ -1289,6 +1293,10 @@ input[type=file] { width: 20%; } +.w-\[80px\] { + width: 80px; +} + .w-1 { width: 0.25rem; } @@ -1297,12 +1305,8 @@ input[type=file] { width: 200px; } -.w-\[100px\] { - width: 100px; -} - -.w-\[80px\] { - width: 80px; +.w-\[47px\] { + width: 47px; } .min-w-0 { @@ -2019,16 +2023,6 @@ input[type=file] { color: rgb(255 255 255 / var(--tw-text-opacity)); } -.text-gray-900 { - --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); -} - -.text-gray-500 { - --tw-text-opacity: 1; - color: rgb(107 114 128 / var(--tw-text-opacity)); -} - .text-orange { --tw-text-opacity: 1; color: rgb(255 159 0 / var(--tw-text-opacity)); @@ -2048,11 +2042,6 @@ input[type=file] { color: rgb(49 74 87 / var(--tw-text-opacity)); } -.text-gray-400 { - --tw-text-opacity: 1; - color: rgb(156 163 175 / var(--tw-text-opacity)); -} - .text-gray-700 { --tw-text-opacity: 1; color: rgb(55 65 81 / var(--tw-text-opacity)); @@ -2082,6 +2071,11 @@ input[type=file] { color: rgb(255 255 255 / 0.6); } +.text-gray-500 { + --tw-text-opacity: 1; + color: rgb(107 114 128 / var(--tw-text-opacity)); +} + .text-gray-200 { --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity)); @@ -2158,11 +2152,6 @@ input[type=file] { color: rgb(255 255 255 / var(--tw-text-opacity)); } -.hover\:text-gray-900:hover { - --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); -} - .focus\:text-charcoal:focus { --tw-text-opacity: 1; color: rgb(23 42 52 / var(--tw-text-opacity)); diff --git a/templates/libraries/_library_list_item.html b/templates/libraries/_library_list_item.html index 9d713b01..d660db2e 100644 --- a/templates/libraries/_library_list_item.html +++ b/templates/libraries/_library_list_item.html @@ -20,10 +20,12 @@
      -
      Author(s):
      +
      Author(s):
      {% for author in library.authors.all %} -
      user {{ author.get_full_name }}
      +
      + user {{ author.get_full_name }} +
      {% endfor %}
      From 020c0fc8b3b39fd7f4f2e9b1106e207fe5e6480c Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Fri, 17 Feb 2023 10:32:05 -0500 Subject: [PATCH 3/4] :art: adds images to library detail --- templates/libraries/detail.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/libraries/detail.html b/templates/libraries/detail.html index c03cc676..9ba805df 100644 --- a/templates/libraries/detail.html +++ b/templates/libraries/detail.html @@ -82,7 +82,9 @@

      Authors

      {% for author in object.authors.all %} -
      user {{ author.get_full_name }}
      +
      + user {{ author.get_full_name }} +
      {% endfor %}
      @@ -90,7 +92,9 @@

      Maintainers

      {% for maintainer in object.maintainers.all %} -
      user {{ maintainer.get_full_name }}
      +
      + user {{ maintainer.get_full_name }} +
      {% endfor %}
      From 8eed4681b9862398cd774841dc97b3fc9108a82a Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Fri, 17 Feb 2023 10:47:53 -0500 Subject: [PATCH 4/4] :art: sets a default icon if no profile image --- static/css/styles.css | 8 ++------ templates/libraries/_library_list_item.html | 7 ++++++- templates/libraries/detail.html | 14 ++++++++++++-- templates/users/profile.html | 6 +++++- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 9279a3bd..0a996eaf 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1277,8 +1277,8 @@ input[type=file] { width: 1.5rem; } -.w-\[40px\] { - width: 40px; +.w-\[47px\] { + width: 47px; } .w-4 { @@ -1305,10 +1305,6 @@ input[type=file] { width: 200px; } -.w-\[47px\] { - width: 47px; -} - .min-w-0 { min-width: 0px; } diff --git a/templates/libraries/_library_list_item.html b/templates/libraries/_library_list_item.html index d660db2e..d97803a2 100644 --- a/templates/libraries/_library_list_item.html +++ b/templates/libraries/_library_list_item.html @@ -24,7 +24,12 @@
      {% for author in library.authors.all %}
      - user {{ author.get_full_name }} + {% if author.image.url %} + user + {% else %} + + {% endif %} + {{ author.get_full_name }}
      {% endfor %}
      diff --git a/templates/libraries/detail.html b/templates/libraries/detail.html index 9ba805df..f102b74a 100644 --- a/templates/libraries/detail.html +++ b/templates/libraries/detail.html @@ -83,7 +83,12 @@
      {% for author in object.authors.all %}
      - user {{ author.get_full_name }} + {% if author.image.url %} + user + {% else %} + + {% endif %} + {{ author.get_full_name }}
      {% endfor %}
      @@ -93,7 +98,12 @@
      {% for maintainer in object.maintainers.all %}
      - user {{ maintainer.get_full_name }} + {% if maintainer.image.url %} + user + {% else %} + + {% endif %} + {{ maintainer.get_full_name }}
      {% endfor %}
      diff --git a/templates/users/profile.html b/templates/users/profile.html index 8f864d63..872c35e4 100644 --- a/templates/users/profile.html +++ b/templates/users/profile.html @@ -5,7 +5,11 @@ {% block subnav %}
      - user + {% if user.image.url %} + user + {% else %} + + {% endif %}
      {{ user.get_full_name }}