Skip to content

Commit

Permalink
change title font
Browse files Browse the repository at this point in the history
  • Loading branch information
yujia10 committed Jun 16, 2022
1 parent 46b54e4 commit 987b062
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/pages/_show.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@
.opening-hours {
padding-right: 76px;
}

.review-title {
padding-left: 118px;
padding-bottom: 30px;
font-size: 26px;
font-weight: 700;
color:#325288;
}
4 changes: 2 additions & 2 deletions app/views/childcares/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

<div style="background-color: #FAEEE7; padding-top:2px;">
<div class="container mt-5" >
<h1 style="padding-left: 118px; padding-bottom: 30px; text-align:center;" >Google Reviews</h1>
<h1 class="review-title my-5" >Google Reviews for <%= @childcare.name %></h1>
<% unless @childcare.reviews.empty? %>
<% @childcare.reviews.each do |review| %>
<%= render 'shared/childcare_reviews', review: review %>
<% end %>
<% else %>
<p style="text-align:center;">NO GOOGLE REVIEWS</p>
<p class="me-5">NO GOOGLE REVIEWS</p>
<% end %>
</div>
</div>
8 changes: 4 additions & 4 deletions app/views/shared/_childcare_reviews.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<div class="container-sm pb-5 mx-auto width:300px">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="block w-5 h-5 text-gray-400 mb-4" style="color: #4B5563;" viewBox="0 0 975.036 975.036"><path d="M925.036 57.197h-304c-27.6 0-50 22.4-50 50v304c0 27.601 22.4 50 50 50h145.5c-1.9 79.601-20.4 143.3-55.4 191.2-27.6 37.8-69.399 69.1-125.3 93.8-25.7 11.3-36.8 41.7-24.8 67.101l36 76c11.6 24.399 40.3 35.1 65.1 24.399 66.2-28.6 122.101-64.8 167.7-108.8 55.601-53.7 93.7-114.3 114.3-181.9 20.601-67.6 30.9-159.8 30.9-276.8v-239c0-27.599-22.401-50-50-50zM106.036 913.497c65.4-28.5 121-64.699 166.9-108.6 56.1-53.7 94.4-114.1 115-181.2 20.6-67.1 30.899-159.6 30.899-277.5v-239c0-27.6-22.399-50-50-50h-304c-27.6 0-50 22.4-50 50v304c0 27.601 22.4 50 50 50h145.5c-1.9 79.601-20.4 143.3-55.4 191.2-27.6 37.8-69.4 69.1-125.3 93.8-25.7 11.3-36.8 41.7-24.8 67.101l35.9 75.8c11.601 24.399 40.501 35.2 65.301 24.399z"></path></svg>
<div class="text-left">
<p ><%= review.description %></p>
</div>
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="block w-5 h-5 text-gray-400 mb-4" style="color: #4B5563;" viewBox="0 0 975.036 975.036"><path d="M925.036 57.197h-304c-27.6 0-50 22.4-50 50v304c0 27.601 22.4 50 50 50h145.5c-1.9 79.601-20.4 143.3-55.4 191.2-27.6 37.8-69.399 69.1-125.3 93.8-25.7 11.3-36.8 41.7-24.8 67.101l36 76c11.6 24.399 40.3 35.1 65.1 24.399 66.2-28.6 122.101-64.8 167.7-108.8 55.601-53.7 93.7-114.3 114.3-181.9 20.601-67.6 30.9-159.8 30.9-276.8v-239c0-27.599-22.401-50-50-50zM106.036 913.497c65.4-28.5 121-64.699 166.9-108.6 56.1-53.7 94.4-114.1 115-181.2 20.6-67.1 30.899-159.6 30.899-277.5v-239c0-27.6-22.399-50-50-50h-304c-27.6 0-50 22.4-50 50v304c0 27.601 22.4 50 50 50h145.5c-1.9 79.601-20.4 143.3-55.4 191.2-27.6 37.8-69.4 69.1-125.3 93.8-25.7 11.3-36.8 41.7-24.8 67.101l35.9 75.8c11.601 24.399 40.501 35.2 65.301 24.399z"></path></svg>
<div class="text-left">
<p ><%= review.description %></p>
</div>
</div>
3 changes: 3 additions & 0 deletions app/views/shared/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<li class="nav-item">
<%= link_to "About", about_path, class: "nav-link tab-text" %>
</li>
<li class="nav-item">
<%= link_to "Childcares", childcares_path, class: "nav-link tab-text" %>
</li>
<% if user_signed_in? %>
<li class="nav-item">
<%= link_to "My Shortlist", shortlist_path, class: "nav-link tab-text" %>
Expand Down

0 comments on commit 987b062

Please sign in to comment.