Merge pull request #20 from bartlomiej-pluta/review-improvement

Review improvement
This commit is contained in:
Bartłomiej Przemysław Pluta
2018-06-05 14:13:32 +02:00
committed by GitHub
28 changed files with 5375 additions and 98 deletions

2
gulpfile.js Normal file → Executable file
View File

@@ -46,7 +46,7 @@ gulp.task('serve', function() {
}); });
gulp.watch(config.htmlIn, function() { sequence('html', 'reload') }); gulp.watch(config.htmlIn, function() { sequence('html', 'reload') });
gulp.watch(config.scssIn, function() { sequence('sass', 'css', 'reload') }); gulp.watch(config.scssIn, function() { sequence('sass', 'css' ) });
gulp.watch(config.jsIn, function() { sequence('js', 'reload') }); gulp.watch(config.jsIn, function() { sequence('js', 'reload') });
gulp.watch(config.imgIn, function() { sequence('img', 'reload') }); gulp.watch(config.imgIn, function() { sequence('img', 'reload') });
gulp.watch(config.svgIn, function() { sequence('svg', 'reload') }); gulp.watch(config.svgIn, function() { sequence('svg', 'reload') });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 KiB

After

Width:  |  Height:  |  Size: 400 KiB

70
src/index.html Normal file → Executable file
View File

