Signed-off-by: Adrian Hinz <adhinz@gmail.com>
This commit is contained in:
parent
8dde288784
commit
7eb15e6c8d
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<%= @contact['name'] %> napisał(ła):
|
||||
|
||||
Email: <%= @contact['email'] %>
|
||||
Imię: <%= @contact['name'] %>
|
||||
Treść:
|
||||
<%= @contact['message'] %>
|
||||
|
|
|
|||
|
|
@ -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;">
|
||||
<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;">
|
||||
<strong style="display:none" id="line2">Pieniądze są najważniejsze</strong>
|
||||
</h1>
|
||||
<br />
|
||||
<h3 class="text-faded" style="visibility:hidden" id="line4"><strong> czyli dlaczego warto ubezpieczać należności.</strong></h3>
|
||||
<h3 style="text-shadow: 4px 4px #000000;"><strong style="visibility:hidden" id="line4"> czyli dlaczego warto ubezpieczać należności.</strong></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue