forked from External/greenlight
		
	header layout
This commit is contained in:
		| @@ -10,8 +10,8 @@ | |||||||
|  * files in this directory. Styles in this file should be added after the last require_* statement. |  * files in this directory. Styles in this file should be added after the last require_* statement. | ||||||
|  * It is generally better to create a new file per style scope. |  * It is generally better to create a new file per style scope. | ||||||
|  * |  * | ||||||
|  *= require_tree . |  | ||||||
|  *= require jquery-ui |  *= require jquery-ui | ||||||
|  *= require dataTables/jquery.dataTables |  *= require dataTables/jquery.dataTables | ||||||
|  |  *= require_tree . | ||||||
|  *= require_self |  *= require_self | ||||||
|  */ |  */ | ||||||
|   | |||||||
							
								
								
									
										57
									
								
								app/assets/stylesheets/shared.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								app/assets/stylesheets/shared.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | |||||||
|  | @import "bootstrap-sprockets"; | ||||||
|  | @import "bootstrap"; | ||||||
|  | @import "bootstrap-social"; | ||||||
|  | @import "font-awesome"; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | html, body { | ||||||
|  |   width: 100%; | ||||||
|  |   height: 100%; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .header { | ||||||
|  |   margin: 20px 40px; | ||||||
|  |  | ||||||
|  |   .logo { | ||||||
|  |     max-width: 150px; | ||||||
|  |     max-height: 50px; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .footer { | ||||||
|  |   margin: 20px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .page-header { | ||||||
|  |   margin-top: 60px; | ||||||
|  |   border: 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .vertical-center { | ||||||
|  |   display: inline-block; | ||||||
|  |   vertical-align: middle; | ||||||
|  |   float: none; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .content-box { | ||||||
|  |   .center-block { | ||||||
|  |     float: none; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   .input-spacing { | ||||||
|  |     margin-top: 15px; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   .panel-footer { | ||||||
|  |     padding: 35px; | ||||||
|  |     background-color: white; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   .panel-body { | ||||||
|  |     padding-bottom: 40px; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   .title-wrapper { | ||||||
|  |     margin-bottom: 30px; | ||||||
|  |   } | ||||||
|  | } | ||||||
| @@ -14,12 +14,41 @@ | |||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
|     <!-- Header --> |     <!-- Header --> | ||||||
|     <div class='navbar'> |     <div class='header'> | ||||||
|       <div class='container'> |       <span class="logo-wrapper pull-left"> | ||||||
|         <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton Demo", :class => "center-block"), root_path %> |         <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton Demo", :class => "logo"), root_path %> | ||||||
|       </div> |       </span> | ||||||
|  |       <span class="signup pull-right"> | ||||||
|  |         <% if current_user %> | ||||||
|  |           <%= current_user.name %> | | ||||||
|  |           <% if current_user.username %> | ||||||
|  |             <%= link_to 'my room', current_user.room_url %> | | ||||||
|  |           <% else %> | ||||||
|  |             <%= link_to 'my room', edit_user_path(current_user) %> | | ||||||
|  |           <% end %> | ||||||
|  |           <%= link_to 'logout', user_logout_url %> | ||||||
|  |         <% elsif @user %> | ||||||
|  |           Are you <%= @user.username %> ? | | ||||||
|  |           <%= link_to 'login', "/auth/#{@user.provider}" %> | ||||||
|  |         <% else %> | ||||||
|  |           Signup for customized sessions | ||||||
|  |           <%= link_to('/auth/twitter', :class => "btn icon btn-lg btn-social-icon btn-twitter") do %> | ||||||
|  |             <span class="fa fa-twitter"></span> | ||||||
|  |           <% end %> | ||||||
|  |           <%= link_to('/auth/google', :class => "btn icon btn-lg btn-social-icon btn-google") do %> | ||||||
|  |             <span class="fa fa-google"></span> | ||||||
|  |           <% end %> | ||||||
|  |         <% end %> | ||||||
|  |       </span> | ||||||
|     </div> |     </div> | ||||||
|  |     <!-- End of Header --> | ||||||
|  |  | ||||||
|     <%= yield %> |     <%= yield %> | ||||||
|  |  | ||||||
|  |     <!-- Footer --> | ||||||
|  |     <div class='footer text-center'> | ||||||
|  |       Powered by BigBlueButton | ||||||
|  |     </div> | ||||||
|  |     <!-- End of Footer --> | ||||||
|   </body> |   </body> | ||||||
| </html> | </html> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user