add podcast app links for detour-vers-le-futur
authorFrédéric Péters <fpeters@0d.be>
Sun, 25 Jul 2021 13:26:05 +0000 (15:26 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 25 Jul 2021 13:26:05 +0000 (15:26 +0200)
panikweb_esperanzah/static/css/_specifics.scss
panikweb_esperanzah/templates/emissions/emission_detail.html

index df0f2bf..459fafa 100644 (file)
@@ -2427,3 +2427,40 @@ h2.top {
                margin: 0 1ex;
        }
 }
+
+.emission-text {
+       display: flex;
+       flex-direction: column;
+       justify-content: space-between;
+       min-height: 450px;
+       @media screen and (max-width:$size_m){
+               min-height: auto;
+       }
+       #subscribe-links {
+               ul, li {
+                       margin: 0;
+                       padding: 0;
+                       list-style: none;
+               }
+               ul {
+                       display: flex;
+                       flex-wrap: wrap;
+                       @media screen and (max-width:$size_m){
+                               justify-content: center;
+                       }
+               }
+               li {
+                       margin-right: 1em;
+                       margin-bottom: 1em;
+                       a {
+                               padding: 0.3em 0.6em;
+                               background: #ff8b57;
+                               color: white;
+                               border-radius: 10px;
+                               &:hover {
+                                       background: darken(#ff8b57, 20%);
+                               }
+                       }
+               }
+       }
+}
index dfc6044..c949b65 100644 (file)
                </div>
 
                <div class="emission-text">
-               {{ emission.text|safe}}
-               </div>
+                 <div>{{ emission.text|safe}}</div>
+                  {% if emission.slug == 'detour-vers-le-futur' %}
+                  <div id="subscribe-links">
+                    <ul>
+                      <li><a href="{{site_url}}{% url 'emission-podcasts' slug=emission.slug %}" class="rss">RSS</a></li>
+                      <li><a href="https://open.spotify.com/show/0AdCIyg24wKklByW4abBKg">Spotify</a></li>
+                      <li><a href="https://www.deezer.com/fr/show/2835952">Deezer</a></li>
+                      <li><a href="https://pca.st/eht3df8c">Pocket Casts</a></li>
+                      <li><a href="{{site_url|as_iptc}}{% url 'emission-podcasts' slug=emission.slug %}" class="itunes">iTunes</a></li>
+                    </ul>
+                  </div>
+                  {% endif %}
+                </div>
        </div>
        <div class="emission-episodes">
                {% for episode in all_episodes %}