From ebe230ee0a0637f282ceb9d4463e5eb84192eee3 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Tue, 15 Jul 2025 21:06:33 -0400 Subject: [PATCH] Initial formatting of swim lanes on main landing page --- public_html/css/hpr.css | 37 ++++++++++++++++++++- templates/content-index.tpl.html | 56 +++++++++++++++++++++++++++----- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git a/public_html/css/hpr.css b/public_html/css/hpr.css index 55465ab..f0ca14e 100644 --- a/public_html/css/hpr.css +++ b/public_html/css/hpr.css @@ -23,6 +23,14 @@ https://creativecommons.org/publicdomain/ --link-secondary: #7fc5e2; --font-family-hpr: Verdana, Arial, Helvetica, sans-serif; /* 1em/1.5 OpenDyslexic, */; + /* screen breakpoints */ + --for-phone-only: 599px; + --for-tablet-portrait-up: 600px; + --for-tablet-landscape-up: 900px; + --for-desktop-up: 1200px; + --for-big-desktop-up: 1800px; + + } html { @@ -71,6 +79,7 @@ body > header { flex-flow: wrap; justify-content: space-between; padding: 0.25rem; + background-image: url("/images/main-header-background.png"); } body > header > * { margin: 0; @@ -125,7 +134,8 @@ h1 { } h2, -article * h1 { +article * h1, +section > header:first-child { font-size: 1.45rem; margin: 1.25rem 0 0.75rem 0; } @@ -190,4 +200,29 @@ p.meta span label { font-weight: bold; } +div.lane { + display: flex; + flex-direction: row; +} +a.lane-button { + display: flex; + flex-direction: column; + justify-content: center; + margin: 0.5rem; + padding: 0.5rem; + border-width: 5px; + border-color: var(--link-primary); + border-style: solid; + border-radius: 5px; + +} + +@media (min-width: 900px) { + body { + background-color: white; + } + #qr_code > img { + max-height: 195px; + } +} diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index 0879318..f51cceb 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -23,11 +23,6 @@ -
-
-
-

Welcome to HPR, the Community Podcast

-
@@ -40,10 +35,52 @@ -

We started producing shows as Today with a Techie on 2005-09-19, years, months, days ago. Our shows are produced by listeners like you and can be on any topics that "are of interest to hackers". If you listen to HPR then please consider contributing one show a year. If you record your show now it could be released in days.

-
- -
+
+
Welcome
+

Hacker Public Radio is a podcast that releases shows every weekday Monday to Friday. The shows are contributed by the public and can be on any topic that is of interest to hackers, makers, hobbyists, etc.

+
+ +
+
+
+
Podcast
+ +
+
+
Project
+ +
+

Latest Shows

@@ -81,3 +118,4 @@

Get a full list of all our shows.

+