@@ -35,6 +35,7 @@
<span class="brand__name">Fork</span> <span class="brand__name">Fork</span>
<span class="brand__name brand__name--emph">IO</span> <span class="brand__name brand__name--emph">IO</span>
</div> </div>
<button class="navbar__content__button navbar__content__button--phone rounded-button rounded-button--strong">Buy now</button>
<button class="navbar__content__toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" <button class="navbar__content__toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="true" aria-label="Toggle navigation"> aria-controls="navbarNavDropdown" aria-expanded="true" aria-label="Toggle navigation">
<img src="img/navbar/sandwich.svg" alt=""> <img src="img/navbar/sandwich.svg" alt="">
@@ -53,18 +54,21 @@
<li class="nav-item"> <li class="nav-item">
<a class="navbar__link nav-link" href="#">Support</a> <a class="navbar__link nav-link" href="#">Support</a>
</li> </li>
<li class="nav-item">
<button class="navbar__content__button navbar__content__button--desktop rounded-button rounded-button--strong">Buy now</button>
</li>
</ul> </ul>
</div> </div>
<button class="navbar__content__button rounded-button rounded-button--strong">Buy now</button>
</div> </div>
</div> </div>
<header class="header"> <header class="header">
<div> <div class="header__text">
<p class="header__title">Fork app</p> <p class="header__title">Fork app</p>
<p class="header__subtitle">A real gamechanger in the world of web development</p> <p class="header__subtitle">A real gamechanger in the world of web development</p>
<p class="header__description">V. 2.8 for Mac and Windows</p> <p class="header__description">V. 2.8 for Mac and Windows</p>
</div> </div>
<div class="header__image">&nbsp;</div>
</header> </header>
<div class="download"> <div class="download">
<a href="#" class="rounded-button rounded-button--very-strong download__rounded-button--translated"> <a href="#" class="rounded-button rounded-button--very-strong download__rounded-button--translated">
@@ -244,25 +248,28 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="social__content col-10"> <div class="social__content col-10">
<div class="social__github"> <div class="social__github">
<button class="rect-button rect-button--github rect-button--fixed-width"> <a href="https://github.com/bartlomiej-pluta/forkio" target="_blank"
class="rect-button rect-button--github rect-button--fixed-width">
<span class="rect-button__icon fab fa-github"></span> <span class="rect-button__icon fab fa-github"></span>
GitHub GitHub
</button> </a>
<p class="social__stats">7 352 Followers</p> <p id="github-watchers" class="social__stats"></p>
</div> </div>
<div class="social__twitter"> <div class="social__twitter">
<button class="rect-button rect-button--twitter rect-button--fixed-width"> <a href="https://twitter.com/pgssoftware" target="_blank"
class="rect-button rect-button--twitter rect-button--fixed-width">
<span class="rect-button__icon fab fa-twitter"></span> <span class="rect-button__icon fab fa-twitter"></span>
Twitter Twitter
</button> </a>
<p class="social__stats">136 312 Followers</p> <p class="social__stats"></p>
</div> </div>
<div class="social__facebook"> <div class="social__facebook">
<button class="rect-button rect-button--facebook rect-button--fixed-width"> <a href="https://www.facebook.com/pgs.software" target="_blank"
class="rect-button rect-button--facebook rect-button--fixed-width">
<span class="rect-button__icon fab fa-facebook-f"></span> <span class="rect-button__icon fab fa-facebook-f"></span>
Facebook Facebook
</button> </a>
<p class="social__stats">218 092 Subscribers</p> <p class="social__stats"></p>
</div> </div>
</div> </div>
</div> </div>
@@ -272,7 +279,9 @@
<div class="testimonials__content container"> <div class="testimonials__content container">
<div class="testimonials__row row"> <div class="testimonials__row row">
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/1.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img src="img/testimonials/1.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
Sed vestibulum scelerisque urna, eu finibus leo facilisis sit amet. Proin id dignissim Sed vestibulum scelerisque urna, eu finibus leo facilisis sit amet. Proin id dignissim
magna. magna.
@@ -280,14 +289,18 @@
</p> </p>
</div> </div>
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/2.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img src="img/testimonials/2.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
Donec euismod dolor ut ultricies consequat. Vivamus urna ipsum, rhoncus molestie neque ac, Donec euismod dolor ut ultricies consequat. Vivamus urna ipsum, rhoncus molestie neque ac,
mollis eleifend nibh. mollis eleifend nibh.
</p> </p>
</div> </div>
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/3.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img src="img/testimonials/3.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
In efficitur in velit et tempus. Duis nec odio dapibus, suscipit erat fringilla, imperdiet In efficitur in velit et tempus. Duis nec odio dapibus, suscipit erat fringilla, imperdiet
nibh. nibh.
@@ -295,8 +308,10 @@
</p> </p>
</div> </div>
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/4/1.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img class="testimonial__logo" src="img/testimonials/4/2.png" alt="Smashing Magazine"> <img src="img/testimonials/4/1.png" alt="Smashing Magazine">
<img src="img/testimonials/4/2.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
Sed vestibulum scelerisque urna, eu finibus leo facilisis sit amet. Proin id dignissim Sed vestibulum scelerisque urna, eu finibus leo facilisis sit amet. Proin id dignissim
magna. magna.
@@ -304,7 +319,9 @@
</p> </p>
</div> </div>
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/5.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img src="img/testimonials/5.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
Praesent ut eros tristique, malesuada lectus vel, lobortis massa. Nulla faucibus lorem id Praesent ut eros tristique, malesuada lectus vel, lobortis massa. Nulla faucibus lorem id
arcu arcu
@@ -312,7 +329,9 @@
</p> </p>
</div> </div>
<div class="testimonial col-12 col-sm-6 col-xl-4"> <div class="testimonial col-12 col-sm-6 col-xl-4">
<img class="testimonial__logo" src="img/testimonials/6.png" alt="Smashing Magazine"> <div class="testimonial__logo">
<img src="img/testimonials/6.png" alt="Smashing Magazine">
</div>
<p class="testimonial__text"> <p class="testimonial__text">
Fusce pharetra erat id odio blandit, nec Fusce pharetra erat id odio blandit, nec
pharetra eros venenatis. Pellentesque porttitor cursus massa et vestibulum. pharetra eros venenatis. Pellentesque porttitor cursus massa et vestibulum.
@@ -328,7 +347,7 @@
<p class="pricing__title">Fork Subscription Pricing</p> <p class="pricing__title">Fork Subscription Pricing</p>
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-8 col-sm-6 col-lg-3"> <div class="price-wrapper col-md-3 col-sm-6 col-7">
<div class="price"> <div class="price">
<p class="price__title">Students</p> <p class="price__title">Students</p>
<p class="price__value">$29</p> <p class="price__value">$29</p>
@@ -340,7 +359,7 @@
</a> </a>
</div> </div>
</div> </div>
<div class="col-8 col-sm-6 col-lg-3"> <div class="price-wrapper col-md-3 col-sm-6 col-7">
<div class="price"> <div class="price">
<p class="price__title">Professional</p> <p class="price__title">Professional</p>
<p class="price__value">$59</p> <p class="price__value">$59</p>
@@ -352,7 +371,7 @@
</a> </a>
</div> </div>
</div> </div>
<div class="col-8 col-sm-6 col-lg-3"> <div class="price-wrapper col-md-3 col-sm-6 col-7">
<div class="price"> <div class="price">
<p class="price__title">Agency</p> <p class="price__title">Agency</p>
<p class="price__value">$99</p> <p class="price__value">$99</p>
@@ -364,7 +383,7 @@
</a> </a>
</div> </div>
</div> </div>
<div class="col-8 col-sm-6 col-lg-3"> <div class="price-wrapper col-md-3 col-sm-6 col-7">
<div class="price"> <div class="price">
<p class="price__title">Enterprise</p> <p class="price__title">Enterprise</p>
<p class="price__value">$159</p> <p class="price__value">$159</p>
@@ -398,9 +417,10 @@
Subscribe to our newsletter Subscribe to our newsletter
</div> </div>
<div class="col-12 col-xl-6 oneline__form"> <div class="col-12 col-xl-6 oneline__form">
<input class="textfield oneline__form__component--growing" title="Email" placeholder="Email..."> <input class="newsletter__form-element textfield oneline__form__component--growing" title="Email" placeholder="Email...">
<button class="rounded-button rounded-button--uppercase oneline__form__component--fixed" <button class="newsletter__form-element rounded-button rounded-button--uppercase oneline__form__component--fixed"
type="submit">Subscribe type="submit">
Subscribe
</button> </button>
</div> </div>
</div> </div>

