team.scss 8.8 KB
Newer Older
Danilo Woznica's avatar
Danilo Woznica committed
1 2 3 4
.team-map {
  position: relative;
  height: 65vw;
  max-height: 48em;
Danilo Woznica's avatar
Danilo Woznica committed
5
  min-height: 0;
Danilo Woznica's avatar
Danilo Woznica committed
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;
    }
Danilo Woznica's avatar
Danilo Woznica committed
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;
  }
Danilo Woznica's avatar
Danilo Woznica committed
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;
  }
Danilo Woznica's avatar
Danilo Woznica committed
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;
  }
Danilo Woznica's avatar
Danilo Woznica committed
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%;
Danilo Woznica's avatar
Danilo Woznica committed
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
  &.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);
lolimay's avatar
lolimay committed
82 83 84 85

      &:after {
        left: -10px;
      }
Aaron Ogle's avatar
Aaron Ogle committed
86 87 88
    }
  }

89 90 91 92
  &.peru {
    top: 78%;
    left: 29%;
    animation: 1s 0.5s appears forwards;
Danilo Woznica's avatar
Danilo Woznica committed
93 94

    .team-map__profile {
95
      animation: 1s 1.1s appearsBox forwards;
Danilo Woznica's avatar
Danilo Woznica committed
96 97 98
    }
  }

99 100 101
   &.germany {
    top: 53.3%;
    left: 52.2%;
Danilo Woznica's avatar
Danilo Woznica committed
102 103 104 105
    animation: 1s 0.6s appears forwards;

    .team-map__profile {
      animation: 1s 1.2s appearsBox forwards;
106 107 108 109 110 111 112 113 114
      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);
      }
Danilo Woznica's avatar
Danilo Woznica committed
115 116 117 118 119 120
    }
  }

  &.india {
    top: 68%;
    left: 70%;
121
    animation: 1s 0.7s appears forwards;
Danilo Woznica's avatar
Danilo Woznica committed
122 123

    .team-map__profile {
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 151 152 153 154
      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;
Danilo Woznica's avatar
Danilo Woznica committed
155 156
    }
  }
Marcelo Schmidt's avatar
Marcelo Schmidt committed
157 158 159 160 161 162 163 164 165

  &.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);
lolimay's avatar
lolimay committed
166 167 168 169

      &:after {
        left: -9px;
      }
Marcelo Schmidt's avatar
Marcelo Schmidt committed
170 171
    }
  }
lolimay's avatar
lolimay committed
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

  &.china {
    top: 58.0%;
    left: 78.2%;
    animation: 1s 1s appears forwards;

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

      &:after {
        left: -10px;
      }
    }
  }
Marcelo Schmidt's avatar
Marcelo Schmidt committed
187 188 189 190 191 192 193 194 195 196 197

  &.ecuador {
    top: 76.5%;
    left: 28.5%;
    animation: 1s 1s appears forwards;

    .team-map__profile {
      animation: 1s 1.8s appearsBox forwards;
      transform: translate(-6.5em, -2em);
    }
  }
Danilo Woznica's avatar
Danilo Woznica committed
198 199
}

Danilo Woznica's avatar
Danilo Woznica committed
200
@include keyframes(appears) {
Danilo Woznica's avatar
Danilo Woznica committed
201 202
  0% {
    opacity: 0;
Danilo Woznica's avatar
Danilo Woznica committed
203
    @include transform(scale(0));
Danilo Woznica's avatar
Danilo Woznica committed
204 205 206
  }
  100% {
    opacity: 1;
Danilo Woznica's avatar
Danilo Woznica committed
207
    @include transform(scale(1));
Danilo Woznica's avatar
Danilo Woznica committed
208 209 210
  }
}

Danilo Woznica's avatar
Danilo Woznica committed
211
@include keyframes(appearsBox) {
Danilo Woznica's avatar
Danilo Woznica committed
212 213 214 215 216 217 218 219 220 221 222 223 224
  0% {
    opacity: 0;
    margin-bottom: -3em;
  }
  100% {
    opacity: 1;
    margin-bottom: 0;
  }
}

.team-map__profile {
  background: rgba($grey-dark, 0.55);
  position: absolute;
Danilo Woznica's avatar
Danilo Woznica committed
225
  @include transform(translate(calc(-50% + 0.25em), -5.5em));
Danilo Woznica's avatar
Danilo Woznica committed
226 227 228 229 230 231 232
  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
233
  @include transform-origin(50% 100%);
Danilo Woznica's avatar
Danilo Woznica committed
234 235 236 237 238 239 240 241 242 243 244

  &: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
245 246 247 248 249 250 251 252 253 254 255 256
  &.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);
  }

