Skip to content

Commit db9e263

Browse files
author
Mark Durrant
committed
start on contact form
1 parent cf05afa commit db9e263

3 files changed

Lines changed: 62 additions & 6 deletions

File tree

_layouts/contact.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,19 @@
2020
<a href="https://www.google.co.uk/maps/place/pebble+%7Bcode%7D/@51.485665,-0.118521,15z/data=!4m5!3m4!1s0x0:0xb39ad30b38f1e82a!8m2!3d51.485665!4d-0.118521" title="View pebble {code} London office on Google Maps" target="_blank">W214 Westminster Business Square<br> Durham Street<br> London<br> SE11 5JH</a>
2121
</li>
2222
<li class="contact-col-item col-1-2">
23-
<div class="contact-item contact-item-phone">
24-
<a href="tel:+442033273940">+44 (0) 20 3327 3940</a>
25-
</div>
26-
<div class="contact-item contact-item-email">
27-
<a href="mailto:hello@pebblecode.com">hello@pebblecode.com</a>
28-
</div>
23+
24+
<!--[if lte IE 8]>
25+
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
26+
<![endif]-->
27+
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
28+
<script>
29+
hbspt.forms.create({
30+
css: '',
31+
portalId: '2277134',
32+
formId: 'cc06259d-3ffc-4f5c-a0a7-ebf9f87f3dad'
33+
});
34+
</script>
35+
2936
</li>
3037
</ul>
3138
</section>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
//===============================================================================
2+
// HUBSPOT COMPONENTS
3+
//===============================================================================
4+
.contact .hbspt-form {
5+
margin-top: 20px;
6+
7+
label {
8+
color: $white;
9+
font-family: $brandon;
10+
font-size: $eta;
11+
font-weight: $font-regular !important;
12+
-webkit-font-smoothing: antialiased;
13+
}
14+
15+
.hs-error-msgs {
16+
opacity: .7;
17+
}
18+
19+
.hs-form-required {
20+
color: $pink;
21+
margin-left: 2px;
22+
}
23+
24+
input[type="text"],
25+
input[type="email"] {
26+
color: rgba(white, 0.9);
27+
border: 3px solid rgba(white, 0.2);
28+
background-color: transparent;
29+
padding: 8px 8px 4px 8px;
30+
width: 100%;
31+
transition: border-color .2s;
32+
border-radius: 4px;
33+
margin-bottom: 8px;
34+
35+
&:focus { border-color: rgba(white, 0.5); }
36+
}
37+
38+
input[type="submit"] {
39+
@extend .btn, .btn-light, .btn-lrg;
40+
41+
margin-top: 8px;
42+
}
43+
44+
.submitted-message {
45+
margin-top: 45px;
46+
color: $white;
47+
}
48+
}

css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
@import "components/_share";
3333
@import "components/_related";
3434
@import "components/_media";
35+
@import "components/_hs-components";
3536

3637
@import "pages/_home";
3738
@import "pages/_contact";

0 commit comments

Comments
 (0)