18
src/js/script.js Normal file → Executable file
View File

@@ -9,6 +9,7 @@
if (scrollTop >= scrollThreshold) { if (scrollTop >= scrollThreshold) {
$('.navbar').addClass('navbar--shrink'); $('.navbar').addClass('navbar--shrink');
$('#navbarNavDropdown').collapse('hide');
} else { } else {
$('.navbar').removeClass('navbar--shrink'); $('.navbar').removeClass('navbar--shrink');
} }
@@ -20,4 +21,21 @@
autoplay: true, autoplay: true,
autoplaySpeed: 4000, autoplaySpeed: 4000,
}); });
$(window).resize(function() {
$('#navbarNavDropdown').collapse('hide');
});
})(jQuery);
(function ($) {
"use strict";
const p = $('#github-watchers');
$.get({
//url: 'https://api.github.com/repos/bartlomiej-pluta/forkio',
url: 'https://localhost',
success: function(data) {
p.text((data ? data.watchers_count : 'No') + ' Watchers');
},
});
})(jQuery); })(jQuery);

35
src/scss/_about.scss Normal file → Executable file
View File

@@ -1,12 +1,7 @@
.about { .about {
background-color: $background-light; background-color: $background-light;
min-width: 320px;
@media all and (max-width: $desktop-xl) { padding: 50px 0 0;
.about {
padding: 75px 0 0 30px;
height: 710px;
}
}
} }
.about__title { .about__title {
@@ -14,6 +9,19 @@
font-weight: bold; font-weight: bold;
font-size: 48px; font-size: 48px;
color: $primary; color: $primary;
margin: 0;
@media all and (max-width: $tablet) {
font-size: 38px;
}
@media all and (max-width: $phone) {
font-size: 25px;
}
@media all and (max-width: $small-phone) {
font-size: 23px;
}
&--no-wrap { &--no-wrap {
white-space: nowrap; white-space: nowrap;
@@ -38,3 +46,16 @@
} }
} }
} }
.about__what-you-get {
img {
position: relative;
margin-top: -50px;
top: 70px;
@media all and (max-width: $phone) {
height: 400px;
}
}
}