Marcelo Schmidt's avatar
Marcelo Schmidt committed
257 258 259 260 261 262 263 264 265 266 267 268
  &.right:after {
    content: "";
    display: block;
    border: 0.3em solid transparent;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid rgba(56,74,102,0.55);
    position: absolute;
    bottom: auto;
    top: 2em;
    left: 92px;
  }

Danilo Woznica's avatar
Danilo Woznica committed
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
  .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;
    }
  }
}

Danilo Woznica's avatar
Danilo Woznica committed
312
.team-grid {
Martin Schoeler's avatar
Martin Schoeler committed
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
  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;
  }
Danilo Woznica's avatar
Danilo Woznica committed
330 331
}

332 333 334 335
.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");
336 337 338 339 340 341 342 343
  background-position: center;
  background-size: cover;

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

345
  @media (max-width: $tablet) {
346 347 348 349 350 351
    @include flexbox();
    padding-bottom: 1.5em;
    margin-bottom: 7em;

    .wrap {
      padding: 2em;
352
      max-width: 80%;
353 354 355
    }
  }

356 357 358 359
  @media (max-width: $mobile) {
    background-color: $space-grey;
    background-image: unset;
    padding-bottom: 2em;
360 361

    .wrap {
362 363
      max-width: 100%;
      padding: 0;
364 365 366 367
    }
  }
}

Danilo Woznica's avatar
Danilo Woznica committed
368 369 370 371 372 373 374 375
.team-item {
  border-radius: 2px;
  overflow: hidden;
}

.team-item__image {
  background-size: cover;
  background-position: center;
Martin Schoeler's avatar
Martin Schoeler committed
376 377 378 379 380
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: end;
Danilo Woznica's avatar
Danilo Woznica committed
381 382 383 384 385 386 387
}

.team-item__wrap {
  background: rgba($space, 0.9);
  border-radius: 2px;
  padding: 1em;
  transition: all 0.5s ease;
Martin Schoeler's avatar
Martin Schoeler committed
388
  margin: 8px;
Danilo Woznica's avatar
Danilo Woznica committed
389 390 391 392 393 394 395
}

.team-button__toggle {
  display: none;
}

.team-item__name {
Danilo Woznica's avatar
Danilo Woznica committed
396
  @include flexbox();
Danilo Woznica's avatar
Danilo Woznica committed
397 398 399 400
  margin-bottom: 0.3em;
  height: 1.5em;
  overflow: hidden;

Danilo Woznica's avatar
Danilo Woznica committed
401 402 403 404 405 406 407
  strong {
    max-width: 75%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

Danilo Woznica's avatar
Danilo Woznica committed
408 409 410
  img {
    margin-left: 0.5em;
    width: 1.5em;
Danilo Woznica's avatar
Danilo Woznica committed
411 412
    position: relative;
    top: 0.2em;
Danilo Woznica's avatar
Danilo Woznica committed
413 414 415 416
  }
}

.team-item__role {
Danilo Woznica's avatar
Danilo Woznica committed
417
  text-overflow: ellipsis;
Danilo Woznica's avatar
Danilo Woznica committed
418
  overflow: hidden;
Danilo Woznica's avatar
Danilo Woznica committed
419
  white-space: nowrap;
Danilo Woznica's avatar
Danilo Woznica committed
420 421 422 423 424
}

.team-item__social {
  margin-top: 1em;
  border-top: 1px solid transparent;
Danilo Woznica's avatar
Danilo Woznica committed
425
  transition: all 0.7s ease;
Danilo Woznica's avatar
Danilo Woznica committed
426 427

  a {
Danilo Woznica's avatar
Danilo Woznica committed
428
    transition: all 0.7s ease;
Danilo Woznica's avatar
Danilo Woznica committed
429
    margin-right: 0.2em;
Danilo Woznica's avatar
Danilo Woznica committed
430 431 432 433

    &:hover {
      opacity: 0.9;
    }
Danilo Woznica's avatar
Danilo Woznica committed
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
  }
}

.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 {
Danilo Woznica's avatar
Danilo Woznica committed
494
      animation: slide 0.7s 0.1s ease forwards;
Danilo Woznica's avatar
Danilo Woznica committed
495
    }
Danilo Woznica's avatar
Danilo Woznica committed
496 497 498 499 500 501 502

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

    p:nth-child(3) {
      animation: slide 0.7s 0.3s ease forwards;
Danilo Woznica's avatar
Danilo Woznica committed
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
    }
  }

  .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;
  }
}