|
| 1 | +.room-home-hero { |
| 2 | + /* border: 5px solid red; */ |
| 3 | + display: grid; |
| 4 | + grid-template-columns: auto calc(30.56% + 160px); |
| 5 | +} |
| 6 | + |
| 7 | +/* HERO SLIDER */ |
| 8 | + |
| 9 | +.room-home-hero-slider { |
| 10 | + /* border: 5px solid yellow; */ |
| 11 | + position: relative; |
| 12 | +} |
| 13 | + |
| 14 | +.room-home-hero-slider-container { |
| 15 | + width: 100%; |
| 16 | + overflow: hidden; |
| 17 | +} |
| 18 | + |
| 19 | +.room-home-hero-img-wrapper { |
| 20 | + height: 63vh; |
| 21 | + max-height: 63vh; |
| 22 | + display: flex; |
| 23 | + width: 300%; |
| 24 | + /* border: 1px solid red; */ |
| 25 | +} |
| 26 | + |
| 27 | +.room-home-hero-img-wrapper > img { |
| 28 | + height: 100%; |
| 29 | + width: 100%; |
| 30 | + /* border: 1px solid red; */ |
| 31 | + display: block; |
| 32 | + object-fit: cover; |
| 33 | + transform: translateX(0%); |
| 34 | + transition: all 0.6s ease-in-out; |
| 35 | +} |
| 36 | + |
| 37 | +.room-home-hero-nav { |
| 38 | + display: flex; |
| 39 | + position: absolute; |
| 40 | + bottom: 0; |
| 41 | + right: -160px; |
| 42 | +} |
| 43 | +.room-home-hero-nav-btn { |
| 44 | + width: 80px; |
| 45 | + height: 80px; |
| 46 | + display: flex; |
| 47 | + justify-content: center; |
| 48 | + align-items: center; |
| 49 | + border: none; |
| 50 | + background-color: hsl(0, 0%, 0%); |
| 51 | + cursor: pointer; |
| 52 | + transition: all 0.4s ease-in-out; |
| 53 | +} |
| 54 | + |
| 55 | +.room-home-hero-nav-btn:hover { |
| 56 | + background-color: hsl(0, 0%, 27%); |
| 57 | +} |
| 58 | + |
| 59 | +.room-home-hero-nav-arrow { |
| 60 | + height: 20px; |
| 61 | + opacity: 0.8; |
| 62 | +} |
| 63 | + |
| 64 | +/* - Dark Gray: hsl(0, 0%, 63%) |
| 65 | +- Black: hsl(0, 0%, 0%) |
| 66 | +- White: hsl(0, 0%, 100%) |
| 67 | +- Very Dark Gray: hsl(0, 0%, 27%) */ |
| 68 | + |
| 69 | +/* HERO TEXT */ |
| 70 | + |
| 71 | +.room-home-hero-text-content-wrapper { |
| 72 | + padding: 60px 80px; |
| 73 | + display: flex; |
| 74 | + flex-direction: column; |
| 75 | + /* align-items: center; */ |
| 76 | + /* justify-content: center; */ |
| 77 | + /* border: 5px solid salmon; */ |
| 78 | +} |
| 79 | + |
| 80 | +.room-home-hero-text-content-wrapper-fade-in { |
| 81 | + animation: room-fade-in 0.8s ease-in-out; |
| 82 | +} |
| 83 | + |
| 84 | +@keyframes room-fade-in { |
| 85 | + from { |
| 86 | + opacity: 0; |
| 87 | + } |
| 88 | + |
| 89 | + to { |
| 90 | + opacity: 1; |
| 91 | + } |
| 92 | +} |
| 93 | + |
| 94 | +.room-home-hero-text-content-title { |
| 95 | + font-size: 3em; |
| 96 | + font-weight: 600; |
| 97 | + margin-bottom: 20px; |
| 98 | +} |
| 99 | + |
| 100 | +.room-home-hero-text-content-desc { |
| 101 | + color: hsl(0, 0%, 63%); |
| 102 | + font-size: 1.2em; |
| 103 | + margin-bottom: 10px; |
| 104 | + line-height: 1.5; |
| 105 | +} |
| 106 | + |
| 107 | +.room-home-hero-text-content-cta { |
| 108 | + display: flex; |
| 109 | + letter-spacing: 10px; |
| 110 | + font-size: 1em; |
| 111 | + background-color: transparent; |
| 112 | + padding: 10px 0px; |
| 113 | + border: none; |
| 114 | + cursor: pointer; |
| 115 | + transition: all 0.4s ease-in-out; |
| 116 | + font-weight: 600; |
| 117 | +} |
| 118 | + |
| 119 | +.room-home-hero-text-content-cta:hover { |
| 120 | + opacity: 0.5; |
| 121 | +} |
| 122 | + |
| 123 | +.room-home-hero-text-content-cta > img { |
| 124 | + margin-left: 20px; |
| 125 | + transition: all 0.4s ease-in-out; |
| 126 | +} |
| 127 | + |
| 128 | +.room-home-hero-text-content-cta:hover > img { |
| 129 | + margin-left: 30px; |
| 130 | +} |
| 131 | + |
| 132 | +@media only screen and (max-width: 1057px) { |
| 133 | + .room-home-hero-nav { |
| 134 | + bottom: 0; |
| 135 | + right: 0px; |
| 136 | + } |
| 137 | + .room-home-hero { |
| 138 | + display: flex; |
| 139 | + flex-direction: column; |
| 140 | + } |
| 141 | + .room-home-hero-img-wrapper { |
| 142 | + height: 500px; |
| 143 | + } |
| 144 | +} |
| 145 | + |
| 146 | +@media only screen and (max-width: 600px) { |
| 147 | + .room-home-hero-img-wrapper { |
| 148 | + /* height: auto; */ |
| 149 | + /* min-height: 300px; */ |
| 150 | + max-height: 380px; |
| 151 | + } |
| 152 | + |
| 153 | + .room-home-hero-nav-btn { |
| 154 | + width: 60px; |
| 155 | + height: 60px; |
| 156 | + } |
| 157 | + |
| 158 | + .room-home-hero-text-content-wrapper { |
| 159 | + padding: 40px 20px; |
| 160 | + } |
| 161 | + |
| 162 | + .room-home-hero-text-content-desc { |
| 163 | + margin-bottom: 20px; |
| 164 | + } |
| 165 | +} |
| 166 | + |
| 167 | +@media only screen and (max-width: 375px) { |
| 168 | + .room-home-hero-nav-btn { |
| 169 | + width: 50px; |
| 170 | + height: 50px; |
| 171 | + } |
| 172 | +} |
0 commit comments