Skip to content

Commit 8cc982c

Browse files
Add enquiry modal
1 parent 3ebffcc commit 8cc982c

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

_includes/footer.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,15 @@ <h3>About Dino Tutors</h3>
5757
<script>
5858
socket('9c79f14df986a1ec693c', {
5959
mode: 'enquiry',
60-
element: '#socket-enquiry',
61-
router_mode: 'history'
60+
element: '#socket-enquiry'
6261
});
6362

6463
socket('9c79f14df986a1ec693c', {
6564
router_mode: 'history'
65+
});
66+
socket('9c79f14df986a1ec693c', {
67+
mode: 'enquiry-modal',
68+
element: '#socket-enquiry-modal',
69+
router_mode: 'history'
6670
})
6771
</script>

_includes/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<a href="#about">About</a>
2626
</li>
2727
<li class="page-scroll">
28-
<a href="#contact">Contact</a>
28+
<a href="https://secure.dinotutors.com">Sign in</a>
2929
</li>
3030
<li class="page-scroll">
31-
<a href="https://secure.dinotutors.com">Sign in</a>
31+
<div id="socket-enquiry-modal"></div>
3232
</li>
3333
</ul>
3434
</div>

_redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/* / 200
2+
3+
/enquiry / 200
4+
/*/enquiry /:splat 200

static/css/style.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,31 @@ header {
184184
outline: 0;
185185
}
186186
}
187+
.tcs-enquiry-modal {
188+
.tcs-centre {
189+
color: $primary-colour;
190+
}
191+
.tcs-enquiry-button {
192+
background: $primary-colour;
193+
border: solid 2px $primary-colour;
194+
&:hover {
195+
color: $primary-colour;
196+
background: transparent;
197+
text-decoration: none !important;
198+
}
199+
}
200+
.tcs-submit {
201+
button {
202+
background: $primary-colour;
203+
border: solid 2px $primary-colour;
204+
&:hover {
205+
color: $primary-colour;
206+
background: transparent;
207+
text-decoration: none !important;
208+
}
209+
}
210+
}
211+
}
187212
}
188213

189214
.navbar-default, .navbar-inverse {

0 commit comments

Comments
 (0)