Implements smoothscroll
This commit is contained in:
parent
f7a12c977b
commit
9c69abe950
10 changed files with 42 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#callforpapers' } Call For Papers
|
||||
%a.smoothscroll{ href: '#callforpapers' } Call For Papers
|
||||
|
||||
%div.container#callforpapers.text-center
|
||||
%div.row
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#location' } Location
|
||||
%a.smoothscroll{ href: '#location' } Location
|
||||
|
||||
|
||||
%div.banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" unless @conference.venue.photo.blank?), class:('with-background' unless @conference.venue.photo.blank?) }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#program' } Program
|
||||
%a.smoothscroll{ href: '#program' } Program
|
||||
|
||||
%div.container.text-center
|
||||
%div.row
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#registration' } Registration
|
||||
%a.smoothscroll{ href: '#registration' } Registration
|
||||
%div.container.text-center
|
||||
%div.row
|
||||
%h2 Registration
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#social-media' } Social Media
|
||||
%a.smoothscroll{ href: '#social-media' } Social Media
|
||||
|
||||
%div.container#social-media.text-center
|
||||
%div.row
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a{ href: '#sponsors' } Sponsors
|
||||
%a.smoothscroll{ href: '#sponsors' } Sponsors
|
||||
%div.container#sponsors.text-center
|
||||
%div.row
|
||||
%div.col-md-12
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
= brand
|
||||
.collapse.navbar-collapse
|
||||
- if content_for :splash_nav
|
||||
%ul.nav.navbar-nav
|
||||
%ul.nav.navbar-nav#splash-nav
|
||||
= content_for :splash_nav
|
||||
-if user_signed_in?
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
});
|
||||
});
|
||||
= yield(:head)
|
||||
%body
|
||||
%body{ data: (content_for?(:splash_nav) ? {spy: 'scroll', offset: 0, target: 'splash-nav'} : {} ) }
|
||||
= render 'layouts/navigation'
|
||||
-# Admin area
|
||||
- if controller.class.name.split("::").first=="Admin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue