Skip to content

Commit

Permalink
Add contact form
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitinskaya committed Dec 22, 2017
1 parent 4a95e67 commit dba7320
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 27 deletions.
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
36 changes: 19 additions & 17 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: 7a1d9c047d24a1950b4ea0564d47b4b2f986b583
tag: v0.4.1
submodules: true
specs:
engnr-theme (0.4.0)
engnr-theme (0.4.1)
jekyll (~> 3.4)

GEM
Expand All @@ -20,11 +20,11 @@ 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.5)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colorize (~> 0.8)
Expand All @@ -33,9 +33,9 @@ GEM
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,17 +47,18 @@ 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)
Expand All @@ -66,21 +67,22 @@ GEM
parallel (1.12.0)
pathutil (0.16.0)
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.3)
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="" 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 %}

0 comments on commit dba7320

Please sign in to comment.