def get_context_data(self, **kwargs):
context = super(Home, self).get_context_data(**kwargs)
- context['emissions'] = Emission.objects.filter(archived=False).order_by('-creation_timestamp')[:3]
+ context['emissions'] = Emission.objects.filter(archived=False).order_by('?') #-creation_timestamp')[:3]
context['newsitems'] = NewsItem.objects.exclude(date__gt=date.today()).order_by('-date')[:3]
context['soundfiles'] = SoundFile.objects.prefetch_related('episode__emission__categories').filter(
cursor:pointer ;
background:none;
}
-img {max-width:100%;}
+img {max-width:100%; max-height: 100%;}
img.logo{border:2px solid black;}
header{
#metaNav ul li#nav-language {
padding: 0.2em 0 0 1em;
}
- div#Changing {
- margin: 0 5px;
- }
}
@media screen and (max-width:400px){
#metaNav ul li#nav-language {
}
#mainHeader {
padding-bottom:1em;
+ display: inline-block;
}
-#mainHeader {
- font-size:70%;
+#Player {
+ display: inline-block;
+ min-width: 350px
}
+
#mainHeader *{color:black !important;line-height:1em;}
-#mainHeader #radioPanik{}
#Panik img{display:block;margin:auto;max-height:200px;}
#mainHeader h1{
}
@media screen and (max-width: 760px) {
+ #mainHeader {
+ display: block;
+ }
#All h1.top {
font-size: 60px;
- padding: 0;
- padding-top: 10px;
- text-align: center;
- }
- #specialHome .leftPart h1.top {
- display: none;
- }
- #specialHome .leftPart h2 {
- padding-top: 10px;
text-align: center;
}
}
@media screen and (min-width: 760px) {
#Commons {
- float: left;
- width: 50%;
- position: fixed;
box-sizing: border-box;
padding: 0 20px;
}
#Changing {
- position: relative;
- float: right;
- width: 50%;
box-sizing: border-box;
- padding: 0 20px;
+ padding: 0;
}
#All h1.top {
- font-size: 120px;
text-transform: uppercase;
padding-left: 0;
- padding-top: 40px;
- padding-bottom: 0;
+ padding-top: 20px;
+ padding-bottom: 20px;
+ text-align: center;
}
#metaNav {
}
#All #backgroundBox h1.top {
- font-size: 50px;
+ font-size: 20px;
padding-left: 10px;
- width: 200%;
+ width: 350px;
}
#backgroundBox h1 {
}
#All h1.top#radiopanik {
- padding-top: 0;
- color: black !important;
- padding-bottom: 30px;
- height: 130px;
+ padding-top: 36px;
+ background: pink;
}
#All #backgroundBox h1 {
/****************************************************/
/*#Home #player{ float: left; } */
-#player-container,
- #player-container *{border-color:white !important;color:white !important;}
-
#player-container .metas, #player-container img{border-color:#fff;}
#player-container .padded{padding:0.3em;}
float:right;
}
#DirectStreamPanikControler {
- display:inline !important;
}
+#DirectStreamPanikControler div.label {
+ margin-top: -10px;
+}
+
#chatSymbol,
#streamSymbol{
font-size:3em;
float:left;
- margin-right:5px;
+ margin-right:15px;
position: relative;
z-index: 10;
top: -6px;
}
#Player {
+ padding-top: 36px;
padding-left: 8px;
}
#player #CurrentlyPlaying,
#player-container #Playlist ol{
opacity:0.9;
- padding-top:0.2em;
height:auto;
overflow: hidden;
}
@media screen and (max-width: 760px) {
#backgroundBox {
background-position: center 30px;
- background-size: 130px;
}
#All h1.top#radiopanik {
- height: 80px;
}
#Player{
margin-top:1em;
}
#Main{
- max-width: 800px;
flex-grow: 1;
position: relative;
z-index: 1;
min-height:0;
}
#Changing a:hover,#Changing button:hover {
- opacity:0.6;
text-decoration:none;
}
/* GLOBAL SITE NAV */
user-select: none;
cursor: default;
}
+
+div.emission-tile {
+ background: $primary;
+ position: relative;
+ box-sizing: border-box;
+ width: 25%;
+ height: 25vw;
+ @media screen and (max-width: 760px) {
+ width: 50%;
+ height: 50vw;
+ }
+ float: left;
+ &:hover img {
+ display: none;
+ }
+ div.image {
+ //filter: grayscale(100%);
+ border: none;
+ height: 100%;
+ width: 100%;
+ img {
+ width: 100%;
+ height: 100%;
+ }
+ }
+ div.name {
+ position: absolute;
+ text-transform: uppercase;
+ top: 50%;
+ margin-top: -10px;
+ font-size: 20px;
+ text-align: center;
+ width: 100%;
+ span {
+ background: $primary;
+ padding: 5px 20px;
+ }
+ }
+}
<body {% block bodyattr %}id="{{sectionName}}" class="section-{{sectionName}}"{% endblock %}>
<div id="All">
- <div id="Commons" class="cf" >
- <div class="wrapper sided" >
- <div id="backgroundBox" class="cf">
+ <div id="Commons" >
+ <div class="sided" >
+ <div id="backgroundBox">
<a href="{% url 'home' %}" id="mainHeader"><div>
<h1 class="top" id="radiopanik">Radio Esperanzah! - 106.2 FM</h1>
</div></a>
</div>
</div>
</div>
- <div id="Changing" class="cf" data-section="{{ sectionName }}">
+ <div id="Changing" data-section="{{ sectionName }}">
{% block toptitle %}{% endblock %}
- <div id="Nav" class="cf" >
+ <div id="Nav">
{% block nav %}{% endblock %}
</div>
- <div id="Main" class="cf">
+ <div id="Main">
{% block main %}{% endblock %}
</div>
- <div id="Related" class="cf">
+ <div id="Related">
{% block related %}{% endblock %}
</div>
<div id="Footer">
- <nav class="wrapper">
+ <nav class="">
</nav>
</div>
</div>
{% extends "base.html" %}
-{% load paniktags staticfiles i18n %}
+{% load paniktags staticfiles i18n thumbnail %}
{% block bodyID %}Home{% endblock %}
{% block title %}{% trans 'Home' %}{% endblock %}
{% block main %}
-<div class="wrapper navigation" id="specialHome">
+<div class="" id="specialHome">
<div>
<h1 class="top">Radio Esperanzah! 2017</h1>
+ {% spaceless %}
+ {% for emission in emissions %}
+ <a href="{% url 'emission-view' slug=emission.slug %}">
+ <div class="emission-tile">
+ <div class="image">
+ {% thumbnail emission.image "400x400" crop="50% 50%" as im %}
+ <img src="{{im.url}}">
+ {% endthumbnail %}
+ </div>
+ <div class="name"><span>{{emission.title}}</span></div>
+ </div>
+ </a>
+ {% endfor %}
+ {% endspaceless %}
+
{% if newsitems %}
<div id="recent-news">
<span class="button" id="DirectStreamPanikControler">
<div id="streamSymbol" class="icon-volume-up resymbol"></div>
<div class="label">{% trans 'live' %}</div>
- </span>
<div id="CurrentlyPlaying">
<span id="WhatsOnAir"></span>
<button class="icon-refresh" id="RefreshWhatsOnAir"></button>
</div>
+ </span>
<div id="CurrentlyChatting" style="display: none;">
<a href=""><div id="chatSymbol" class="icon-comments control"></div>
<div class="label">CHAT</div></a>