diff --git a/public/css/podcast_player.css b/public/css/podcast_player.css index 1d0cd79a..b6707772 100644 --- a/public/css/podcast_player.css +++ b/public/css/podcast_player.css @@ -1,5 +1,6 @@ .player { - border: 1px solid #8d8d8d; + inset: 0; + border: 1px solid #d7d7d7; background-color: white; margin-bottom: 20px; max-width: 800px; @@ -7,6 +8,7 @@ color: #8d8d8d; position: relative; } + .player:after { content: ""; display: table; @@ -18,6 +20,7 @@ padding: 10px; border-bottom: 1px solid #8d8d8d; } + .meta-container .podcast-title { font-size: 20px; font-weight: 400; @@ -34,6 +37,7 @@ font-family: "Raleway", sans-serif; font-weight: 600; } + .branding span { font-size: 0.85em; } @@ -47,11 +51,15 @@ padding: 20px; display: inline-block; } + .time-container:after { content: ""; display: table; - clear: both; } -.time-container .current-time, .time-container .duration { + clear: both; +} + +.time-container .current-time, +.time-container .duration { display: inline-block; margin: 0 5px; } @@ -62,14 +70,17 @@ @media screen and (max-width: 39.9375em) { .player img.album-art { width: 30%; - float:left; + float: left; } + .meta-container { padding: 10px 20px; } + .podcast-description { display: inline-block; } + .time-container { width: 100%; } @@ -82,17 +93,21 @@ .player img.album-art { width: 160px; height: 160px; - float:left; + float: left; } + .meta-container { width: calc(100% - 160px) } + .meta-container .podcast-title { max-width: calc(100% - 150px); } + .podcast-description { display: none; } + .time-container { width: calc(100% - 160px) } @@ -113,13 +128,16 @@ vertical-align: middle; background-color: #8d8d8d; } + .amplitude-song-played-progress { width: calc(100% - 210px); } + .amplitude-play-pause.amplitude-paused { background: url("../images/podcast_player/play.svg"); background-size: cover; } + .amplitude-play-pause.amplitude-playing { background: url("../images/podcast_player/pause.svg"); background-size: cover; @@ -133,11 +151,13 @@ width: 100%; border-top: 1px solid #8d8d8d; } + .branding { font-size: 20px; } } + /* Large Player Only */ @@ -145,6 +165,7 @@ .meta-container { width: calc(100% - 160px); } + progress.amplitude-podcast-played-progress { width: 60%; } @@ -191,11 +212,71 @@ progress[value]::-webkit-progress-value { width: 100%; max-width: 100%; } - img.album-art, .meta-container, .branding, .podcast-description { + + img.album-art, + .meta-container, + .branding, + .podcast-description { display: none; } + .time-container { width: 100%; } } + +/* Site embed size player */ +@media (min-width: 500px) and (max-height: 121px) and (min-height: 119px) { + .player { + width: 100%; + max-width: 100%; + max-height: 100%; + border: 0; + } + + .player img.album-art { + height: 120px; + width: 120px; + float: left; + inset: 0; + border: 1px solid rgba(0, 0, 0, 0.075); + } + + img.album-art, + .meta-container { + display: inline-block; + inset: 0; + border-right: 1px solid rgba(0, 0, 0, 0.075); + } + + .branding, + .podcast-description { + display: none; + } + + .meta-container, + .time-container { + width: calc(100% - 120px); + padding: 18px; + float: right; + } + + .meta-container { + padding: 9px; + border-top: 1px solid #d7d7d7; + border-bottom: 1px solid rgb(233, 233, 233); + display: block; + + div.podcast-title { + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + + .time-container { + border-bottom: 1px solid #d7d7d7; + } +} \ No newline at end of file diff --git a/sass/main.scss b/sass/main.scss index b5f049af..de7514b8 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -136,6 +136,7 @@ footer { } } } + // User page styling. .user-img { //border: #e1e1e1 7px solid; @@ -190,12 +191,13 @@ footer { } .uryplayer-podcast-embed { - height: 75px; - width: 500px; + height: 120px; max-width: 100%; } + .uryplayer-podcast-code { - height: 70px; + resize: vertical; + min-height: 2em; width: 100%; } @@ -245,6 +247,7 @@ footer { // Responsive: Portrait tablets and up @media screen and (min-width: 768px) { + // Remove the padding we set earlier .header { padding-right: 0; @@ -357,8 +360,17 @@ footer { font-size: 0.8em; } -.podcast.card { +.podcast-card { + background: #FCFCFC; color: #555; + border-radius: 1em; + overflow: hidden; +} + +// Podcasts list page +.podcast-list-img { + border-radius: 0.4rem; + overflow: hidden; } // Styling for responsive map @@ -398,21 +410,23 @@ body { flex-direction: column; } -.mainPageGrowingSpacer{ +.mainPageGrowingSpacer { flex-grow: 1; background-color: $off-white-color; } -.container-padded{ +.container-padded { border-bottom: 2rem solid transparent; margin-top: -2rem; border-radius: $border-curve-radius $border-curve-radius 0 0; padding-top: 2rem; } -.pageTitleImage{ + +.pageTitleImage { max-inline-size: 90%; max-height: 15rem; } + .teams-banner { background: url("/images/drone-banner.jpg") center center no-repeat; background-size: cover; @@ -426,4 +440,4 @@ body { // Remove the height of the nav bar roughly 60px padding: calc(5em + 60px) 0 5em; } -} +} \ No newline at end of file diff --git a/views/podcast.tmpl b/views/podcast.tmpl index 886f0336..7fca0ba4 100644 --- a/views/podcast.tmpl +++ b/views/podcast.tmpl @@ -1,4 +1,5 @@ -{{define "title"}}{{.PageContext.ShortName}} | {{.PageContext.ODName}} | {{with .PageData}} {{.Podcast.Title}} {{end}} Podcast {{end}} +{{define "title"}}{{.PageContext.ShortName}} | {{.PageContext.ODName}} | {{with .PageData}} {{.Podcast.Title}} {{end}} +Podcast {{end}} {{define "open-graph"}} @@ -9,115 +10,109 @@ {{if .PageData.Podcast.Photo}} {{else}} - + {{end}} - + {{end}} {{define "content"}} -
-
- + - {{with .PageData}} -
-
-
-
- {{.Podcast.Title}} Logo -
-
-

{{.Podcast.Title}}

- {{if .Podcast.Show}} -

- Brought to you by - - {{.Podcast.Show.Title}} - -

- {{end}} -
{{.Podcast.Time.Format "Monday, _2 Jan 2006"}}
-
- -
-

Description

-

{{html .Podcast.Description}}

-
- {{end}} -
-
- Embed Podcast: - -
- +
+
+

{{.Podcast.Title}}

+ {{if .Podcast.Show}} +

+ Brought to you by + + {{.Podcast.Show.Title}} + +

+ {{end}} +
{{.Podcast.Time.Format "Monday, _2 Jan 2006"}}
+
+

Description

+

{{html .Podcast.Description}}

+
+ {{end}} +
+
+ Embed Podcast: + +
+
-
-
-
-
-
-

Embed this podcast...

-
-
-

Want to put our podcast on your blog or website? Just copy the HTML code below...

- +
+

If you want to put our podcast on your blog or website, just copy the HTML code below...

+
+
{{end}} {{define "footer-scripts"}} {{end}} diff --git a/views/podcasts.tmpl b/views/podcasts.tmpl index 90f8656e..66585d2a 100644 --- a/views/podcasts.tmpl +++ b/views/podcasts.tmpl @@ -2,34 +2,29 @@ {{define "content"}} -
- +
+
+
+
+ + +

The power of podcasts in the palm of your hand.

+
+
+
{{with .PageData}}