|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | + <base href="." /> |
| 8 | + <title>Accordion</title> |
| 9 | + <style> |
| 10 | + /* |
| 11 | + SPACING SYSTEM (px) |
| 12 | + 2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 |
| 13 | +
|
| 14 | + FONT SIZE SYSTEM (px) |
| 15 | + 10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 |
| 16 | + */ |
| 17 | + |
| 18 | + /* |
| 19 | + Main Color: #087f5b |
| 20 | + Grey Color: #212529 |
| 21 | + */ |
| 22 | + * { |
| 23 | + margin: 0; |
| 24 | + padding: 0; |
| 25 | + box-sizing: border-box; |
| 26 | + } |
| 27 | + |
| 28 | + body { |
| 29 | + font-family: 'Inter', sans-serif; |
| 30 | + color: #212529; |
| 31 | + width: 720px; |
| 32 | + margin: 24px auto; |
| 33 | + line-height: 1; |
| 34 | + } |
| 35 | + img { |
| 36 | + height: 200px; |
| 37 | + border-radius: 8px; |
| 38 | + transform: scale(1.4); |
| 39 | + box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.07); |
| 40 | + } |
| 41 | + |
| 42 | + .carousel { |
| 43 | + background-color: #087f5b; |
| 44 | + width: 800px; |
| 45 | + margin: 100px auto; |
| 46 | + border-radius: 8px; |
| 47 | + padding: 24px 40px 24px 96px; |
| 48 | + display: flex; |
| 49 | + align-items: center; |
| 50 | + gap: 80px; |
| 51 | + position: relative; |
| 52 | + } |
| 53 | + |
| 54 | + .testimonial { |
| 55 | + color: #e6fcf5; |
| 56 | + } |
| 57 | + |
| 58 | + .testimonial-text { |
| 59 | + font-size: 18px; |
| 60 | + font-weight: 500; |
| 61 | + line-height: 1.5; |
| 62 | + margin-bottom: 32px; |
| 63 | + } |
| 64 | + |
| 65 | + .testimonial-author { |
| 66 | + font-size: 14px; |
| 67 | + margin-bottom: 4px; |
| 68 | + } |
| 69 | + |
| 70 | + .testimonial-job { |
| 71 | + font-size: 12px; |
| 72 | + } |
| 73 | + |
| 74 | + .btn { |
| 75 | + width: 40px; |
| 76 | + height: 40px; |
| 77 | + position: absolute; |
| 78 | + top: 50%; |
| 79 | + border: none; |
| 80 | + border-radius: 50%; |
| 81 | + box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.07); |
| 82 | + background-color: #fff; |
| 83 | + cursor: pointer; |
| 84 | + } |
| 85 | + |
| 86 | + .btn-icon { |
| 87 | + stroke: #087f5b; |
| 88 | + } |
| 89 | + |
| 90 | + .btn--left { |
| 91 | + left: 0; |
| 92 | + transform: translate(-50%, -50%); |
| 93 | + } |
| 94 | + |
| 95 | + .btn--right { |
| 96 | + right: 0; |
| 97 | + transform: translate(50%, -50%); |
| 98 | + } |
| 99 | + |
| 100 | + .dots { |
| 101 | + display: flex; |
| 102 | + gap: 8px; |
| 103 | + position: absolute; |
| 104 | + bottom: 0; |
| 105 | + left: 50%; |
| 106 | + transform: translate(-50%, 32px); |
| 107 | + } |
| 108 | + |
| 109 | + .dot { |
| 110 | + width: 12px; |
| 111 | + height: 12px; |
| 112 | + border-radius: 50%; |
| 113 | + border: 2px solid #087f5b; |
| 114 | + background-color: #fff; |
| 115 | + cursor: pointer; |
| 116 | + } |
| 117 | + |
| 118 | + .dot--fill { |
| 119 | + background-color: #087f5b; |
| 120 | + } |
| 121 | + </style> |
| 122 | + </head> |
| 123 | + <body> |
| 124 | + <div class="carousel"> |
| 125 | + <img src="./maria.jpg" alt="maria" /> |
| 126 | + <blockquote class="testimonial"> |
| 127 | + <p class="testimonial-text"> |
| 128 | + Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi, |
| 129 | + perspiciatis culpa? Eum qui expedita soluta autem nemo reiciendis |
| 130 | + earum repellat eveniet |
| 131 | + </p> |
| 132 | + <p class="testimonial-author">Maria de Almeida</p> |
| 133 | + <p class="testimonial-job">Senior Product Manager at EDP Comercial</p> |
| 134 | + </blockquote> |
| 135 | + <button class="btn btn--left"> |
| 136 | + <svg |
| 137 | + xmlns="http://www.w3.org/2000/svg" |
| 138 | + fill="none" |
| 139 | + viewBox="0 0 24 24" |
| 140 | + stroke-width="1.5" |
| 141 | + stroke="currentColor" |
| 142 | + class="btn-icon" |
| 143 | + > |
| 144 | + <path |
| 145 | + stroke-linecap="round" |
| 146 | + stroke-linejoin="round" |
| 147 | + d="M15.75 19.5L8.25 12l7.5-7.5" |
| 148 | + /> |
| 149 | + </svg> |
| 150 | + </button> |
| 151 | + <button class="btn btn--right"> |
| 152 | + <svg |
| 153 | + xmlns="http://www.w3.org/2000/svg" |
| 154 | + fill="none" |
| 155 | + viewBox="0 0 24 24" |
| 156 | + stroke-width="1.5" |
| 157 | + stroke="currentColor" |
| 158 | + class="btn-icon" |
| 159 | + > |
| 160 | + <path |
| 161 | + stroke-linecap="round" |
| 162 | + stroke-linejoin="round" |
| 163 | + d="M8.25 4.5l7.5 7.5-7.5 7.5" |
| 164 | + /> |
| 165 | + </svg> |
| 166 | + </button> |
| 167 | + <div class="dots"> |
| 168 | + <button class="dot dot--fill"> </button> |
| 169 | + <button class="dot"> </button> |
| 170 | + <button class="dot"> </button> |
| 171 | + <button class="dot"> </button> |
| 172 | + </div> |
| 173 | + </div> |
| 174 | + </body> |
| 175 | +</html> |
0 commit comments