Skip to content

Commit

Permalink
Merge pull request #70 from Yaronkr/addchildbutton
Browse files Browse the repository at this point in the history
Addchildbutton
  • Loading branch information
Yaronkr committed Jun 17, 2022
2 parents 2f9ac22 + 93bba6a commit 3ad6f27
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
13 changes: 13 additions & 0 deletions app/assets/stylesheets/pages/_childcares-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
top: 0;
}

.reminder {
margin: 16px 16px 0 16px;
border-radius: 10px;
background-color: #FFFFFF;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
padding: 16px;
h4 {
font-size: 20px;
color: #325288;
font-weight: 500;
text-align: center;
}
}
// body {
// background-color: #FAEEE7;
// }
9 changes: 5 additions & 4 deletions app/views/childcares/_info_window.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<figure><img img src='<%= childcare.photos.first.url if childcare.photos.attached? %>' alt="childcare" /></figure>
<% end %>
</div>
<div class="mx-2 my-2">
<h6><%= link_to childcare.name, childcare_path(childcare) %></h6>
<p><%= childcare.address %></p>
</div>

<div class="mx-2 my-2">
<h6><%= link_to childcare.name, childcare_path(childcare) %></h6>
<p><%= childcare.address %></p>
</div>
</div>
6 changes: 6 additions & 0 deletions app/views/childcares/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<div class="d-flex justify-content-between " style="background-color: #FAEEE7;">
<div>
<div class="reminder d-flex justify-content-start align-items-center">
<h4 class="mx-3">Add your child's profile and start application now !</h4>
<%= link_to "GO", user_path(current_user), class: "button-primary" %>
</div>
<div class="childcares-small-cards">
<% $childcares.each do |childcare| %>
<%= render 'shared/childcare_small card', childcare: childcare %>
<% end %>
</div>
</div>

<div id="map"
data-controller="mapbox"
Expand Down

0 comments on commit 3ad6f27

Please sign in to comment.