Merge pull request #245 from gopesht/add_styling_to_splash

Add styling to splash
This commit is contained in:
James Mason 2014-06-16 11:59:41 -07:00
commit f3a4200c14
3 changed files with 48 additions and 40 deletions

View file

@ -92,16 +92,23 @@ body {
padding-bottom: 20px; padding-bottom: 20px;
} }
#location{ #venue-banner-disp{
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
width: 100%; width: 100%;
min-height: 500px;
background-size: cover; background-size: cover;
-webkit-background-size:cover; -webkit-background-size:cover;
} }
#venue-banner-disp.with-background{
min-height: 500px;
}
#location li{ #venue-banner-disp li{
display: inline-block; display: inline-block;
margin-right: 2em; margin-right: 2em;
} }
.pad{
padding-top: 35px;
padding-bottom: 35px;
}

View file

@ -3,6 +3,7 @@
%a{ href: '#location' } Location %a{ href: '#location' } Location
%div#venue-banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" unless @conference.venue.photo.blank?), class:('with-background' unless @conference.venue.photo.blank?) }
%div.container.text-center %div.container.text-center
.div.row.col-md-12 .div.row.col-md-12
- unless @conference.venue.name.blank? - unless @conference.venue.name.blank?
@ -23,14 +24,3 @@
%li %li
%b %b
= link_to 'Visit Venue Website', @conference.venue.website, target: '_blank' = link_to 'Visit Venue Website', @conference.venue.website, target: '_blank'
- unless @conference.venue.photo.blank?
:javascript
$(document).ready(function(){
var photo = "#{@conference.venue.photo}";
if(photo)
{
$('#location').css('background-image', 'url('+photo+')');
}
});

View file

@ -3,20 +3,31 @@
- unless @conference.description.blank? - unless @conference.description.blank?
%p= @conference.description %p= @conference.description
%div#program %section{ id: 'program' }
.pad
= render 'program' = render 'program'
%div#registration
%section{ id: 'registration' }
.pad
= render 'registration' = render 'registration'
-unless @conference.call_for_papers.blank? -unless @conference.call_for_papers.blank?
%div#callforpapers %section{ id:'callforpapers' }
.pad
= render 'call_for_papers' = render 'call_for_papers'
-unless @conference.venue.blank? -unless @conference.venue.blank?
%div#location %section{ id: 'location' }
.pad
= render 'location' = render 'location'
- if @conference.venue - if @conference.venue
- unless @conference.venue.lodgings.empty? - unless @conference.venue.lodgings.empty?
= render 'lodging' = render 'lodging'
%div#sponsors
%section{ id: 'sponsors' }
.pad
= render 'sponsor' = render 'sponsor'
%div#social-media
%section{ id: 'social-media' }
.pad
= render 'social_media' = render 'social_media'