Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <% provide(:title, "Home") %>
  2. <div class="center jumbotron">
  3. <h1>Welcome to the Sample App</h1>
  4.  
  5. <h2>
  6. This is the home page for the
  7. <a href="http://www.railstutorial.org/">Ruby on Rails Tutorial</a>
  8. sample application.
  9. </h2>
  10.  
  11. <%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
  12. </div>
  13.  
  14. <%= link_to image_tag("rails.png", alt: "Rails logo"),
  15. 'http://rubyonrails.org/' %>
  16.  
  17.  
  18. <br/><br/>
  19.  
  20. <%= link_to image_tag("bunratty.png", alt: "Bunratty"),
  21. 'http://rubyonrails.org/' %>
  22. <%= link_to image_tag("kitten.png", alt: "Kitten"),
  23. 'http://rubyonrails.org/' %>
  24. <%= image_tag image_url('rails.png') %>
  25. <%= image_tag image_path('rails.png') %>
  26. Display using html
  27. <img src="/public/rails.png" alt="rails logo"/>
  28.  
  29. gem 'rails', '5.0.1'
  30. gem 'bootstrap-sass', '3.3.6'
  31.  
  32. @import "bootstrap-sprockets";
  33. @import "bootstrap";
  34.  
  35. /* universal */
  36.  
  37. body {
  38. padding-top: 60px;
  39. background-color:lime;
  40. }
  41.  
  42. section {
  43. overflow: auto;
  44. }
  45.  
  46. textarea {
  47. resize: vertical;
  48. }
  49.  
  50. .center {
  51. text-align: center;
  52. }
  53.  
  54. .center h1 {
  55. margin-bottom: 10px;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement