From 038b2f41ac70e10a80a96025c143c94da6d7fb59 Mon Sep 17 00:00:00 2001 From: Yusuf Ipek Date: Mon, 10 May 2021 09:13:17 +0300 Subject: [PATCH] created overview --- src/App.scss | 2 + src/SASS/abstracts/_variables.scss | 1 + src/SASS/base/_animations.scss | 47 +++++--------------- src/SASS/base/_typography.scss | 8 ++++ src/SASS/components/buttons.scss | 20 +++++++++ src/SASS/layout/_home.scss | 63 ++++++++++++++++++++++++++- src/commons/hotel-view/hotel-view.jsx | 55 ++++++++++++++++++++++- 7 files changed, 157 insertions(+), 39 deletions(-) create mode 100644 src/SASS/components/buttons.scss diff --git a/src/App.scss b/src/App.scss index aa3ea0e..4b6a3bf 100644 --- a/src/App.scss +++ b/src/App.scss @@ -3,6 +3,8 @@ @import "./SASS/abstracts/functions"; @import "./SASS/abstracts/include-media"; +@import "./SASS/components/buttons"; + @import "./SASS/base/animations"; @import "./SASS/base/typography"; @import "./SASS/base/base"; diff --git a/src/SASS/abstracts/_variables.scss b/src/SASS/abstracts/_variables.scss index c2371ca..b59e8ad 100644 --- a/src/SASS/abstracts/_variables.scss +++ b/src/SASS/abstracts/_variables.scss @@ -34,6 +34,7 @@ $color-black: #000; $color-white: #fff; // FONT CONTROL +$smaller-font-size: 0.8rem; $small-font-size: 1.2rem; $default-font-size: 1.6rem; $normal-font-size: 1.4rem; diff --git a/src/SASS/base/_animations.scss b/src/SASS/base/_animations.scss index 291a7b4..62aa29f 100644 --- a/src/SASS/base/_animations.scss +++ b/src/SASS/base/_animations.scss @@ -1,43 +1,16 @@ -@keyframes moveInBottom { +@keyframes pulsate { 0% { - opacity: 0; - transform: translateY(10rem); + transform: scale(1); + box-shadow: none; + } + + 50% { + transform: scale(1.05); + box-shadow: 0 1rem 4rem rgba($color-black, 0.25); } 100% { - opacity: 1; - transform: translate(0); - } -} - -@keyframes moveInLeft { - 0% { - opacity: 0; - transform: translateX(-10rem); - } - - 80% { - transform: translateX(1rem); - } - - 100% { - opacity: 1; - transform: translate(0); - } -} - -@keyframes moveInRight { - 0% { - opacity: 0; - transform: translateX(10rem); - } - - 80% { - transform: translateX(-1rem); - } - - 100% { - opacity: 1; - transform: translate(0); + transform: scale(1); + box-shadow: none; } } diff --git a/src/SASS/base/_typography.scss b/src/SASS/base/_typography.scss index dc16482..d23a575 100644 --- a/src/SASS/base/_typography.scss +++ b/src/SASS/base/_typography.scss @@ -3,3 +3,11 @@ body { font-weight: 400; line-height: 1.6; } + +.heading-main { + font-size: 2.25rem; + font-weight: 300; + text-transform: uppercase; + letter-spacing: 1px; + padding: 1.5rem 3rem; +} diff --git a/src/SASS/components/buttons.scss b/src/SASS/components/buttons.scss new file mode 100644 index 0000000..3162418 --- /dev/null +++ b/src/SASS/components/buttons.scss @@ -0,0 +1,20 @@ +.btn-inline { + border: none; + color: $color-primary; + font-size: inherit; + border-bottom: 1px solid currentColor; + padding: 2px; + display: inline-block; + background-color: transparent; + cursor: pointer; + transition: all 0.2s; + + &:hover { + color: $color-grey-dark-1; + animation: pulsate 1s infinite; + } + + &:focus { + outline: none; + } +} diff --git a/src/SASS/layout/_home.scss b/src/SASS/layout/_home.scss index a06fcae..1e1561c 100644 --- a/src/SASS/layout/_home.scss +++ b/src/SASS/layout/_home.scss @@ -1,7 +1,7 @@ .header { height: 7rem; background-color: $color-white; - border-bottom: $color-grey-light-2; + border-bottom: 1px solid $color-grey-light-2; display: flex; font-size: $normal-font-size; @@ -197,3 +197,64 @@ padding: 2.5rem; } } + +.gallery { + display: flex; + + &__photo { + width: 100%; + display: block; + } +} + +.overview { + display: flex; + align-items: center; + border-bottom: 1px solid $color-grey-light-2; + + &__stars { + margin-right: auto; + display: flex; + } + + &__location { + font-size: 1.2rem; + display: flex; + align-items: center; + } + + &__icon-location, + &__icon-star { + width: 1.75rem; + height: 1.75rem; + fill: $color-primary; + } + + &__icon-location { + margin-right: 0.1rem; + } + + &__rating { + background-color: $color-primary; + margin-left: 3rem; + color: $color-white; + padding: 0 2.25rem; + align-self: stretch; + + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + } + + &__rating-average { + font-size: 2.25rem; + font-weight: 300; + margin-bottom: -4px; + } + + &__rating-count { + font-size: $small-font-size; + text-transform: uppercase; + } +} diff --git a/src/commons/hotel-view/hotel-view.jsx b/src/commons/hotel-view/hotel-view.jsx index 52683b6..ee06af9 100644 --- a/src/commons/hotel-view/hotel-view.jsx +++ b/src/commons/hotel-view/hotel-view.jsx @@ -1,5 +1,58 @@ +import hotel1 from "../img/hotel-1.jpg"; +import hotel2 from "../img/hotel-2.jpg"; +import hotel3 from "../img/hotel-3.jpg"; +import sprite from "../img/sprite.svg"; + function HotelView() { - return
Hotel view
; + return ( +
+
+
+ Hotel +
+
+ Hotel +
+
+ Hotel +
+
+ +
+

Hotel Las Palmas

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+
8.6
+
429 votes
+
+
+
+ ); } export default HotelView;