mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-04-13 08:49:13 +00:00
fixed contacts and added a scrollable feature
This commit is contained in:
parent
56c5278624
commit
2a4d10b590
BIN
app/assets/images/favicon.ico
Normal file
BIN
app/assets/images/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
@ -123,3 +123,31 @@ a:hover {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.contact {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.contacts {
|
||||
height: 570px;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="container">
|
||||
<div class="contacts-container text-color">
|
||||
<div class="contacts half">
|
||||
<h2>Contacts</h2>
|
||||
<h2 class="contact">Contacts</h2>
|
||||
<% current_user.contacts.each do |contact| %>
|
||||
<%= render "pages/contact", contact: contact %>
|
||||
<% end %>
|
||||
|
10
app/views/pages/new.html.erb
Normal file
10
app/views/pages/new.html.erb
Normal file
@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@page) do |p| %>
|
||||
|
||||
<%= p.input :first_name, as: :text, input_html: { autocomplete: "off" } %>
|
||||
<%= p.input :last_name, as: :text, input_html: { autocomplete: "off" } %>
|
||||
<%= p.input :email, as: :text, input_html: { autocomplete: "off" } %>
|
||||
<%= p.input :photo %>
|
||||
<%= p.input :photo_cache, as: :hidden %>
|
||||
|
||||
<%= p.button :submit, class: "btn btn-primary" %>
|
||||
<% end %>
|
Loading…
x
Reference in New Issue
Block a user