Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,28 @@
color: $color-white;
padding: 0.25rem 0.5rem;
}

.home-search {
background-color: $color-grey-light;
z-index: 100;
position: relative;
.container {

}
h2 {
@include media-breakpoint-up(md) {
text-align: right;
}
}
form {
max-width: 455px;
}
}

.home-search__wrapper {

@include media-breakpoint-up(md) {
display: flex;
justify-content: center;
}
}
19 changes: 19 additions & 0 deletions app/views/funds/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@
</div>
</div>
</div>
<div class="home-search py-5">
<div class="container text-center">
<div class="row">
<div class="home-search__wrapper">

<h2 class="h1 extra-bold mb-4 me-3 mt-3">Find a fund</h2>

<%= form_tag search_funds_path, method: :get, class: "mb-4 mt-3" do %>
<label for="query" class="ps-3 mb-2 visually-hidden">Fund name</label>
<div class="input-group rounded-input-group">
<%= text_field_tag :query, params[:query], class: "form-control form-control-lg", placeholder: "eg. Django" %>
<button type="submit" class="btn btn-lg btn-danger pe-4">Search</button>
</div>
</div>
</div>
</div>
</div>

<% end %>
<div class="container">

<div class="row my-5">
Expand Down