Skip to content

Commit

Permalink
Merge pull request #20 from PRX/feat/playlist-updates
Browse files Browse the repository at this point in the history
Playlist subscribe buttons
  • Loading branch information
brandonhundt authored Dec 6, 2024
2 parents 0ab8d6f + 5b23fe1 commit 353b5a7
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 61 deletions.
32 changes: 32 additions & 0 deletions _data/subscribe_links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"url": "https://podcasts.apple.com/us/podcast/prx-annual-report-playlist/id1783622485",
"label": "Apple Podcasts",
"svg": "apple.svg"
},
{
"url": "https://open.spotify.com/show/3dQfbAnQEhNPo3ARrsYxs2",
"label": "Spotify",
"svg": "spotify.svg"
},
{
"url": "https://pca.st/39tca8p4",
"label": "PocketCasts",
"svg": "pocketcasts.svg"
},
{
"url": "https://overcast.fm/login",
"label": "Overcast",
"svg": "overcast.svg"
},
{
"url": "https://podcastaddict.com/podcast/prx-annual-report-playlist/5551722",
"label": "Podcast Addict",
"svg": "podcastaddict.svg"
},
{
"url": "https://tunein.com/search/?query=PRX%20Annual%20Report%20Playlist",
"label": "TuneIn",
"svg": "tunein.svg"
}
]
3 changes: 2 additions & 1 deletion _includes/components/button-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
class="btn {{ include.color }}"
>
{%- if include.icon -%}
<span class="material-icons" aria-label="{{ include.aria-label }}">{{ include.icon }}</span>
{%- capture icon_path %}svg/icons/{{ include.icon }}.svg{% endcapture -%}
{% include {{ icon_path }} %}
{%- endif -%}
{%- if include.label -%}
<span class="label">{{ include.label }}</span>
Expand Down
3 changes: 2 additions & 1 deletion _includes/components/button.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<button id="{{ include.id }}" class="btn {{ include.color }}">
<span class="material-icons">{{ include.icon }}</span>
{%- capture icon_path %}svg/icons/{{ include.icon }}.svg{% endcapture -%}
{% include {{ icon_path }} %}
</button>
12 changes: 4 additions & 8 deletions _includes/components/menu-item.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<li class="menu-item">
{%- if include.icon -%}
<a
href="{{ include.href }}"
class="menu-link icon {{ include.color }}"
>
<span class="material-icons" aria-label="{{ include.aria-label }}">{{ include.icon }}</span>
{%- if include.icon -%}
{%- capture icon_path %}svg/icons/{{ include.icon }}.svg{% endcapture -%}
{% include {{ icon_path }} %}
{%- endif -%}
<span>{{ include.label }}</span>
</a>
{%- else -%}
<a
href="{{ include.href }}"
class="menu-link {{ include.color }}"
>{{ include.label }}</a>
{%- endif -%}
</li>
2 changes: 1 addition & 1 deletion _includes/navbar/navbar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="navbar">
<nav>
<button popovertarget="navDrawerPopover" class="btn white">
<span class="material-icons">menu</span>
{% include svg/icons/menu.svg %}
</button>
<a href="#top" class="prx-logo" aria-label="Back to the top of the Annual Report">
{% include svg/prx-logo-color.svg %}
Expand Down
24 changes: 12 additions & 12 deletions _includes/page-types/playlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% include components/show-tiles.html %}
<div class="content-wrapper">
<h2>Listen to the 2024 PRX Annual Report podcast playlist</h2>
<p>Each show featured in this year&rsquo;s report includes an audio clip representing some of the best work we wanted you to hear this year. We have compiled these episodes into a podcast playlist. <strong><em>Subscribe where ever podcasts are found.</em></strong></p>
<p>Each show featured in this year&rsquo;s report includes an audio clip representing some of the best work we wanted you to hear this year. We have compiled these episodes into a podcast playlist.</p>

<div class="flex justify-center">
<ul class="subscribe-list list-inline">
<li>
<a href="#" class="orange"><span class="material-icons">rss_feed</span></a>
</li>
<li>
<a href="#" class="orange"><span class="material-icons">rss_feed</span></a>
</li>
</ul>
</div>
<nav class="subscribe--nav">
<h3>Subscribe wherever you get your podcasts.</h3>
<div class="subscribe--list">
{% for link in site.data.subscribe_links %}
<a href="{{ link.url }}" title="{{ link.label }}" class="subscribe--link">
<img src="/assets/img/icons/{{ link.svg }}" alt="{{ link.label }}" />
</a>
{% endfor %}
</div>
</nav>

