Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contact form #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ gem "jekyll", ">=3.5.0"
# uncomment the line below. To upgrade, run `bundle update github-pages`.
#gem "github-pages", group: :jekyll_plugins
gem "jekyll-redirect-from"
gem "engnr-theme", :git => 'https://github.com/engnr/engnr-theme', :submodules => true, :tag => 'v0.4.0'
#gem "engnr-theme", :path => '../engnr-theme', :submodules => true, :branch => 'master'
gem "engnr-theme", :git => 'https://github.com/engnr/engnr-theme', :submodules => true, :tag => 'v0.4.1'
#gem "engnr-theme", :git => '../engnr-theme', :submodules => true, :branch => 'master'

# If you have any plugins, put them here!
group :jekyll_plugins do
Expand Down
42 changes: 22 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GIT
remote: https://github.com/engnr/engnr-theme
revision: 36be29c0e44114524682cc47f1e247cf25a71484
tag: v0.4.0
revision: f3b5f4488363d61cbec9545a01cab5aaa4aebc20
tag: v0.4.1
submodules: true
specs:
engnr-theme (0.4.0)
engnr-theme (0.4.1)
jekyll (~> 3.4)

GEM
Expand All @@ -20,22 +20,22 @@ GEM
colorator (1.1.0)
colorize (0.8.1)
concurrent-ruby (1.0.5)
ethon (0.10.1)
ethon (0.11.0)
ffi (>= 1.3.0)
ffi (1.9.18)
forwardable-extended (2.6.0)
html-proofer (3.7.4)
html-proofer (3.7.6)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colorize (~> 0.8)
mercenary (~> 0.3.2)
nokogiri (~> 1.7)
nokogiri (~> 1.8.1)
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
i18n (0.9.0)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jekyll (3.6.0)
jekyll (3.6.2)
addressable (~> 2.4)
colorator (~> 1.0)
jekyll-sass-converter (~> 1.0)
Expand All @@ -47,40 +47,42 @@ GEM
rouge (>= 1.7, < 3)
safe_yaml (~> 1.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.12.1)
jekyll-redirect-from (0.13.0)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
jekyll-sass-converter (1.5.1)
sass (~> 3.4)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
kramdown (1.15.0)
jekyll-watch (1.5.1)
listen (~> 3.0)
kramdown (1.16.2)
liquid (4.0.0)
listen (3.0.8)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
mini_portile2 (2.3.0)
minitest (5.10.3)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
parallel (1.12.0)
pathutil (0.16.0)
parallel (1.12.1)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.0)
public_suffix (3.0.1)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (2.2.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.5.2)
sass (3.5.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.3)
tzinfo (1.2.4)
thread_safe (~> 0.1)
yell (2.0.7)

Expand All @@ -98,4 +100,4 @@ RUBY VERSION
ruby 2.4.1p111

BUNDLED WITH
1.15.4
1.16.0
4 changes: 2 additions & 2 deletions _sass/components/contact-image.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.contact-image {
width: 300px;
vertical-align: bottom;
background: url(/assets/images/phone.jpg) no-repeat bottom;
min-height: 460px;
}
29 changes: 23 additions & 6 deletions company/contact/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
---
layout: page
title: — Алло, Инженерная?
description: Напишите нам или просто оставьте свой контакт.
padded_footer: false
---

<div class="text-block -two">
<img class="contact-image" src="/assets/images/phone.jpg" alt="phone"/>
</div>
<div class="text-block -two">
Пишите письма на <a href="mailto:{{ site.email }}">{{ site.email }}</a>
</div>
<div class="text-block -two">
<div class="contact-image">
</div>
</div>

<div class="text-block -two">
<form class="form w80" action="success" name="contact-form" netlify>
<div class="form-item">
<label>Как с вами связаться? <span class="req">*</span></label>
<input type="text" name="contact" required>
<div class="desc">Ответим или перезвоним на следующий рабочий день</div>
</div>
<div class="form-item">
<label>Сообщение</label>
<textarea rows="5" name="message"></textarea>
</div>
<div>
<button class="button" type="submit">Отправить</button>
</div>
</form>
Пишите письма на <a href="mailto:{{ site.email }}">{{ site.email }}</a>
</div>

{% include drift.html app_id=site.integrations.drift.app_id %}
5 changes: 5 additions & 0 deletions company/contact/success.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: page
title: Спасибо! Записали.
description: Возвращайтесь на <a href="/">главную</a>.
---