1
0
forked from HPR/hpr_generator

7 Commits

Author SHA1 Message Date
96d4f14b6f Update responsive layout for footer and latest lanes 2025-08-03 23:59:06 -04:00
f2b00145ad Add episode summary to information about latest shows 2025-08-03 23:30:15 -04:00
e9df7bc900 Update theme colors for links 2025-08-03 23:14:17 -04:00
c742794f15 Use no-css class on page footer hr tag 2025-08-03 22:45:01 -04:00
90710665c9 Add level 2 header tag to page section header tags 2025-08-03 22:40:16 -04:00
6347b39d74 Text changes to landing page
Per Ken's PR comment:
HPR/hpr_generator#266 (comment)
2025-08-03 22:36:56 -04:00
033fc310bf Fix lane icon default height when no css
Add height attribute to image and br tags for formatting
when no css is available.
2025-08-03 22:27:13 -04:00
3 changed files with 43 additions and 33 deletions

View File

@@ -26,16 +26,17 @@ https://creativecommons.org/publicdomain/
url("/css/bebas/BebasNeue.woff") format("woff"); url("/css/bebas/BebasNeue.woff") format("woff");
} }
:root { :root {
--background-primary: #dfdfdf; --background-primary: #fffff7/*#fafafa#fbfbee #dfdfdf */;
--text-primary: #4d4d4d; /* HPR Grey */ --text-primary: #4d4d4d; /* HPR Grey */
--banner-text-primary: #000000; --banner-text-primary: #000000;
--background-secondary: #4d4d4d; --background-secondary: #4d4d4d;
--text-secondary: #dfdfdf; --text-secondary: #dfdfdf;
--link-primary: #004852 /*#154a60*/; --link-primary: #004852 /*#154a60*/;
--link-primary-hover: #f8961e; --link-primary-hover: #b54c08/*#f8961e*/;
--link-secondary: #a8f8ff; --link-secondary: #a8f8ff;
--link-secondary-hover: #f9e9c2; --link-secondary-hover: #f9e9c2;
--lane-button-border: #80b4c0;
--input-border-primary: #4d4d4d; --input-border-primary: #4d4d4d;
--link-spacing-horizontal: clamp(0.5rem, -0.25rem + 3vw, 2.5rem); --link-spacing-horizontal: clamp(0.5rem, -0.25rem + 3vw, 2.5rem);
@@ -130,15 +131,11 @@ body > footer {
flex: 0 1 auto; flex: 0 1 auto;
background-color: var(--background-secondary); background-color: var(--background-secondary);
color: var(--text-secondary); color: var(--text-secondary);
padding: 0.25rem; padding: clamp(0.25rem, calc(100vw - var(--for-tablet-portrait-up) + 0.5rem), 0.5rem);
margin-top: 0.5rem;
text-align: center; text-align: center;
line-height: 1.25; line-height: 1.25;
} }
body > footer hr:first-child {
display: none;
margin: 0;
padding: 0;
}
body > footer a { body > footer a {
color: var(--link-secondary); color: var(--link-secondary);
} }
@@ -304,14 +301,19 @@ a.lane-button {
margin: 0.5rem var(--link-spacing-horizontal); margin: 0.5rem var(--link-spacing-horizontal);
padding: 0.5rem; padding: 0.5rem;
border-width: 5px; border-width: 5px;
border-color: var(--link-primary); border-color: var(--lane-button-border);
border-style: solid; border-style: solid;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
} }
a.lane-button:hover {
box-shadow:
1px 2px 2px var(--link-primary-hover),
2px 4px 4px var(--link-primary-hover);
}
a.lane-button img { a.lane-button img {
height: 110px; height: clamp(95px, calc(100vw - var(--for-tablet-portrait-up)), 110px);
filter: invert(60%) sepia(50%) hue-rotate(140deg) saturate(200%); filter: invert(60%) sepia(50%) hue-rotate(140deg) saturate(200%);
transform: scaleX(0.9); transform: scaleX(0.9);
} }
@@ -497,9 +499,6 @@ fieldset > input {
max-height: 40vw; max-height: 40vw;
overflow-y: scroll overflow-y: scroll
} }
.lane > article:nth-last-child(2),
.lane > article:last-child {
}
#latest_lane.lane section > ul { #latest_lane.lane section > ul {
margin: 0.5rem 3rem 0 1rem; margin: 0.5rem 3rem 0 1rem;
} }
@@ -509,4 +508,7 @@ fieldset > input {
flex-basis: 32%; flex-basis: 32%;
max-width: 32%; max-width: 32%;
} }
#latest_lane.lane section {
flex: 1;
}
}

View File

