Signed-off-by: Adrian Hinz <adhinz@gmail.com>

This commit is contained in:
Adrian Hinz 2018-01-23 18:15:23 +01:00
parent 8dde288784
commit 7eb15e6c8d
8 changed files with 25 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -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;

View File

@ -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

View File

@ -4,7 +4,9 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1><%= @contact['name'] %> napisał(ła):</h1>
Email: <strong><%= @contact['email'] %></strong><br/>
Imię: <strong><%= @contact['name'] %></strong><br/>
Treść:
<p><%= @contact['message'] %></p>
</body>
</html>

View File

@ -1,3 +1,4 @@
<%= @contact['name'] %> napisał(ła):
Email: <%= @contact['email'] %>
Imię: <%= @contact['name'] %>
Treść:
<%= @contact['message'] %>

View File

@ -2,15 +2,15 @@
<div class="container my-auto">
<div class="row">
<div class="col-lg-11 mx-auto">
<h1 class="text-uppercase">
<h1 class="text-uppercase" style="text-shadow: 4px 4px #000000;">
&nbsp;<strong style="display:none" id="line1">Pieniądze nie są ważne...</strong>
</h1>
<br />
<h1 class="text-uppercase">
<h1 class="text-uppercase" style="text-shadow: 4px 4px #000000;">
&nbsp;<strong style="display:none" id="line2">Pieniądze są najważniejsze</strong>
</h1>
<br />
&nbsp;<h3 class="text-faded" style="visibility:hidden" id="line4"><strong>&nbsp;&nbsp;&nbsp;czyli dlaczego warto ubezpieczać należności.</strong></h3>
&nbsp;<h3 style="text-shadow: 4px 4px #000000;"><strong style="visibility:hidden" id="line4">&nbsp;&nbsp;&nbsp;czyli dlaczego warto ubezpieczać należności.</strong></h3>
</div>
</div>
</div>

View File

@ -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

View File

@ -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'