From 9aac1b0b8f1e25897acc22f3e270614cca9ce158 Mon Sep 17 00:00:00 2001 From: John Hess Date: Tue, 25 Jun 2024 18:18:25 -0500 Subject: [PATCH] responsive homepage --- _i18n/en.yml | 1 + _scss/pages/home.scss | 28 +++++++++++++++++++++++++++- index.html | 9 ++++++--- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/_i18n/en.yml b/_i18n/en.yml index 6635aaf..ca68066 100644 --- a/_i18n/en.yml +++ b/_i18n/en.yml @@ -7,6 +7,7 @@ view_all_apps: 'View All Apps' built_on_fdroid: Built on F-Droid Free Software butter_box_title: 'Welcome to the Butter Box' +butter_box_subtitle: "View and download the information you want from this offline box." explore: 'Explore USB' explore_missing: 'Insert USB drive to broadcast content' message_board: "Message Board" diff --git a/_scss/pages/home.scss b/_scss/pages/home.scss index 7f14df3..4bcc03e 100644 --- a/_scss/pages/home.scss +++ b/_scss/pages/home.scss @@ -55,11 +55,13 @@ a:active { // center content vertically display: flex; align-items: center; + justify-content: center; .header-container { display: flex; align-items: center; width: 100%; + max-width: 920px; padding: 0 20px; } @@ -156,7 +158,6 @@ a:active { text-decoration: none; } - .content { padding: 20px; } @@ -171,11 +172,36 @@ a:active { .card-set { grid-template-columns: repeat(4, 1fr); /* 4 columns for larger screens */ } + .drippy { + display: block; + width: 90px; + margin-left: auto; + margin-right: auto; + } + h1.homepage-title { + text-align: center; + } +} +@media (max-width: 900px) { + .drippy { + display: none; + } + .homepage-subtitle { + display: none; + } } h1.homepage-title { margin: 30px 0; } +.homepage-subtitle { + color: #9b9a98; + font-size: 16px; + font-weight: 400; + margin: 0 auto 50px auto; + max-width: 340px; + text-align: center; +} .card { align-items: center; diff --git a/index.html b/index.html index df9cdbf..dd8a8ee 100644 --- a/index.html +++ b/index.html @@ -6,17 +6,20 @@ layout: default
+ Paddy, the Butter Box Mascot

{% t butter_box_title %}

+

{% t butter_box_subtitle %}

+
+ {% t explore_missing %} +
-
- {% t explore_missing %} -
Message Icon {% t message_board %}