Merge pull request #5 from bartlomiej-pluta/newsletter
Create newsletter section
This commit is contained in:
@@ -381,7 +381,8 @@
|
||||
<p class="pricing__footer">
|
||||
Duis lobortis arcu sed arcu tincidunt feugiat. Nulla nisi mauris, facilisis vitae aliquet id,
|
||||
imperdiet quis
|
||||
nibh. Donec eget elit eu libero tincidunt consequat nec elementum orci. Cum sociis natoque penatibus
|
||||
nibh. Donec eget elit eu libero tincidunt consequat nec elementum orci. Cum sociis natoque
|
||||
penatibus
|
||||
et
|
||||
magnis dis parturient montes, nascetur ridiculus mus.
|
||||
</p>
|
||||
@@ -389,6 +390,21 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="newsletter">
|
||||
<div class="container">
|
||||
<div class="row justify-content-between">
|
||||
<div class="col-6 newsletter__title">
|
||||
Subscribe to our newsletter
|
||||
</div>
|
||||
<div class="col-6 oneline__form">
|
||||
<input class="textfield oneline__form__component--growing" title="Email" placeholder="Email...">
|
||||
<button class="rounded-button rounded-button--uppercase oneline__form__component--fixed"
|
||||
type="submit">Subscribe
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript -->
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
font-size: 21px;
|
||||
padding: 15px 60px;
|
||||
}
|
||||
|
||||
&--uppercase {
|
||||
text-transform: uppercase;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.rect-button {
|
||||
|
||||
29
src/scss/_form.scss
Normal file
29
src/scss/_form.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
.textfield {
|
||||
padding: 7px 25px;
|
||||
border: none;
|
||||
border-radius: 30px;
|
||||
background-color: white;
|
||||
color: $regular-text;
|
||||
|
||||
&::placeholder {
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: $gray-text;
|
||||
}
|
||||
}
|
||||
|
||||
.oneline__form {
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.oneline__form__component--growing {
|
||||
width: 100%;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.oneline__form__component--fixed {
|
||||
white-space: nowrap;
|
||||
}
|
||||
15
src/scss/_newsletter.scss
Normal file
15
src/scss/_newsletter.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.newsletter {
|
||||
padding: 55px 0;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.newsletter__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 30px;
|
||||
color: $primary-dark;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
.pricing {
|
||||
background: $background-violet url(../img/testimonials/pricing.png) no-repeat 50% 30%;
|
||||
padding-top: 90px;
|
||||
padding-bottom: 75px;
|
||||
}
|
||||
|
||||
.pricing__title {
|
||||
|
||||
@@ -4,6 +4,7 @@ $primary-light: #a599c8;
|
||||
$regular-text: #848e97;
|
||||
$dark-text: #323232;
|
||||
$light-text: #a291a5;
|
||||
$gray-text: #c8cbcf;
|
||||
|
||||
$background-light: #f4f4f4;
|
||||
$background-violet: #4a3b4e;
|
||||
|
||||
@@ -11,4 +11,6 @@
|
||||
@import "reviews";
|
||||
@import "social";
|
||||
@import "testimonials";
|
||||
@import "pricing";
|
||||
@import "pricing";
|
||||
@import "newsletter";
|
||||
@import "form";
|
||||
Reference in New Issue
Block a user