diff --git a/app/assets/images/favicon.ico b/app/assets/images/favicon.ico new file mode 100644 index 0000000..0cc6ed3 Binary files /dev/null and b/app/assets/images/favicon.ico differ diff --git a/app/assets/stylesheets/pages/_contacts.scss b/app/assets/stylesheets/pages/_contacts.scss index b1de415..816a19e 100644 --- a/app/assets/stylesheets/pages/_contacts.scss +++ b/app/assets/stylesheets/pages/_contacts.scss @@ -123,3 +123,31 @@ a:hover { justify-content: center; align-items: center; } + + + + + +.contact { + color: white; +} + +.contacts { + height: 570px; + overflow: scroll; +} + + + + + + + + + + + + + + + diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb index a7c5547..3338a41 100644 --- a/app/views/pages/index.html.erb +++ b/app/views/pages/index.html.erb @@ -1,7 +1,7 @@
-

Contacts

+

Contacts

<% current_user.contacts.each do |contact| %> <%= render "pages/contact", contact: contact %> <% end %> diff --git a/app/views/pages/new.html.erb b/app/views/pages/new.html.erb new file mode 100644 index 0000000..55c5058 --- /dev/null +++ b/app/views/pages/new.html.erb @@ -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 %>