Last active
June 22, 2024 19:12
-
-
Save HarryAdney/3db8bc84fc2aaac2e98a09331f4ed861 to your computer and use it in GitHub Desktop.
CodeStitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS */ | |
/* Mobile - 360px */ | |
@media only screen and (min-width: 0rem) { | |
#cs-contact-486 { | |
padding: var(--sectionPadding); | |
position: relative; | |
z-index: 1; | |
} | |
#cs-contact-486 .cs-container { | |
width: 100%; | |
/* changes to 1440px at tablet */ | |
max-width: 34.375em; | |
margin: auto; | |
/* 20px - 80px */ | |
padding: clamp(1.25rem, 5.5vw, 5rem); | |
/* prevents padding and border from affecting height and width */ | |
box-sizing: border-box; | |
background-color: #14142b; | |
/* 12px - 24px */ | |
border-radius: clamp(0.75rem, 3vw, 1.5rem); | |
/* clips the glowing orb */ | |
overflow: hidden; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
gap: 3rem; | |
position: relative; | |
z-index: 1; | |
} | |
#cs-contact-486 .cs-container:before { | |
/* glowing orb */ | |
content: ""; | |
width: 77.5rem; | |
height: 7.625rem; | |
background: #f1f1f4; | |
opacity: 0.21; | |
-webkit-filter: blur(152px); | |
filter: blur(152px); | |
transform: translateX(-50%) rotate(-38.5deg); | |
position: absolute; | |
display: block; | |
top: 30%; | |
left: 50%; | |
z-index: -1; | |
} | |
#cs-contact-486 .cs-content { | |
/* set text align to left if content needs to be left aligned */ | |
text-align: left; | |
width: 100%; | |
max-width: 36.75rem; | |
display: flex; | |
flex-direction: column; | |
/* centers content horizontally, set to flex-start to left align */ | |
align-items: flex-start; | |
} | |
#cs-contact-486 .cs-title { | |
font-size: var(--headerFontSize); | |
font-weight: 900; | |
line-height: 1.2em; | |
text-align: inherit; | |
max-width: 43.75rem; | |
margin: 0 0 1rem 0; | |
color: var(--headerColor); | |
position: relative; | |
} | |
#cs-contact-486 .cs-text { | |
font-size: var(--bodyFontSize); | |
line-height: 1.5em; | |
text-align: inherit; | |
width: 100%; | |
max-width: 40.625rem; | |
margin: 0; | |
color: var(--bodyTextColor); | |
} | |
#cs-contact-486 .cs-title { | |
max-width: 16ch; | |
color: var(--bodyTextColorWhite); | |
} | |
#cs-contact-486 .cs-color { | |
color: var(--primaryLight); | |
} | |
#cs-contact-486 .cs-text { | |
/* 14px - 16px */ | |
font-size: clamp(0.875rem, 1.5vw, 1rem); | |
/* 24px - 36px, matches the padding-bottom */ | |
margin: 0 0 clamp(1.5rem, 4vw, 2.25rem) 0; | |
/* 24px - 36px */ | |
padding-bottom: clamp(1.5rem, 4vw, 2.25rem); | |
color: #b4b2c7; | |
position: relative; | |
} | |
#cs-contact-486 .cs-text:before { | |
/* dashed border effect, by using this method we can control the width of the dashed lines */ | |
content: ""; | |
width: 100%; | |
height: 1px; | |
background-image: linear-gradient( | |
90deg, | |
#b3bac5, | |
#b3bac5 50%, | |
transparent 50%, | |
transparent 0% | |
); | |
/* change the first left rem value to change the length of the dashes */ | |
background-size: 0.6rem 1px; | |
opacity: 1; | |
position: absolute; | |
display: block; | |
bottom: 0; | |
left: 0; | |
} | |
#cs-contact-486 .cs-heading { | |
/* 16px - 20px */ | |
font-size: clamp(1rem, 2vw, 1.25rem); | |
line-height: 1.5em; | |
font-weight: 700; | |
text-align: left; | |
color: var(--bodyTextColorWhite); | |
display: block; | |
} | |
#cs-contact-486 .cs-heading:last-of-type { | |
/* make the last one have the margin bottom to create the space between the contact info */ | |
margin-bottom: 0.75rem; | |
} | |
#cs-contact-486 .cs-link { | |
/* 14px - 16px */ | |
font-size: clamp(0.875rem, 1.5vw, 1rem); | |
line-height: 1.5em; | |
font-weight: 400; | |
text-align: left; | |
text-decoration: none; | |
margin: 0; | |
color: #b4b2c7; | |
display: block; | |
} | |
#cs-contact-486 #cs-form-486 { | |
width: 100%; | |
max-width: 38.625rem; | |
padding: 2rem 1.5rem; | |
background-color: #fff; | |
/* prevents padding and border from affecting height and width */ | |
box-sizing: border-box; | |
border-radius: 0.75rem; | |
display: flex; | |
justify-content: space-between; | |
flex-wrap: wrap; | |
row-gap: 1.25rem; | |
} | |
#cs-contact-486 .cs-h3 { | |
/* 20px - 31px */ | |
font-size: clamp(1.25rem, 4vw, 1.9375rem); | |
line-height: 1.2em; | |
font-weight: 700; | |
text-align: left; | |
width: 100%; | |
/* 4px + the 20px gap on the #cs-form */ | |
margin: 0 0 0.25rem 0; | |
color: #14142b; | |
} | |
#cs-contact-486 .cs-label { | |
font-size: 1rem; | |
line-height: 1.5em; | |
width: 100%; | |
margin: 0 0 0.375rem 0; | |
display: flex; | |
flex-direction: column; | |
align-items: flex-start; | |
color: #14142b; | |
} | |
#cs-contact-486 .cs-input, | |
#cs-contact-486 .cs-textarea, | |
#cs-contact-486 #cs-select-486 { | |
font-size: 1rem; | |
font-family: inherit; | |
width: 100%; | |
height: 3rem; | |
margin: 0; | |
padding: 0 1.25rem; | |
/* prevents padding from affecting width and height */ | |
box-sizing: border-box; | |
border-radius: 0.5rem; | |
border: 1px solid #b4b2c7; | |
background-color: transparent; | |
} | |
#cs-contact-486 .cs-input::placeholder, | |
#cs-contact-486 .cs-textarea::placeholder, | |
#cs-contact-486 #cs-select-486::placeholder { | |
color: #7d799c; | |
font-size: 1rem; | |
} | |
#cs-contact-486 .cs-textarea { | |
min-height: 9.375rem; | |
padding-top: 0.625rem; | |
} | |
#cs-contact-486 .cs-button-solid { | |
font-size: 1rem; | |
/* 46px - 56px */ | |
line-height: clamp(2.875rem, 5.5vw, 3.5rem); | |
text-decoration: none; | |
font-weight: 700; | |
text-align: center; | |
margin: 0; | |
color: #fff; | |
min-width: 9.375rem; | |
padding: 0 1.5rem; | |
background-color: var(--primary); | |
border-radius: 0.25rem; | |
display: inline-block; | |
position: relative; | |
z-index: 1; | |
/* prevents padding from adding to the width */ | |
box-sizing: border-box; | |
} | |
#cs-contact-486 .cs-button-solid:before { | |
content: ""; | |
position: absolute; | |
height: 100%; | |
width: 0%; | |
background: #000; | |
opacity: 1; | |
top: 0; | |
left: 0; | |
z-index: -1; | |
border-radius: 0.25rem; | |
transition: width 0.3s; | |
} | |
#cs-contact-486 .cs-button-solid:hover:before { | |
width: 100%; | |
} | |
#cs-contact-486 .cs-button-solid { | |
/* button override */ | |
width: 100%; | |
border: none; | |
} | |
} | |
/* Tablet - 768px */ | |
@media only screen and (min-width: 48rem) { | |
#cs-contact-486 .cs-container { | |
max-width: 90rem; | |
flex-direction: row; | |
justify-content: space-between; | |
} | |
#cs-contact-486 .cs-label:nth-of-type(1), | |
#cs-contact-486 .cs-label:nth-of-type(2) { | |
width: clamp(45%, 17vw, 48.5%); | |
} | |
} | |
<!-- ============================================ --> | |
<!-- Form --> | |
<!-- ============================================ --> | |
<section id="cs-contact-486"> | |
<div class="cs-container"> | |
<div class="cs-content"> | |
<h2 class="cs-title">Talk to us about your <span class="cs-color">garden plan!</span></h2> | |
<p class="cs-text"> | |
We would love to hear about your project and discuss how we can help. Please fill the form on the right side to schedule a call or discussion and meeting on the your convenient time. | |
</p> | |
<span class="cs-heading">Any problem about your booking?</span> | |
<span class="cs-heading">You can contact us on :</span> | |
<a href="tel:219-555-4545" class="cs-link">(219) 555-4545</a> | |
<a href="mailto:[email protected]" class="cs-link">[email protected]</a> | |
</div> | |
<!--Form--> | |
<form id="cs-form-486" name="Contact Form" method="post"> | |
<h3 class="cs-h3">Schedule Consult</h3> | |
<label class="cs-label"> | |
Name | |
<input class="cs-input" required type="text" id="name-486" name="name" placeholder="Name"> | |
</label> | |
<label class="cs-label"> | |
Phone | |
<input class="cs-input" required type="text" id="phone-486" name="phone" placeholder="Phone"> | |
</label> | |
<label class="cs-label"> | |
<input class="cs-input" required type="text" id="email-486" name="email" placeholder="Email"> | |
</label> | |
<label class="cs-label"> | |
How Did You Find Us | |
<input class="cs-input" type="text" id="find-486" name="find-us" placeholder="How did you find us?"> | |
</label> | |
<label class="cs-label cs-label-message"> | |
What do you need help with? | |
<select name="cars" id="cs-select-486"> | |
<option value="full renovation">Full Renovation</option> | |
<option value="sod install">Sod Install</option> | |
<option value="yard cleanup">Yard Cleanup</option> | |
<option value="landscape design">Landscape Design</option> | |
</select> | |
</label> | |
<button class="cs-button-solid cs-submit" type="submit">Book a Consult</button> | |
</form> | |
</div> | |
</section> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment