Another round of splash design
* Add map to splash * Reverse venue<->conference relation * Split venue address into fields * Don't go through venue for lodgings anymore
This commit is contained in:
parent
30e8ab856c
commit
cb227a0afc
55 changed files with 717 additions and 548 deletions
|
|
@ -5,55 +5,35 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h1
|
||||
Call For Papers
|
||||
- if !@conference.call_for_papers.description.blank?
|
||||
= markdown(@conference.call_for_papers.description)
|
||||
%h2
|
||||
Call for Papers
|
||||
%p.lead
|
||||
We are ready to accept your proposals for sessions!
|
||||
.row
|
||||
.col-md-6.col-md-offset-3
|
||||
%p
|
||||
- if @conference.event_types.any?
|
||||
You can submit proposals for
|
||||
= "#{event_types(@conference)}."
|
||||
- if @conference.tracks.any?
|
||||
Proposals should fit in one of the
|
||||
= "#{pluralize(@conference.tracks.count, 'track')}:"
|
||||
= "#{tracks(@conference)}."
|
||||
The submission period has begun
|
||||
%em
|
||||
= @conference.call_for_papers.start_date.strftime('%A, %B %-d. %Y')
|
||||
and closes
|
||||
%em
|
||||
= @conference.call_for_papers.end_date.strftime('%A, %B %-d. %Y.')
|
||||
That means you have only
|
||||
- days = (@conference.call_for_papers.end_date - Date.today).to_i
|
||||
%b
|
||||
= pluralize(days, 'days')
|
||||
left!
|
||||
Remember
|
||||
= @conference.short_title
|
||||
will only be as good as the sessions you present. Submit early, submit often!
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
.lead
|
||||
= link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank'
|
||||
- if !@conference.call_for_papers.start_date.blank? && !@conference.call_for_papers.end_date.blank?
|
||||
%p
|
||||
Proposals will be accepted between
|
||||
%p#cfp-date
|
||||
= date_string(@conference.call_for_papers.start_date, @conference.call_for_papers.end_date)
|
||||
.row
|
||||
.col-md-8.col-md-offset-3.text-center
|
||||
%div.col-md-2.timer-box
|
||||
%h2#days
|
||||
.lead Days
|
||||
%div.col-md-2.timer-box
|
||||
%h2#hours
|
||||
.lead Hours
|
||||
%div.col-md-2.timer-box
|
||||
%h2#minutes
|
||||
.lead Minutes
|
||||
%div.col-md-2.timer-box
|
||||
%h2#seconds
|
||||
.lead Seconds
|
||||
|
||||
:javascript
|
||||
$( document ).ready(function(){
|
||||
var target_date = new Date("#{@conference.call_for_papers.end_date}").getTime();
|
||||
if(target_date > new Date().getTime())
|
||||
var days, hours, minutes, seconds;
|
||||
setInterval(function () {
|
||||
var current_date = new Date().getTime();
|
||||
var seconds_left = (target_date - current_date) / 1000;
|
||||
days = parseInt(seconds_left / 86400);
|
||||
seconds_left = seconds_left % 86400;
|
||||
|
||||
hours = parseInt(seconds_left / 3600);
|
||||
seconds_left = seconds_left % 3600;
|
||||
|
||||
minutes = parseInt(seconds_left / 60);
|
||||
seconds = parseInt(seconds_left % 60);
|
||||
|
||||
$('#days').text(days);
|
||||
$('#hours').text(hours);
|
||||
$('#minutes').text(minutes);
|
||||
$('#seconds').text(seconds);
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
%p.cta-button
|
||||
= link_to "Submit your paper now", conference_proposal_index_path(@conference.short_title), class: 'btn btn-success btn-lg text-center'
|
||||
Loading…
Add table
Add a link
Reference in a new issue