Merged tiwariav/task/3657/contact_section into task/3740/contact_send_message
This commit is contained in:
parent
6cca92ec3a
commit
28bcef082c
12 changed files with 362 additions and 79 deletions
|
|
@ -323,9 +323,9 @@ button, input, optgroup, select, textarea {
|
|||
padding-top: 50px;
|
||||
/* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
|
||||
padding-bottom: 50px;
|
||||
text-align: center;
|
||||
/* text-align: center; */
|
||||
color: #f8f8f8;
|
||||
background: url(../img/banner-bg.jpg) no-repeat center center;
|
||||
background: url(../img/pattern.jpg) no-repeat center center;
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
}
|
||||
|
|
@ -654,74 +654,161 @@ button, input, optgroup, select, textarea {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.full-contact-section {
|
||||
background-image: -ms-linear-gradient(right, #29427A 50%, #4F6699 100%);
|
||||
background-image: -moz-linear-gradient(right, #29427A 50%, #4F6699 100%);
|
||||
background-image: -o-linear-gradient(right, #29427A 50%, #4F6699 100%);
|
||||
background-image: -webkit-gradient(linear, right top, left top, color-stop(50, #29427A), color-stop(100, #4F6699));
|
||||
background-image: -webkit-linear-gradient(right, #29427A 50%, #4F6699 100%);
|
||||
background-image: linear-gradient(to left, #29427A 50%, #4F6699 100%);
|
||||
}
|
||||
|
||||
.contact-section {
|
||||
padding: 60px 0;
|
||||
color: #fff;
|
||||
padding: 80px 0;
|
||||
color: rgba(255,255,255,0.9);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.contact-section .card {
|
||||
text-align: center;
|
||||
width: 350px;
|
||||
margin: 0 auto;
|
||||
background: #fff;
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
||||
padding-bottom: 40px;
|
||||
border-radius: 7px;
|
||||
color: #4c4444;
|
||||
box-sizing: border-box;
|
||||
padding: 45px;
|
||||
margin-top: -115px;
|
||||
.contact-section .modal {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.contact-section .card .social a {
|
||||
color: #29427A;
|
||||
.contact-details {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.contact-section .description{
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.contact-section .social a {
|
||||
color: #fff;
|
||||
font-size: 45px;
|
||||
}
|
||||
|
||||
.contact-section .card .subtitle h3 {
|
||||
font-size: 30px;
|
||||
margin-bottom: 23px;
|
||||
.contact-section .social .fa-facebook {
|
||||
font-size: 40px;
|
||||
background: #fff;
|
||||
border-radius: 100%;
|
||||
color: #425d89;
|
||||
width: 40px;
|
||||
text-align: center;
|
||||
top: -2px;
|
||||
position: relative;
|
||||
left: 10px;
|
||||
}
|
||||
.contact-section .social .fa-facebook:before {
|
||||
font-size: 32px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
}
|
||||
|
||||
.contact-section .card .social a:hover {
|
||||
.contact-section .social a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.contact-section .title {
|
||||
margin-right: auto;
|
||||
width: 80%;
|
||||
max-width: 468px;
|
||||
.contact-section .subtitle h3 {
|
||||
font-size: 30px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.contact-section .contact-form-success {
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
background-color: rgba(0,0,0,0.2);
|
||||
padding: 0 15px 35px;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.contact-section .title h2 {
|
||||
font-size: 65px;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
padding-bottom: 25px;
|
||||
position: relative;
|
||||
text-align: right;
|
||||
/* color: #eee;
|
||||
padding-bottom: 25px;
|
||||
text-align: right; */
|
||||
}
|
||||
|
||||
.contact-section .title h2::before {
|
||||
content: "";
|
||||
.contact-form .form-group {
|
||||
border: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.contact-form .form-group label {
|
||||
letter-spacing: 0.6px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.contact-form .btn {
|
||||
min-width: 140px;
|
||||
background: rgba(23, 23, 23, 0.18);
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
border-width: 2px;
|
||||
box-shadow: none;
|
||||
letter-spacing: 2px;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
.contact-form .btn.sending {
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
@keyframes sending {
|
||||
0% {content: '.';}
|
||||
50% {content: '..';}
|
||||
100% {content: '...';}
|
||||
}
|
||||
|
||||
.contact-form .btn.sending:after {
|
||||
content: '.';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
background: #fff;
|
||||
height: 7px;
|
||||
width: 70px;
|
||||
right: 0;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
margin-left: 5px;
|
||||
width: 20px;
|
||||
animation: sending 1s linear infinite;
|
||||
}
|
||||
|
||||
.contact-form .btn:hover,
|
||||
.contact-form .btn:focus {
|
||||
background: rgba(23, 23, 23, 0.28);
|
||||
border-color: #fff;
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.contact-form .form-control {
|
||||
box-shadow: none;
|
||||
border-color: #ccc;
|
||||
}
|
||||
|
||||
.contact-form .errorlist {
|
||||
list-style: none;
|
||||
padding: 5px;
|
||||
margin: 0;
|
||||
color: rgb(255, 164, 164);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.4px;
|
||||
}
|
||||
|
||||
.contact-form .form-error {
|
||||
background: rgba(255,255,255,0.9);
|
||||
color: #eb4d5c;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.contact-form .has-error label {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.contact-form .has-error .form-control {
|
||||
border: 2px solid #e8534b;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.contact-form .subtitle {
|
||||
padding: 22px 0 15px;
|
||||
}
|
||||
|
||||
.contact-form textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
/*Why DCL*/
|
||||
|
||||
|
|
@ -1311,9 +1398,9 @@ tech-sub-sec h2 {
|
|||
margin: 0 auto;
|
||||
}
|
||||
.contact-section .title h2 {
|
||||
font-size: 35px;
|
||||
font-size: 45px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
/* text-align: center; */
|
||||
margin-top: 35px;
|
||||
}
|
||||
.contact-section .title h2::before {
|
||||
|
|
@ -1558,4 +1645,4 @@ a.list-group-item-danger.active:focus {
|
|||
}
|
||||
.panel-danger > .panel-heading .badge {
|
||||
background-color: #eb4d5c;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
11
datacenterlight/static/datacenterlight/img/facebook_logo.svg
Normal file
11
datacenterlight/static/datacenterlight/img/facebook_logo.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="57px" height="66px" viewBox="0 0 57 66" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>Slice 20</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="contact-us" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<ellipse id="Oval-2" fill="#FFFFFF" cx="28.7865939" cy="33.4691264" rx="19.7865939" ry="19.4691264"></ellipse>
|
||||
<path d="M35.3784886,34.6387051 L30.2336176,34.6387051 L30.2336176,50.2467762 L22.6226844,50.2467762 L22.6226844,34.6387051 L19,34.6387051 L19,29.1194625 L22.6226844,29.1194625 L22.6226844,25.5403791 C22.6226844,22.9849851 24.0459888,19 30.3115248,19 L35.9567996,19.0178699 L35.9567996,24.3762836 L31.8546864,24.3762836 C31.1894789,24.3762836 30.2426069,24.6596489 30.2426069,25.8824599 L30.2426069,29.1194625 L36.0436961,29.1194625 L35.3784886,34.6387051 Z" id="Shape" fill="#5E79AD" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -39,7 +39,7 @@
|
|||
_initScroll();
|
||||
_initNavUrl();
|
||||
_initPricing();
|
||||
|
||||
ajaxForms();
|
||||
});
|
||||
|
||||
$(window).resize(function() {
|
||||
|
|
@ -157,4 +157,27 @@
|
|||
$('#valueTotal').text(numbers * price * 31);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
function ajaxForms() {
|
||||
$('body').on('submit', '.ajax-form', function(e){
|
||||
e.preventDefault();
|
||||
var $form = $(this);
|
||||
$form.find('[type=submit]').addClass('sending');
|
||||
$.ajax({
|
||||
url: $form.attr('action'),
|
||||
type: $form.attr('method'),
|
||||
data: $form.serialize(),
|
||||
|
||||
success: function(response) {
|
||||
var responseContain = $($form.attr('data-response'));
|
||||
responseContain.html(response);
|
||||
$form.find('[type=submit]').removeClass('sending');
|
||||
},
|
||||
|
||||
error: function() {
|
||||
$form.find('[type=submit]').removeClass('sending');
|
||||
$form.find('.form-error').removeClass('hide');
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
})(jQuery);
|
||||
Loading…
Add table
Add a link
Reference in a new issue