diff --git a/app/assets/images/finanse.jpeg b/app/assets/images/finanse.jpeg new file mode 100644 index 0000000..53cd0d9 Binary files /dev/null and b/app/assets/images/finanse.jpeg differ diff --git a/app/assets/stylesheets/creative.css b/app/assets/stylesheets/creative.css index 59467c3..6dee676 100644 --- a/app/assets/stylesheets/creative.css +++ b/app/assets/stylesheets/creative.css @@ -137,8 +137,8 @@ header.title { header.masthead { padding-top: 10rem; padding-bottom: calc(10rem - 56px); - background-image: url("header.jpg"); - background-position: center center; + background-image: url("finanse.jpeg"); + /*background-position: center center;*/ -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; diff --git a/app/mailers/contact_mailer.rb b/app/mailers/contact_mailer.rb index 1eaf979..578a501 100644 --- a/app/mailers/contact_mailer.rb +++ b/app/mailers/contact_mailer.rb @@ -1,9 +1,9 @@ class ContactMailer < ApplicationMailer - default from: 'kontakt@ubezpieczenie-naleznosci.pl' + default from: 'kontakt.ubezpieczenie@gmail.com' default to: 'adhinz@gmail.com' def contact_email(contact) @contact = contact - mail(from: @contact['email'], subject: "Kontakt od: #{@contact['name']}") + mail(subject: "Kontakt ze strony ubezpieczenie-naleznosci.pl") end end diff --git a/app/views/contact_mailer/contact_email.html.erb b/app/views/contact_mailer/contact_email.html.erb index 95243ac..d6a9272 100644 --- a/app/views/contact_mailer/contact_email.html.erb +++ b/app/views/contact_mailer/contact_email.html.erb @@ -4,7 +4,9 @@ -

<%= @contact['name'] %> napisał(ła):

+ Email: <%= @contact['email'] %>
+ Imię: <%= @contact['name'] %>
+ Treść:

<%= @contact['message'] %>

diff --git a/app/views/contact_mailer/contact_email.text.erb b/app/views/contact_mailer/contact_email.text.erb index 04e7b5d..9aeaf81 100644 --- a/app/views/contact_mailer/contact_email.text.erb +++ b/app/views/contact_mailer/contact_email.text.erb @@ -1,3 +1,4 @@ -<%= @contact['name'] %> napisał(ła): - +Email: <%= @contact['email'] %> +Imię: <%= @contact['name'] %> +Treść: <%= @contact['message'] %> diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index c8c1387..a80bc65 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -2,15 +2,15 @@
-

+

 


-

+

 


-   +  

diff --git a/config/environments/development.rb b/config/environments/development.rb index b093eca..b965b80 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -31,10 +31,19 @@ Rails.application.configure do config.action_mailer.perform_caching = false - config.action_mailer.delivery_method = :sendmail + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { + address: 'smtp.gmail.com', + port: 587, + domain: 'example.com', + user_name: 'kontakt.ubezpieczenie@gmail.com', + password: 'qazxsw123', + authentication: 'plain', + enable_starttls_auto: true + } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true - config.action_mailer.default_options = {from: 'no-reply@mini-blog.xyz'} + config.action_mailer.default_options = {from: 'kontakt.ubezpieczenie@gmail.com'} # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index ed81d1f..dd99d67 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -12,7 +12,7 @@ Devise.setup do |config| # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use your own mailer class # with default "from" parameter. - config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com' + config.mailer_sender = 'kontakt.ubezpieczenie@gmail.com' # Configure the class responsible to send e-mails. # config.mailer = 'Devise::Mailer'