@@ -36,46 +36,51 @@
<!--% delta = date.calc.N_Delta_YMD(2005,9,19, date.format(date.now, '%Y'),date.format(date.now, '%m'),date.format(date.now, '%d')) %--> <!--% delta = date.calc.N_Delta_YMD(2005,9,19, date.format(date.now, '%Y'),date.format(date.now, '%m'),date.format(date.now, '%d')) %-->
<section id="welcome"> <section id="welcome">
<header>Welcome</header> <header><h2>Welcome</h2></header>
<p>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.</p> <p>Hacker Public Radio is a technology focused podcast that releases shows every weekday Monday to Friday. Our shows are produced by listeners like you and can be on any topic that is of interest to hackers, makers, hobbyists, etc. We are a welcoming community that offers positive feedback and encourages respectful debate.</p>
<div id="call_for_shows"> <div id="call_for_shows">
<!--% display_call_for_shows() %--> <!--% display_call_for_shows() %-->
</div> </div>
</section> </section>
<section id="podcast_lane"> <section id="podcast_lane">
<header>Podcast</header> <header><h2>The Podcast</h2></header>
<div class="lane"> <div class="lane">
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->about.html#recording_a_podcast"> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->about.html#recording_a_podcast">
<img src="<!--% absolute_path(baseurl) %-->images/icons/mic-fill.svg" alt=""> <img src="<!--% absolute_path(baseurl) %-->images/icons/mic-fill.svg" alt="" height="110">
Record Record
</a> </a>
<a class="lane-button" href="https://hub.hackerpublicradio.org/calendar.php"> <br class="no-css">
<img src="<!--% absolute_path(baseurl) %-->images/icons/calendar-2-line.svg" alt=""> <a class="lane-button" href="https://hub.hackerpublicradio.org/calendar.php">
<img src="<!--% absolute_path(baseurl) %-->images/icons/calendar-2-line.svg" alt="" height="110">
Schedule Schedule
</a> </a>
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->syndication.html"> <br class="no-css">
<img src="<!--% absolute_path(baseurl) %-->images/icons/rss-fill.svg" alt=""> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->syndication.html">
<img src="<!--% absolute_path(baseurl) %-->images/icons/rss-fill.svg" alt="" height="110">
Subscribe Subscribe
</a> </a>
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->eps/index.html"> <br class="no-css">
<img src="<!--% absolute_path(baseurl) %-->images/icons/volume-up-fill.svg" alt=""> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->eps/index.html">
<img src="<!--% absolute_path(baseurl) %-->images/icons/volume-up-fill.svg" alt="" height="110">
Listen Listen
</a> </a>
</div> </div>
</section> </section>
<section id="project_lane"> <section id="project_lane">
<header>Project</header> <header><h2>The Project</h2></header>
<div class="lane"> <div class="lane">
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->correspondents/index.html"> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->correspondents/index.html">
<img src="<!--% absolute_path(baseurl) %-->images/icons/user-fill.svg" alt=""> <img src="<!--% absolute_path(baseurl) %-->images/icons/user-fill.svg" alt="" height="110">
Host Host
</a> </a>
<br class="no-css">
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->series/index.html"> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->series/index.html">
<img src="<!--% absolute_path(baseurl) %-->images/icons/stack-fill.svg" alt=""> <img src="<!--% absolute_path(baseurl) %-->images/icons/stack-fill.svg" alt="" height="110">
Series Series
</a> </a>
<a class="lane-button" href="<!--% absolute_path(baseurl) %-->about.html"> <br class="no-css">
<img src="<!--% absolute_path(baseurl) %-->images/icons/question-mark.svg" alt=""> <a class="lane-button" href="<!--% absolute_path(baseurl) %-->about.html">
<img src="<!--% absolute_path(baseurl) %-->images/icons/question-mark.svg" alt="" height="110">
About About
</a> </a>
</div> </div>
@@ -83,18 +88,21 @@
<section id="latest_lane" class="lane"> <section id="latest_lane" class="lane">
<!--% PROCESS 'shared-episode-summary.tpl.html' %--> <!--% PROCESS 'shared-episode-summary.tpl.html' %-->
<section id="latest_shows"> <section id="latest_shows">
<header>Latest Shows</header> <header><h2>Latest Shows</h2></header>
<!--% host_cnt = 0 %--> <!--% host_cnt = 0 %-->
<ul> <ul>
<!--% FOREACH latest_episodes IN DBI.query(query_latest_episodes) <!--% FOREACH latest_episodes IN DBI.query(query_latest_episodes)
%--> %-->
<li><a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(latest_episodes.id) %-->/index.html">hpr<!--% latest_episodes.id %--> :: <!--% latest_episodes.title %--></a></li> <li><a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(latest_episodes.id) %-->/index.html">hpr<!--% latest_episodes.id %--> :: <!--% latest_episodes.title %--></a>
<ul><li>
<!--% latest_episodes.summary %-->
</li></ul>
<!--% host_cnt = host_cnt + 1 %--> <!--% host_cnt = host_cnt + 1 %-->
<!--% END %--> <!--% END %-->
</ul> </ul>
</section> </section>
<section id="latest_comments"> <section id="latest_comments">
<header>Latest Comments</header> <header><h2>Latest Comments</h2></header>
<ul> <ul>
<!--% FOREACH item IN DBI.query(' <!--% FOREACH item IN DBI.query('
WITH episode_comment_rank AS ( WITH episode_comment_rank AS (

View File

@@ -66,7 +66,7 @@
<!--% INCLUDE $content %--> <!--% INCLUDE $content %-->
</main> </main>
<footer role="contentinfo"> <footer role="contentinfo">
<hr> <hr class="no-css">
<div id="copyright"> <div id="copyright">
<span>Unless otherwise stated, our shows are released under a <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <span>Unless otherwise stated, our shows are released under a <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.</span> Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.</span>