added some styling from bootstrap5

This commit is contained in:
Kris
2024-02-03 09:04:38 -05:00
parent 2f398caa90
commit f2fee7965a
6 changed files with 26 additions and 21 deletions

View File

@@ -11,6 +11,14 @@
</head> </head>
<body> <body>
<%= yield %>
<nav class="navbar bg-dark border-bottom border-body" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Default</a>
</div>
</nav>
<div class="container-fluid">
<%= yield %>
</div><!--div-->
</body> </body>
</html> </html>

View File

@@ -22,11 +22,11 @@
</div> </div>
<div> <div>
<%= form.label :sent, style: "display: block" %> <%# form.label :sent, style: "display: block" %>
<%= form.check_box :sent %> <%# form.check_box :sent %>
</div> </div>
<div> <div>
<%= form.submit %> <%= form.submit "Send Suggestion", class: "btn btn-primary" %>
</div> </div>
<% end %> <% end %>

View File

@@ -1,17 +1,14 @@
<div id="<%= dom_id suggestion %>"> <div class="card" style="width: 18rem;">
<p> <div id="<%= dom_id suggestion %>" class="card-body">
<strong>Subject:</strong>
<%= suggestion.subject %> <h5 class="card-title"><%= suggestion.subject %></h5>
</p>
<p> <p class="card-text">
<strong>Body:</strong> <%= suggestion.body %>
<%= suggestion.body %> </p>
</p>
<p>
<strong>Sent:</strong>
<%= suggestion.sent %>
</p>
</div>
</div>
</div>
</div>

View File

@@ -11,4 +11,4 @@
<% end %> <% end %>
</div> </div>
<%= link_to "New suggestion", new_suggestion_path %> <%= link_to "New suggestion", new_suggestion_path, class: "btn btn-primary" %>

View File

@@ -5,5 +5,5 @@
<br> <br>
<div> <div>
<%= link_to "Back to suggestions", suggestions_path %> <%= link_to "Back to suggestions", suggestions_path, class: "btn" %>
</div> </div>

View File

@@ -7,5 +7,5 @@ Rails.application.routes.draw do
get "up" => "rails/health#show", as: :rails_health_check get "up" => "rails/health#show", as: :rails_health_check
# Defines the root path route ("/") # Defines the root path route ("/")
# root "posts#index" root "suggestions#new"
end end