- Implement header and footer partials for better layout - Create a full_title helper method for dynamic page titles - Update application layout to use new header and footer - Add typography styles for improved text presentation These changes enhance the overall structure of the application by introducing reusable header and footer components, which improves maintainability. The full_title helper method allows for dynamic titles across different pages, providing a consistent user experience. Additionally, typography styles have been added to improve readability and aesthetics.
17 lines
488 B
Plaintext
17 lines
488 B
Plaintext
<% provide(:title, "Home") %>
|
|
<div class="center jumbotron">
|
|
<h1>Welcome to the Sample App</h1>
|
|
<h2>
|
|
This is the home page for the
|
|
<a href="https://www.railstutorial.org">Ruby on Rails Tutorial</a>
|
|
Sample application.
|
|
</h2>
|
|
|
|
<%= link_to "Sing up now!", '#', class:"btn btn-lg btn-primary" %>
|
|
</div>
|
|
<%= link_to image_tag("rails.svg", alt:"Rails logo", width: "200"),
|
|
"https://rubyonrails.org/" %>
|
|
<%#= link_to image_tag("kitten.jpg", alt:"Kitten", width:"200") %>
|
|
|
|
|