diff --git a/Natours/starter/css/style.css b/Natours/starter/css/style.css index bf7e86e..30a486c 100644 --- a/Natours/starter/css/style.css +++ b/Natours/starter/css/style.css @@ -319,6 +319,32 @@ body { font-size: 6rem; font-weight: 100; } +.story { + width: 75%; + margin: 0 auto; + box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.1); + background-color: #fff; + border-radius: 3px; + padding: 6rem; + padding-left: 9rem; + font-size: 1.6rem; + transform: skewX(-12deg); } + .story > * { + transform: skewX(12deg); } + .story__shape { + width: 15rem; + height: 15rem; + float: left; + -webkit-shape-outside: circle(50% at 50% 50%); + shape-outside: circle(50% at 50% 50%); + -webkit-clip-path: circle(50% at 50% 50%); + clip-path: circle(50% at 50% 50%); + transform: translateX(-3rem) skewX(12deg); } + .story__img { + height: 100%; } + .story__text { + transform: skewX(12deg); } + .header { height: 95vh; background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.801), rgba(40, 180, 133, 0.808)), url("../img/hero.jpg"); @@ -393,3 +419,7 @@ body { background-color: #f7f7f7; padding: 25rem 0 15rem 0; margin-top: -10rem; } + +.section-stories { + padding: 15rem 0; + background-color: #f7f7f7; } diff --git a/Natours/starter/index.html b/Natours/starter/index.html index c886365..44249c8 100644 --- a/Natours/starter/index.html +++ b/Natours/starter/index.html @@ -231,11 +231,38 @@ -
Discover all tours
+ +
+
+

We make people genuinely happy

+
+ +
+
+
+ Person on a tour +
+
+

+ I had the best weekend with my family +

+

+ Lorem ipsum dolor sit amet, qui minim labore adipisicing minim + sint cillum sint consectetur cupidatat. Lorem ipsum dolor sit + amet, qui minim labore adipisicing minim sint cillum sint + consectetur cupidatat. Lorem ipsum dolor sit amet, qui minim + labore adipisicing minim sint cillum sint consectetur cupidatat. +

+
+
diff --git a/Natours/starter/sass/components/_story.scss b/Natours/starter/sass/components/_story.scss new file mode 100644 index 0000000..04e8eaf --- /dev/null +++ b/Natours/starter/sass/components/_story.scss @@ -0,0 +1,36 @@ +.story { + width: 75%; + margin: 0 auto; + box-shadow: 0 3rem 6rem rgba($color-black, 0.1); + background-color: $color-white; + border-radius: 3px; + padding: 6rem; + padding-left: 9rem; + font-size: $default-font-size; + transform: skewX(-12deg); + + & > * { + transform: skewX(12deg); + } + + &__shape { + width: 15rem; + height: 15rem; + float: left; + + -webkit-shape-outside: circle(50% at 50% 50%); + shape-outside: circle(50% at 50% 50%); + + -webkit-clip-path: circle(50% at 50% 50%); + clip-path: circle(50% at 50% 50%); + transform: translateX(-3rem) skewX(12deg); + } + + &__img { + height: 100%; + } + + &__text { + transform: skewX(12deg); + } +} diff --git a/Natours/starter/sass/main.scss b/Natours/starter/sass/main.scss index f53d2a3..7db48a8 100644 --- a/Natours/starter/sass/main.scss +++ b/Natours/starter/sass/main.scss @@ -11,8 +11,9 @@ @import "components/composition"; @import "components/feature-box"; @import "components/card"; +@import "components/story"; @import "layout/header"; @import "layout/grid"; -@import "pages/home" \ No newline at end of file +@import "pages/home"; diff --git a/Natours/starter/sass/pages/_home.scss b/Natours/starter/sass/pages/_home.scss index f0af80c..cdb0938 100644 --- a/Natours/starter/sass/pages/_home.scss +++ b/Natours/starter/sass/pages/_home.scss @@ -1,24 +1,34 @@ .section-about { - background-color: $color-grey-light-1; - padding: 25rem 0; - margin-top: -20vh; + background-color: $color-grey-light-1; + padding: 25rem 0; + margin-top: -20vh; } .section-features { - padding: 20rem 0; - background-image: linear-gradient(to right bottom,rgba($color-primary-light, 0.801), rgba($color-primary-dark, 0.808)) , url("../img/nat-4.jpg"); - background-size: cover; - - margin-top: -10rem; - transform: skewY(-7deg); + padding: 20rem 0; + background-image: linear-gradient( + to right bottom, + rgba($color-primary-light, 0.801), + rgba($color-primary-dark, 0.808) + ), + url("../img/nat-4.jpg"); + background-size: cover; - & > * { - transform: skewY(7deg); - } + margin-top: -10rem; + transform: skewY(-7deg); + + & > * { + transform: skewY(7deg); + } } .section-tours { - background-color: $color-grey-light-1; - padding: 25rem 0 15rem 0; - margin-top: -10rem; + background-color: $color-grey-light-1; + padding: 25rem 0 15rem 0; + margin-top: -10rem; +} + +.section-stories { + padding: 15rem 0; + background-color: $color-grey-light-1; }