<div class="playlist-wrapper">
<iframe
Expand All @@ -23,7 +23,7 @@ <h2>Listen to the 2024 PRX Annual Report podcast playlist</h2>
width="100%"
style="min-width: 300px;"
title="2024 PRX Annual Report Podcast Playlist"
src="https://play.prx.org/e?th=light&ac=8CD2F4&ac=FB9306&ac=FEC400&ac=0873A9&sp=all&uf=https%3A%2F%2Fpublicfeeds.net%2Ff%2F284%2Ffeed-rss.xml"
src="https://play.prx.org/e?se=2024&th=light&ac=8CD2F4&ac=FB9306&ac=FEC400&ac=0873A9&sp=all&uf=https%3A%2F%2Fpublicfeeds.net%2Ff%2F9003%2Ffeed-rss.xml"
></iframe>
</div>

Expand Down
1 change: 1 addition & 0 deletions _includes/svg/icons/favorite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/svg/icons/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/svg/icons/playlist_play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions _sass/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@

display: flex;
align-items: center;
gap: 0.25rem;
gap: 0.25rem;
padding: 0.5rem;
border-radius: 10px;

background-color: var(--_btn-background-color);

color: var(--_btn-text-color);

font-weight: bold;
text-transform: uppercase;
text-decoration: none;
border: 0;

svg {
fill: currentColor;
}

&:link,
&:visited {
Expand Down
25 changes: 0 additions & 25 deletions _sass/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,3 @@
font-style: italic;
font-display: swap;
}

@font-face {
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
src: url("/assets/fonts/material-icons.woff2") format("woff2");
font-display: swap;
}

.material-icons {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: "liga";
-webkit-font-smoothing: antialiased;
}

6 changes: 0 additions & 6 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ p {
margin-bottom: 1.5rem;
}

.subscribe-list {
text-align: center;
justify-content: center;
width: 100%;
}

blockquote {
margin: 0;
padding: 0;
Expand Down
12 changes: 8 additions & 4 deletions _sass/_menu-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@
justify-content: space-between;
border-bottom: 1px solid $border-color;
list-style: none;

svg {
fill: currentColor;
}
}

.menu-link {
--_menu-link-background-color: var(--menu-link-background-color, #{$white});
--_menu-link-background-color--hover: var(--menu-link-background-color--hover, #{mix(white, $cyan, 10%)});
--_menu-link-text-color: var(--menu-link-text-color, #{$navy});
--_menu-link-text-color--hover: var(--menu-link-text-color--hover, var(--_menu-link-text-color));

display: flex;
align-items: center;
width: 100%;
gap: 0.25rem;
padding: 0.5rem 1rem;

background-color: var(--_menu-link-background-color);
color: var(--_menu-link-text-color);

text-decoration: none;

&:link,
Expand All @@ -50,7 +54,7 @@
--menu-link-background-color: #{$yellow};
--menu-link-background-color--hover: #{mix(white, $yellow, 25%)};
}


&.light-blue {
--menu-link-background-color: #{$cyan-a-10};
Expand Down
48 changes: 48 additions & 0 deletions _sass/_playlist.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
#playlist {
text-wrap: balance;

.subscribe--nav {
display: inline-grid;
row-gap: 1.5rem;

margin: 2rem auto 4rem;
padding: 2rem 3rem;

background-color: #{'hsl('}0 100% 100% / 20%#{')'};
backdrop-filter: blur(6px);

border-radius: 20px;

h3 {
width: 100%;
margin: 0;
}
}

.subscribe--list {
display: inline-flex;
gap: 0.5rem;
justify-content: center;
flex-wrap: wrap;
}

.subscribe--link {
transition: background-color 200ms linear;

padding: 0.5rem;

border-radius: 1rem;

&:where(:hover, :focus-visible) {
background-color: #{'hsl('}0 100% 100% / 20%#{')'};
outline: none;
}

img {
width: 40px;
height: 40px;
}
}

}

.playlist-wrapper {
overflow: hidden;

Expand Down
Binary file removed assets/fonts/material-icons.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions assets/img/icons/apple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/icons/overcast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/icons/pocketcasts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/icons/podcastaddict.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/icons/spotify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/icons/tunein.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion collections/_welcome/ceo-letter.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
url: img/content/kerri-hoffman-speaking.jpg
alt: Kerri Hoffman speaking at a conference while holding a PRX branded note card.
audio:
url:
url: https://dovetail.prxu.org/9003/772f1c0e-9be0-4f68-99a6-53f8f3fb9c76/CEO_message_Dec_2024_diversity.mp3
title: Listen to the Letter
---

Expand Down

0 comments on commit 353b5a7

Please sign in to comment.