34
src/scss/_author.scss Normal file → Executable file
View File

@@ -9,19 +9,43 @@
width: 85px; width: 85px;
height: 85px; height: 85px;
border-radius: 50%; border-radius: 50%;
@media all and (max-width: $phone) {
height: 65px;
width: 65px;
}
@media all and (max-width: $small-phone) {
height: 50px;
width: 50px;
}
} }
.author__details { .author__details {
margin-left: 23px; margin-left: 23px;
@media all and (max-width: $phone) {
margin-left: 15px;
}
} }
.author__name { .author__name {
margin: 0; margin: 0;
padding: 0; padding: 0 5px 0 0;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
color: $primary-dark; color: $primary-dark;
@media all and (max-width: $phone) {
font-size: 17px;
}
@media all and (max-width: $small-phone) {
font-size: 15px;
}
} }
.nickname { .nickname {
@@ -37,5 +61,13 @@
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
@media all and (max-width: $small-phone) {
font-size: 14px;
}
@media all and (max-width: $phone) {
font-size: 15px;
}
} }
} }

7
src/scss/_brand.scss Normal file → Executable file
View File

@@ -5,6 +5,9 @@
.brand__logo { .brand__logo {
height: 45px; height: 45px;
margin-right: 17px; margin-right: 17px;
@media all and (max-width: $phone) {
height: 30px;
}
} }
.brand__name { .brand__name {
@@ -15,6 +18,10 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@media all and (max-width: $phone) {
font-size: 15px;
}
&--emph { &--emph {
color: $primary; color: $primary;
font-style: normal; font-style: normal;

53
src/scss/_buttons.scss Normal file → Executable file
View File

@@ -7,6 +7,10 @@
border-radius: 30px; border-radius: 30px;
transition: $hover-duration; transition: $hover-duration;
@media all and (max-width: $phone) {
padding: 7px 20px;
}
&:hover { &:hover {
background-color: darken($primary, $hover-threshold); background-color: darken($primary, $hover-threshold);
transition: $hover-duration; transition: $hover-duration;
@@ -24,6 +28,10 @@
@extend .rounded-button--strong; @extend .rounded-button--strong;
font-size: 21px; font-size: 21px;
padding: 15px 60px; padding: 15px 60px;
@media all and (max-width: $phone) {
font-size: 14px;
}
} }
&--uppercase { &--uppercase {
@@ -45,10 +53,24 @@
text-align: left; text-align: left;
line-height: 30px; line-height: 30px;
@media all and (max-width: $desktop) {
font-size: 18px;
}
@media all and (max-width: $tablet) {
padding: 10px 15px;
font-size: 15px;
}
@media all and (max-width: $phone) {
font-size: 15px;
}
&:hover { &:hover {
background-color: lighten($primary, $hover-threshold); background-color: lighten($primary, $hover-threshold);
cursor: pointer; cursor: pointer;
transition: $hover-duration; transition: $hover-duration;
text-decoration: none;
} }
&--github { &--github {
@@ -57,6 +79,7 @@
&:hover { &:hover {
background-color: darken($github-color, $hover-threshold); background-color: darken($github-color, $hover-threshold);
color: black;
} }
} }
@@ -66,6 +89,7 @@
&:hover { &:hover {
background-color: lighten($twitter-color, $hover-threshold); background-color: lighten($twitter-color, $hover-threshold);
color: white;
} }
} }
@@ -75,11 +99,24 @@
&:hover { &:hover {
background-color: lighten($facebook-color, $hover-threshold); background-color: lighten($facebook-color, $hover-threshold);
color: white;
} }
} }
&--fixed-width { &--fixed-width {
width: 240px; width: 240px;
@media all and (max-width: $desktop) {
width: 180px;
}
@media all and (max-width: $tablet) {
width: 130px;
}
@media all and (max-width: $phone) {
width: 180px;
}
} }
&--small { &--small {
@@ -90,6 +127,10 @@
color: $primary; color: $primary;
transition: $hover-duration; transition: $hover-duration;
@media all and (max-width: $tablet) {
font-size: 12px;
}
&:hover { &:hover {
background-color: darken($background-light, $hover-threshold); background-color: darken($background-light, $hover-threshold);
transition: $hover-duration; transition: $hover-duration;
@@ -99,4 +140,16 @@
.rect-button__icon { .rect-button__icon {
margin-right: 35px; margin-right: 35px;
@media all and (max-width: $desktop) {
margin-right: 15px;
}
@media all and (max-width: $tablet) {
margin-right: 10px;
}
@media all and (max-width: $phone) {
margin-right: 35px;
}
} }

1
src/scss/_download.scss Normal file → Executable file
View File

@@ -1,6 +1,7 @@
.download { .download {
text-align: center; text-align: center;
width: 100%; width: 100%;
min-width: 320px;
} }
.download__rounded-button--translated { .download__rounded-button--translated {

32
src/scss/_editor.scss Normal file → Executable file
View File

@@ -1,16 +1,34 @@
.editor {
min-width: 320px;
}
.editor__description { .editor__description {
text-align: center; text-align: center;
} }
.editor__title { .editor__title {
padding: 0 10px;
margin-top: 60px; margin-top: 60px;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 54px; font-size: 54px;
font-weight: bold; font-weight: bold;
text-transform: uppercase; text-transform: uppercase;
color: $primary-dark; color: $primary-dark;
@media all and (max-width: $desktop) {
font-size: 45px;
}
@media all and (max-width: $tablet) {
font-size: 40px;
}
@media all and (max-width: $phone) { @media all and (max-width: $phone) {
font-size: 48px; font-size: 33px;
}
@media all and (max-width: $small-phone) {
font-size: 30px;
} }
} }
@@ -20,6 +38,18 @@
font-size: 21px; font-size: 21px;
font-weight: 400; font-weight: 400;
color: $dark-text; color: $dark-text;
@media all and (max-width: $desktop) {
font-size: 20px;
}
@media all and (max-width: $tablet) {
font-size: 18px;
}
@media all and (max-width: $phone) {
font-size: 16px;
}
} }
.editor__github { .editor__github {

17
src/scss/_feature.scss Normal file → Executable file
View File

@@ -3,7 +3,14 @@
} }
.feature__icon { .feature__icon {
text-align: left; text-align: right;
@media all and (max-width: $phone) {
img {
width: 90px;
}
}
} }
.feature__title { .feature__title {
@@ -12,10 +19,18 @@
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: $dark-text; color: $dark-text;
@media all and (max-width: $phone) {
font-size: 14px;
}
} }
.feature__description { .feature__description {
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 14px; font-size: 14px;
color: $regular-text; color: $regular-text;
@media all and (max-width: $phone) {
font-size: 12px;
}
} }

9
src/scss/_footer.scss Normal file → Executable file
View File

@@ -3,6 +3,7 @@
padding-top: 65px; padding-top: 65px;
border-top: solid 1px $background-light; border-top: solid 1px $background-light;
margin-bottom: 95px; margin-bottom: 95px;
min-width: 320px;
&__about { &__about {
&__description { &__description {
@@ -49,6 +50,14 @@
font-weight: bold; font-weight: bold;
font-size: 30px; font-size: 30px;
color: #3f3f3f; color: #3f3f3f;
@media all and (max-width: $desktop-xl) {
font-size: 27px;
}
@media all and (max-width: $desktop) {
font-size: 20px;
}
} }
&__availability { &__availability {

24
src/scss/_form.scss Normal file → Executable file
View File

@@ -11,6 +11,14 @@
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: $gray-text; color: $gray-text;
@media all and (max-width: $tablet) {
font-size: 14px;
}
@media all and (max-width: $phone) {
font-size: 12px;
}
} }
} }
@@ -18,15 +26,27 @@
display: flex; display: flex;
align-content: space-between; align-content: space-between;
align-items: center; align-items: center;
@media all and (max-width: $small-phone) {
flex-direction: column;
}
} }
.oneline__form__component--growing { .oneline__form__component--growing {
width: 100%; width: 100%;
min-width: 100px; min-width: 100px;
margin: 0 10px; margin: 5px 10px;
@media all and (max-width: $phone) {
margin: 5px 5px;
}
} }
.oneline__form__component--fixed { .oneline__form__component--fixed {
white-space: nowrap; white-space: nowrap;
margin: 0 10px; margin: 5px 10px;
@media all and (max-width: $phone) {
margin: 5px 5px;
}
} }

3
src/scss/_global.scss Normal file → Executable file
View File

@@ -1,3 +1,4 @@
body { .wrapper {
overflow-x: hidden; overflow-x: hidden;
max-width: 100%;
} }

40
src/scss/_header.scss Normal file → Executable file
View File

@@ -1,7 +1,21 @@
.header { .header {
background: black url(../img/header/img.png) no-repeat center 120px/ cover;
height: 100vh; height: 100vh;
padding-top: 110px; padding-top: 110px;
width: 100%;
display: table;
background: $hero-background;
min-width: 320px;
}
.header__text {
display: table-row;
background: $hero-background;
}
.header__image {
background: $hero-background url(../img/header/img.png) no-repeat center top / cover;
display: table-row;
height: 100%;
} }
.header__title { .header__title {
@@ -19,13 +33,7 @@
color: $primary; color: $primary;
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;
} padding: 0 10px;
@media all and (max-width: $phone) {
.header__subtitle {
font-size: 24px;
text-transform: capitalize;
}
} }
.header__description { .header__description {
@@ -37,3 +45,19 @@
text-transform: uppercase; text-transform: uppercase;
text-align: center; text-align: center;
} }
@media all and (max-width: $tablet) {
.header__title {
font-size: 60px;
}
.header__subtitle {
font-size: 20px;
text-transform: capitalize;
}
.header__description {
font-size: 14px;
}
}

45
src/scss/_navbar.scss Normal file → Executable file
View File

@@ -16,27 +16,60 @@ $shrinking-duration: 0.4s;
.navbar { .navbar {
background-color: white; background-color: white;
min-width: 320px;
} }
.navbar__content { .navbar__content {
display: flex; text-align: right;
} }
.navbar__content__header { .navbar__content__header {
order: 1;
} }
.navbar__content__toggler { .navbar__content__toggler {
order: 4;
border: none; border: none;
&:focus {
outline: none;
}
} }
.navbar__content__body { .navbar__content__body {
order: 2;
} }
.navbar__content__button { .navbar__content__button {
order: 3; @media all and (max-width: $phone) {
font-size: 12px;
}
@media all and (max-width: $desktop) {
&--desktop {
display: none;
}
&--phone {
display: inline;
}
}
@media all and (min-width: $desktop) {
&--desktop {
display: inline;
}
&--phone {
display: none;
}
}
@media all and (max-width: $small-phone) {
&--desktop {
display: inline;
}
&--phone {
display: none;
}
}
} }
.navbar__link { .navbar__link {
@@ -49,7 +82,7 @@ $shrinking-duration: 0.4s;
margin: 0 20px; margin: 0 20px;
@media all and (max-width: $desktop-xl) { @media all and (max-width: $desktop-xl) {
margin: 0 5px; margin: 0 2px;
} }
} }

1
src/scss/_news.scss Normal file → Executable file
View File

@@ -1,5 +1,6 @@
.news { .news {
padding-top: 70px; padding-top: 70px;
min-width: 320px;
} }
.news__title { .news__title {

19
src/scss/_newsletter.scss Normal file → Executable file
View File

@@ -1,6 +1,7 @@
.newsletter { .newsletter {
padding: 55px 0; padding: 55px 0;
background-color: #f4f4f4; background-color: #f4f4f4;
min-width: 320px;
} }
.newsletter__title { .newsletter__title {
@@ -12,7 +13,23 @@
text-align: center; text-align: center;
@media all and (max-width: $desktop-xl) { @media all and (max-width: $desktop-xl) {
margin-bottom: 50px; margin-bottom: 20px;
}
@media all and (max-width: $phone) {
font-size: 20px;
}
}
.newsletter__form-element {
font-size: 16px;
@media all and (max-width: $desktop) {
font-size: 14px;
}
@media all and (max-width: $tablet) {
font-size: 12px;
} }
} }

100
src/scss/_pricing.scss Normal file → Executable file
View File

@@ -1,46 +1,38 @@
.pricing { .pricing {
background: $background-violet url(../img/testimonials/pricing.png) no-repeat 50% 30%; background: $background-violet url(../img/testimonials/pricing.png) no-repeat center / cover;
padding-top: 90px; padding-top: 90px;
padding-bottom: 75px; padding-bottom: 75px;
min-width: 320px;
} }
.pricing__title { .pricing__title {
padding: 10px;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 48px; font-size: 48px;
font-weight: bold; font-weight: bold;
color: white; color: white;
text-transform: capitalize; text-transform: capitalize;
text-align: center; text-align: center;
@media all and (max-width: $tablet) {
font-size: 38px;
} }
.price { @media all and (max-width: $phone) {
position: relative; font-size: 30px;
margin-top: 110px; }
margin-bottom: 125px; }
background-color: rgba(255, 255, 255, 0.06);
height: 450px; .price-wrapper {
padding: 40px 15px;
height: 560px;
transition: $hover-duration; transition: $hover-duration;
@media all and (max-width: $desktop) {
margin-top: 15px;
margin-bottom: 15px;
}
@media all and (min-width: $desktop) and (max-width: $desktop-xl) {
height: 470px;
}
&:hover { &:hover {
@media all and (min-width: $desktop) { padding: 0 2px;
margin-top: 70px; transition: $hover-duration;
margin-bottom: 75px;
height: 530px; .price {
}
@media all and (max-width: $desktop) {
margin-top: 7px;
margin-bottom: 7px;
height: 467px;
}
background-color: rgba(0, 0, 0, 0.06); background-color: rgba(0, 0, 0, 0.06);
transition: $hover-duration; transition: $hover-duration;
@@ -51,6 +43,18 @@
} }
} }
@media all and (max-width: $tablet) {
height: 470px;
}
}
.price {
position: relative;
height: 100%;
background-color: rgba(255, 255, 255, 0.06);
transition: $hover-duration;
}
.price__title { .price__title {
background-color: rgba(255, 255, 255, 0.06); background-color: rgba(255, 255, 255, 0.06);
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
@@ -61,6 +65,14 @@
padding: 30px 0; padding: 30px 0;
text-align: center; text-align: center;
transition: $hover-duration; transition: $hover-duration;
@media all and (max-width: $desktop-xl) {
font-size: 18px;
}
@media all and (max-width: $small-phone) {
font-size: 16px;
}
} }
.price__value { .price__value {
@@ -69,6 +81,14 @@
font-weight: bold; font-weight: bold;
color: white; color: white;
text-align: center; text-align: center;
@media all and (max-width: $desktop-xl) {
font-size: 50px;
}
@media all and (max-width: $desktop) {
font-size: 40px;
}
} }
.price__period { .price__period {
@@ -91,17 +111,25 @@
} }
.price__description { .price__description {
padding: 0 15px;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: white; color: white;
text-transform: capitalize; text-transform: capitalize;
text-align: center; text-align: center;
@media all and (max-width: $desktop-xl) {
font-size: 13px;
}
@media all and (max-width: $small-phone) {
font-size: 11px;
}
} }
.price__rounded-button--purchase { .price__rounded-button--purchase {
padding-top: 10px; padding: 10px 0;
padding-bottom: 10px;
background-color: rgba(255, 255, 255, 0.15); background-color: rgba(255, 255, 255, 0.15);
position: absolute; position: absolute;
left: 0; left: 0;
@@ -110,11 +138,25 @@
bottom: 35px; bottom: 35px;
margin: auto; margin: auto;
display: block; display: block;
width: 80%;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
text-transform: uppercase; text-transform: uppercase;
width: 60%;
@media all and (max-width: $desktop-xl) {
font-size: 13px;
width: 70%;
}
@media all and (max-width: $tablet) {
width: 60%;
}
@media all and (max-width: $small-phone) {
font-size: 11px;
width: 60%;
}
} }
.pricing__footer { .pricing__footer {

17
src/scss/_reviews.scss Normal file → Executable file
View File

@@ -12,6 +12,14 @@
font-size: 20px; font-size: 20px;
color: #333333; color: #333333;
text-align: center; text-align: center;
@media all and (max-width: $phone) {
font-size: 15px;
}
@media all and (max-width: $small-phone) {
font-size: 13px;
}
} }
.review__date { .review__date {
@@ -21,4 +29,13 @@
font-weight: 500; font-weight: 500;
color: $regular-text; color: $regular-text;
text-align: center; text-align: center;
@media all and (max-width: $phone) {
margin-top: 20px;
font-size: 12px;
}
@media all and (max-width: $small-phone) {
font-size: 10px;
}
} }

2
src/scss/_social.scss Normal file → Executable file
View File

@@ -5,7 +5,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@media all and (max-width: $desktop) { @media all and (max-width: $phone) {
flex-direction: column; flex-direction: column;
} }
} }

28
src/scss/_testimonials.scss Normal file → Executable file
View File

@@ -1,22 +1,37 @@
.testimonials { .testimonials {
position: relative; position: relative;
background: $background-violet url(../img/testimonials/testimonials.png) no-repeat 50% 0; background: $background-violet url(../img/testimonials/testimonials.png) no-repeat center 100% / cover;
min-width: 320px;
@media all and (max-width: $tablet) {
background: $background-violet url(../img/testimonials/testimonials.png) no-repeat center top;
}
} }
.testimonials__h1 { .testimonials__h1 {
padding: 100px 0; padding: 100px 50px;
font-family: Montserrat, sans-serif; font-family: Montserrat, sans-serif;
font-size: 48px; font-size: 48px;
font-weight: bold; font-weight: bold;
color: white; color: white;
text-align: center; text-align: center;
text-transform: capitalize; text-transform: capitalize;
@media all and (max-width: $tablet) {
font-size: 38px;
}
@media all and (max-width: $phone) {
font-size: 30px;
}
} }
.testimonial { .testimonial {
position: relative; position: relative;
text-align: center; text-align: center;
min-height: 180px; min-height: 180px;
max-width: 300px;
margin: 0 auto;
@media all and (max-width: $phone) { @media all and (max-width: $phone) {
margin-bottom: 50px; margin-bottom: 50px;
@@ -28,19 +43,18 @@
} }
.testimonial__logo { .testimonial__logo {
padding-bottom: 40px; height: 80px;
} }
.testimonial__text { .testimonial__text {
@media all and (min-width: $phone) {
position: absolute;
bottom: 0;
}
font-family: Source Sans Pro, sans-serif; font-family: Source Sans Pro, sans-serif;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
color: white; color: white;
} }
.testimonials__delimiter { .testimonials__delimiter {

3
src/scss/_variables.scss Normal file → Executable file
View File

@@ -7,6 +7,8 @@ $light-text: #a291a5;
$gray-text: #c8cbcf; $gray-text: #c8cbcf;
$lightgray-text: #d3d1da; $lightgray-text: #d3d1da;
$hero-background: #010005;
$background-light: #f4f4f4; $background-light: #f4f4f4;
$background-violet: #4a3b4e; $background-violet: #4a3b4e;
@@ -20,6 +22,7 @@ $github-color: #f3f3f3;
$twitter-color: #26a6d1; $twitter-color: #26a6d1;
$facebook-color: #3b5998; $facebook-color: #3b5998;
$small-phone: 350px;
$phone: 576px; $phone: 576px;
$tablet: 768px; $tablet: 768px;
$desktop: 992px; $desktop: 992px;

4899
yarn.lock Executable file

File diff suppressed because it is too large Load Diff