Skip to content
Snippets Groups Projects
Commit c7863f27 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

ufc panel redesign

parent 7970f462
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -4,7 +4,7 @@ var img=null; ...@@ -4,7 +4,7 @@ var img=null;
var titleDiv=null; var titleDiv=null;
var zeitDiv=null; var zeitDiv=null;
this.loaded=function(panel,config) { this.loaded=function(panel,config) {
img = $(panel).find("#image img"); img = $(panel).find("#background");
titleDiv=$(panel).find("#title span"); titleDiv=$(panel).find("#title span");
zeitDiv=$(panel).find("#zeit span"); zeitDiv=$(panel).find("#zeit span");
$.ajax("panels/ufc/semester.json",{ $.ajax("panels/ufc/semester.json",{
...@@ -53,7 +53,9 @@ this.show=function() { ...@@ -53,7 +53,9 @@ this.show=function() {
break; break;
} }
} }
img.attr("src","https://ufc.tu-dortmund.de" + nextMovie.movie.image_url_medium );
img.css("backgroundImage", "url(https://ufc.tu-dortmund.de" + nextMovie.movie.image_url_medium + ")");
//img.attr("src","https://ufc.tu-dortmund.de" + nextMovie.movie.image_url_medium );
titleDiv.text(nextMovie.title); titleDiv.text(nextMovie.title);
var d = new Date(nextMovie.date); var d = new Date(nextMovie.date);
var tag = d.getDate(); var tag = d.getDate();
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
} }
#zeit{ #zeit{
height:10%; height:10%;
color:white;
} }
#image img { #image img {
height: 100%; height: 100%;
...@@ -15,21 +14,37 @@ ...@@ -15,21 +14,37 @@
width:auto; width:auto;
border: solid black 1px; border: solid black 1px;
} }
#zeit, #title{
}
#zeit span { #zeit span {
background:#b00; background:#b00;
display:inline-block; display:inline-block;
padding: 3px; padding: 3px;
} }
#background {
* {
box-sizing:border-box;
}
#container {
position:relative;
height:100%; height:100%;
width:100%; width:100%;
background:white; }
#background {
background-size: auto 70%;
background-repeat: no-repeat;
background-position: 50% 100%;
-webkit-filter: grayscale(60%);
filter: grayscale(60%);
}
#content{
font-family:NewCicle, Verdana, Arial, sans-serif; font-family:NewCicle, Verdana, Arial, sans-serif;
text-transform: Capitalize; text-transform: Capitalize;
color:black; color:white;
}
* {
box-sizing:border-box;
} }
#background,#content {
height:100%;
width:100%;
position:absolute;
}
\ No newline at end of file
<div id="background"> <div id="container">
<!-- TODO: fallback image --> <div id="background">
<div id="zeit"><span></span></div> </div>
<div id="title"><span></span></div> <div id="content">
<div id="image"><img></div> <div id="zeit"><span></span></div>
<div id="title"><span></span></div>
</div>
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment