From d14aa8aa6b3a0892faa291b9b12005e9bedaab08 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 19 Apr 2025 22:45:46 -0500 Subject: [PATCH] fixing layout issues in website --- static/css/main.css | 23 +++++++ templates/index.html | 150 ++++++++++++++++++++++--------------------- 2 files changed, 99 insertions(+), 74 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index c3352a3..5505413 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -41,6 +41,7 @@ --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5); --text-3xl: 1.875rem; + --text-3xl--line-height: calc(2.25 / 1.875); --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; @@ -311,6 +312,15 @@ .mx-8 { margin-inline: calc(var(--spacing) * 8); } + .mx-10 { + margin-inline: calc(var(--spacing) * 10); + } + .mx-16 { + margin-inline: calc(var(--spacing) * 16); + } + .mx-24 { + margin-inline: calc(var(--spacing) * 24); + } .mx-auto { margin-inline: auto; } @@ -462,6 +472,9 @@ .h-64 { height: calc(var(--spacing) * 64); } + .h-80 { + height: calc(var(--spacing) * 80); + } .h-full { height: 100%; } @@ -477,6 +490,9 @@ .w-2\/3 { width: calc(2/3 * 100%); } + .w-3\/4 { + width: calc(3/4 * 100%); + } .w-6 { width: calc(var(--spacing) * 6); } @@ -510,6 +526,9 @@ .w-64 { width: calc(var(--spacing) * 64); } + .w-80 { + width: calc(var(--spacing) * 80); + } .w-auto { width: auto; } @@ -866,6 +885,10 @@ font-size: var(--text-2xl); line-height: var(--tw-leading, var(--text-2xl--line-height)); } + .text-3xl { + font-size: var(--text-3xl); + line-height: var(--tw-leading, var(--text-3xl--line-height)); + } .text-lg { font-size: var(--text-lg); line-height: var(--tw-leading, var(--text-lg--line-height)); diff --git a/templates/index.html b/templates/index.html index c897932..b76e6d5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,81 +1,83 @@ {% extends "layout.html" %} {% block content %} -
-

- {{ config.extra.index.title }} -

- {{ config.extra.index.image_alt }} -
- {% if config.extra.social.codeberg %} - - - - - - {% endif %} - {% if config.extra.social.github %} - - - - - - {% endif %} - {% if config.extra.social.gitlab %} - - - - - - {% endif %} - {% if config.extra.social.twitter %} - - - - - - {% endif %} - {% if config.extra.social.mastodon %} - - - - - - {% endif %} - {% if config.extra.social.linkedin %} - - - - - - {% endif %} - {% if config.extra.social.email %} - - - - - - {% endif %} +
+
+

+ {{ config.extra.index.title }} 🎉 +

+ +
+ {% if config.extra.social.codeberg %} + + + + + + {% endif %} + {% if config.extra.social.github %} + + + + + + {% endif %} + {% if config.extra.social.gitlab %} + + + + + + {% endif %} + {% if config.extra.social.twitter %} + + + + + + {% endif %} + {% if config.extra.social.mastodon %} + + + + + + {% endif %} + {% if config.extra.social.linkedin %} + + + + + + {% endif %} + {% if config.extra.social.email %} + + + + + + {% endif %} - {% if config.extra.social.stackoverflow %} - - - - - - {% endif %} - {% if config.extra.social.telegram %} - - - - - - {% endif %} -
- - -
- {{ section.content | safe }} + {% if config.extra.social.stackoverflow %} + + + + + + {% endif %} + {% if config.extra.social.telegram %} + + + + + + {% endif %}
+ + +
+ {{ section.content | safe }} +
+
{% endblock content %}