team.scss 8 KB
Newer Older
1 2 3 4
.team-map {
  position: relative;
  height: 65vw;
  max-height: 48em;
Danilo Woznica's avatar
Danilo Woznica committed
5
  min-height: 0;
6 7 8 9 10 11 12 13

  &:after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    height: 40%;
Danilo Woznica's avatar
Danilo Woznica committed
14
    background-image: linear-gradient(0deg, rgba(#030c1a, 0) 0%, #030c1a 40%);
15 16 17 18 19
    opacity: 0.8;

    @media screen and (min-width: $tablet) {
      opacity: 1;
    }
20 21 22 23 24 25
  }
}

.team-map__wrap {
  position: relative;
  z-index: 2;
26 27 28 29 30
  top: 3em;

  @media screen and (min-width: $tablet) {
    top: 0;
  }
31 32 33
}

.team-map__map {
Danilo Woznica's avatar
Danilo Woznica committed
34 35 36 37 38 39 40 41 42 43
  display: none;

  @media screen and (min-width: $tablet) {
    position: absolute;
    top: 10%;
    width: 100%;
    left: 0;
    right: 0;
    display: block;
  }
44 45 46 47 48
}

.team-map__pin {
  position: absolute;
  opacity: 0;
49 50 51 52 53
  display: none;

  @media screen and (min-width: $tablet) {
    display: block;
  }
54 55 56 57 58 59 60 61 62 63 64

  &:after {
    content: "";
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 100%;
    background: $brand;
  }

  &.brazil {
65 66
    top: 81%;
    left: 38%;
67 68 69 70 71 72 73
    animation: 1s 0.4s appears forwards;

    .team-map__profile {
      animation: 1s 1s appearsBox forwards;
    }
  }

Aaron Ogle's avatar
Aaron Ogle committed
74 75 76 77 78 79 80 81 82 83 84
  &.uruguay {
    top: 90%;
    left: 34.5%;
    animation: 1s 0.6s appears forwards;

    .team-map__profile {
      animation: 1s 1.2s appearsBox forwards;
      transform: translate(1.5em, -2em);
    }
  }

85 86 87 88
  &.peru {
    top: 78%;
    left: 29%;
    animation: 1s 0.5s appears forwards;
89 90

    .team-map__profile {
91
      animation: 1s 1.1s appearsBox forwards;
92 93 94
    }
  }

95 96 97
   &.germany {
    top: 53.3%;
    left: 52.2%;
98 99 100 101
    animation: 1s 0.6s appears forwards;

    .team-map__profile {
      animation: 1s 1.2s appearsBox forwards;
102 103 104 105 106 107 108 109 110
      transform: translate(calc(-50% + 0.25em), 1.5em);

      &:after {
        border-top: 0.3em solid transparent;
        border-bottom: 0.3em solid rgba(56,74,102,0.55);
        bottom: auto;
        top: -0.6em;
        left: calc(50% - 0.3em);
      }
111 112 113 114 115 116
    }
  }

  &.india {
    top: 68%;
    left: 70%;
117
    animation: 1s 0.7s appears forwards;
118 119

    .team-map__profile {
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
      animation: 1s 1.3s appearsBox forwards;
    }
  }

  &.usa {
    top: 60%;
    left: 19%;
    animation: 1s 0.8s appears forwards;

    .team-map__profile {
      animation: 1s 1.4s appearsBox forwards;
    }
  }

  &.canada {
    top: 52%;
    left: 29%;
    animation: 1s 0.9s appears forwards;

    .team-map__profile {
      animation: 1s 1.5s appearsBox forwards;
    }
  }

  &.unitedkingdom {
    top: 51.3%;
    left: 49.2%;
    animation: 1s 1s appears forwards;

    .team-map__profile {
      animation: 1s 1.6s appearsBox forwards;
151 152
    }
  }
153 154 155 156 157 158 159 160 161 162 163

  &.ukraine {
    top: 53.3%;
    left: 58.2%;
    animation: 1s 1s appears forwards;

    .team-map__profile {
      animation: 1s 1.7s appearsBox forwards;
      transform: translate(1.5em, -2em);
    }
  }
164 165
}

166
@include keyframes(appears) {
167 168
  0% {
    opacity: 0;
169
    @include transform(scale(0));
170 171 172
  }
  100% {
    opacity: 1;
173
    @include transform(scale(1));
174 175 176
  }
}

177
@include keyframes(appearsBox) {
178 179 180 181 182 183 184 185 186 187 188 189 190
  0% {
    opacity: 0;
    margin-bottom: -3em;
  }
  100% {
    opacity: 1;
    margin-bottom: 0;
  }
}

.team-map__profile {
  background: rgba($grey-dark, 0.55);
  position: absolute;
191
  @include transform(translate(calc(-50% + 0.25em), -5.5em));
192 193 194 195 196 197 198
  border-radius: 2px;
  padding: 0.7em 1em 0.6em 2em;
  max-width: 12em;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  opacity: 0;
Danilo Woznica's avatar
Danilo Woznica committed
199
  @include transform-origin(50% 100%);
200 201 202 203 204 205 206 207 208 209 210

  &:after {
    content: "";
    display: block;
    border: 0.3em solid transparent;
    border-top: 0.3em solid rgba($grey-dark, 0.55);
    position: absolute;
    bottom: -0.6em;
    left: calc(50% - 0.3em);
  }

Aaron Ogle's avatar
Aaron Ogle committed
211 212 213 214 215 216 217 218 219 220 221 222
  &.left:after {
    content: "";
    display: block;
    border: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    border-right: 0.3em solid rgba(56,74,102,0.55);
    position: absolute;
    bottom: auto;
    top: 2em;
    left: calc(50% - 3.5em);
  }

223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
  .flags {
    margin-bottom: 0.3em;

    span {
      margin-left: -1rem;
      width: 2rem;
      height: 2rem;
      display: inline-block;
      border-radius: 100%;
      overflow: hidden;

      &.count {
        background: $grey;
        color: #fff;
        line-height: 2rem;
        font-size: 0.6em;
        font-weight: bold;
        text-align: center;
      }
    }

    span:not(:only-of-type) {
      border: 1px solid $grey-dark;
    }
  }

  p {
    display: inline-flex;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    margin: 0;
    line-height: 1;
    margin-left: -2em;

    img {
      width: 1.5em;
      margin-left: 0.7em;
    }
  }
}

266
.team-grid {
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
  display: grid;
  grid-gap: 2em;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;

  @media (max-width: 1000px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 650px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 420px) {
    grid-template-columns: repeat(1, 100%);
    grid-auto-rows: 400px;
  }
284 285
}

286 287 288 289
.team-description {
  margin-bottom: 5em;
  background-repeat: no-repeat;
  background-image: url("/images/posts/2018/04/2018-04-18-rocket-chat-summit-2018/rocket-chat-team-summit-2018.jpg");
290 291 292 293 294 295 296 297
  background-position: center;
  background-size: cover;

  .wrap {
    background-color: rgba(18,31,51,0.8);
    padding: 3em 4em;
    max-width: 50%;
  }
298

299
  @media (max-width: $tablet) {
300 301 302 303 304 305
    @include flexbox();
    padding-bottom: 1.5em;
    margin-bottom: 7em;

    .wrap {
      padding: 2em;
306
      max-width: 80%;
307 308 309
    }
  }

310 311 312 313
  @media (max-width: $mobile) {
    background-color: $space-grey;
    background-image: unset;
    padding-bottom: 2em;
314 315

    .wrap {
316 317
      max-width: 100%;
      padding: 0;
318 319 320 321
    }
  }
}

322 323 324 325 326 327 328 329
.team-item {
  border-radius: 2px;
  overflow: hidden;
}

.team-item__image {
  background-size: cover;
  background-position: center;
330 331 332 333 334
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: end;
335 336 337 338 339 340 341
}

.team-item__wrap {
  background: rgba($space, 0.9);
  border-radius: 2px;
  padding: 1em;
  transition: all 0.5s ease;
342
  margin: 8px;
343 344 345 346 347 348 349
}

.team-button__toggle {
  display: none;
}

.team-item__name {
350
  @include flexbox();
351 352 353 354
  margin-bottom: 0.3em;
  height: 1.5em;
  overflow: hidden;

355 356 357 358 359 360 361
  strong {
    max-width: 75%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

362 363 364
  img {
    margin-left: 0.5em;
    width: 1.5em;
365 366
    position: relative;
    top: 0.2em;
367 368 369 370
  }
}

.team-item__role {
371
  text-overflow: ellipsis;
372
  overflow: hidden;
373
  white-space: nowrap;
374 375 376 377 378
}

.team-item__social {
  margin-top: 1em;
  border-top: 1px solid transparent;
379
  transition: all 0.7s ease;
380 381

  a {
382
    transition: all 0.7s ease;
383
    margin-right: 0.2em;
384 385 386 387

    &:hover {
      opacity: 0.9;
    }
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
  }
}

.team-item__button {
  position: absolute;
  right: 1em;
  top: 1em;
  display: block;
  width: 2em;
  height: 2em;
  cursor: pointer;

  &:after {
    content: "";
    width: 0.5em;
    height: 0.5em;
    display: block;
    transform: rotate(-45deg);
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transition: all 0.3s ease;
  }
}

.team-item__bio {
  margin-left: -1em;
  margin-right: -1em;
  color: #fff;
  font-size: 0.8em;
  overflow: auto;
  max-height: 0;
  transition: all 0.5s ease;
  padding: 0 1em;

  p {
    margin-bottom: 1em;
    transform: translateY(1em);
    opacity: 0;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

.team-button__toggle:checked + .team-item__wrap {
  height: calc(100% - 1em);
  max-height: calc(100% - 1em);

  .team-item__button:after {
    transform: rotate(135deg);
    top: 0.3em;
  }

  .team-item__bio {
    padding: 1em;
    max-height: calc(100% - 8em);
    height: calc(100% - 8em);

    p {
448
      animation: slide 0.7s 0.1s ease forwards;
449
    }
450 451 452 453 454 455 456

    p:nth-child(2) {
      animation: slide 0.7s 0.2s ease forwards;
    }

    p:nth-child(3) {
      animation: slide 0.7s 0.3s ease forwards;
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
    }
  }

  .team-item__social {
    border-top: 1px solid rgba($grey-bg, 0.1);
  }
}

@keyframes slide {
  0% {
    transform: translateY(1.3em);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}