Consistent design and code cleanup of splashpage elements.

* get rid of unnecessary slice()
* center up small groups of elements
* consistent text use FIXME: extract out strings
* consistent date strings
* simplified views for easier theming
This commit is contained in:
James Mason 2017-11-21 18:31:14 -08:00
parent f0c3fc357b
commit aee1f58607
7 changed files with 48 additions and 92 deletions

View file

@ -4,19 +4,23 @@
.row .row
.col-md-12.text-center .col-md-12.text-center
%h2 Booths %h2 Booths
- @conference.confirmed_booths.each_slice(3).with_index do |slice, index_for_row| .row.row-centered
.row.row-centered - @conference.confirmed_booths.each do |booth|
- slice.each.with_index do |booth, index_for_column| .col-md-4.col-sm-4.col-centered.col-top
.col-md-4.col-sm-4.col-xs-10.col-centered.col-top .thumbnail.text-center
.thumbnail - if booth.picture?
- if booth.logo_link = link_to booth.website_url,
= link_to booth.website_url, class: 'thumbnail' do class: 'thumbnail', target: '_blank' do
= image_tag booth.picture.large.url = image_tag booth.picture.large.url, alt: booth.title,
.caption class: 'img-rounded'
%h3.text-center .caption
%h3.text-center
- if booth.logo_link
= link_to booth.title, booth.website_url, target: '_blank'
-else
= booth.title = booth.title
%p.text-center.text-muted = link_to '', "#booth-detail-#{booth.id}",
= link_to "#show_description_#{index_for_row}_#{index_for_column}", "data-toggle"=>"collapse" do data: {toggle: 'collapse'}, class: 'caret',
learn more title: 'more info'
.collapse{ id: "show_description_#{index_for_row}_#{index_for_column}" } .collapse{ id: "booth-detail-#{booth.id}" }
= markdown(booth.description) = markdown(booth.description)

View file

@ -4,7 +4,7 @@
%h2 %h2
Call for Papers Call for Papers
%p.lead %p.lead
We are ready to accept your proposals for sessions! We are now accepting proposals for sessions!
%p %p
- if @conference.event_types.any? - if @conference.event_types.any?
You can submit proposals for You can submit proposals for
@ -24,14 +24,7 @@
You have You have
= pluralize(@conference.call_for_events.remaining_days, 'day') = pluralize(@conference.call_for_events.remaining_days, 'day')
left! left!
Remember
%span.notranslate
= @conference.title
will only be as good as the sessions you present.
Submit early, submit often!
- else
The submission period is closed.
%p.cta-button %p.cta-button
= link_to "Submit your paper now", = link_to "Submit your proposal now",
conference_program_proposals_path(@conference.short_title), conference_program_proposals_path(@conference.short_title),
class: 'btn btn-success btn-lg text-center' class: 'btn btn-success btn-lg text-center'

View file

@ -3,8 +3,9 @@
%h2 %h2
Call for Tracks Call for Tracks
%p.lead %p.lead
We are ready to accept requests for tracks! We are now accepting custom track requests!
%p %p
Would you like to host a mini-summit, sub-conference, or hack space?
The submission period for track requests is open The submission period for track requests is open
%em.notranslate %em.notranslate
= "#{date_string(@conference.call_for_tracks.start_date, = "#{date_string(@conference.call_for_tracks.start_date,

View file

@ -6,14 +6,14 @@
%section#lodging %section#lodging
.container .container
.row .row
.col-md-12.text-centers .col-md-12.text-center
%h2 %h2
Where to stay Where to stay
- if @conference.venue - if @conference.venue
in in
= @conference.venue.city = @conference.venue.city
%p.lead %p.lead
We recommend these affordable lodging accommodations for your visit. We recommend the following accommodations for your visit.
.row.row-centered .row.row-centered
- @conference.lodgings.each do |lodging| - @conference.lodgings.each do |lodging|
@ -22,9 +22,11 @@
- if lodging.picture? - if lodging.picture?
-if lodging.website_link.present? -if lodging.website_link.present?
= link_to(lodging.website_link, class: 'thumbnail') do = link_to(lodging.website_link, class: 'thumbnail') do
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging' = image_tag lodging.picture.large.url,
class: 'img-responsive img-lodging'
- else - else
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging' = image_tag lodging.picture.large.url,
class: 'img-responsive img-lodging'
- else - else
%p.text-center %p.text-center
-if lodging.website_link.present? -if lodging.website_link.present?

View file

@ -1,40 +0,0 @@
= content_for :splash_nav do
%li
%a.smoothscroll{ href: '#callforpapers' } Call For Papers
.container
.row
.col-md-12.text-center
%h2
Call for Papers
%p.lead
We are ready to accept your proposals for sessions!
.row
.col-md-6.col-md-offset-3.col-sm-10.col-sm-offset-1
%p
- if @conference.program.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
= @program.cfp.start_date.strftime('%A, %B %-d. %Y')
and closes
%em
= @program.cfp.end_date.strftime('%A, %B %-d. %Y.')
- if @conference.cfp_open?
That means you have only
%b= pluralize(@program.cfp.remaining_days, 'day')
left!
Remember
= @conference.short_title
will only be as good as the sessions you present. Submit early, submit often!
- else
The submission period is closed.
.row
.col-md-12.text-center
%p.cta-button
= link_to "Submit your paper now", conference_proposals_path(@conference.short_title), class: 'btn btn-success btn-lg text-center'

View file

@ -19,14 +19,15 @@
= @conference.short_title = @conference.short_title
is free of charge. is free of charge.
%p %p
We only ask you to register yourself until We only ask you to register yourself before
= @conference.registration_period.end_date.strftime('%A, %B %-d. %Y') = date_string(@conference.registration_period.end_date)
so we can plan for the right amount of people. so we can plan for the right amount of people.
%p.cta-button %p.cta-button
- else - else
%p %p
The registration period ends on The registration period ends on
= @conference.registration_period.end_date.strftime('%A, %B %-d. %Y') = date_string(@conference.registration_period.end_date)
%p.cta-button %p.cta-button
= link_to(new_conference_conference_registration_path(@conference.short_title), class: 'btn btn-lg btn-success') do = link_to(new_conference_conference_registration_path(@conference.short_title),
class: 'btn btn-lg btn-success') do
Register Now Register Now

View file

@ -9,22 +9,17 @@
.col-md-12.text-center .col-md-12.text-center
%h2 %h2
Support Support
=@conference.short_title =@conference.title
%p.lead .row.row-centered
To support our event you can get these tickets - @conference.tickets.each do |ticket|
- @conference.tickets.each_slice(4) do |slice| .col-md-3.col-sm-3.col-centered.col-top
.row.row-centered %h3.text-center
- slice.each do |ticket| = ticket.title
.col-md-3.col-centered.col-top.col-sm-3 %h3.text-center
.thumbnail %i.fa.fa-ticket.fa-3x
%p.text-center = markdown(ticket.description)
%i.fa.fa-ticket.fa-5x %p.text-center
.caption = link_to conference_tickets_path(@conference.short_title),
%h3.text-center class: 'btn btn-success' do
= ticket.title Get Ticket
-if ticket.description.present? = humanized_money_with_symbol ticket.price
= markdown(ticket.description)
%p.text-center
= link_to(conference_tickets_path(@conference.short_title), class: 'btn btn-success') do
Get Ticket
= humanized_money_with_symbol ticket.price