website/assets/sass/landing.scss

377 lines
6.7 KiB
SCSS
Raw Normal View History

2023-03-31 22:14:22 +00:00
.cover__container {
position: relative;
2024-03-03 11:50:58 +00:00
min-height: 40rem;
2023-03-31 22:14:22 +00:00
}
2023-03-31 22:14:22 +00:00
.cover__back {
position: absolute;
height: 100%;
width: 100%;
2023-07-06 20:28:16 +00:00
overflow: hidden;
2023-03-31 22:14:22 +00:00
background-size: cover;
background-repeat: no-repeat;
background-position-x: center;
2024-03-03 11:50:58 +00:00
background-position-y: 0;
2023-03-31 22:14:22 +00:00
z-index: 1;
2023-07-06 20:28:16 +00:00
// to center the video
text-align: center;
display: flex;
justify-content: center;
video {
width: 100%;
height: 100%;
background-color: gray;
object-fit: cover;
position: relative;
}
2023-03-31 22:14:22 +00:00
}
.cover__content {
z-index: 10;
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.cover__overlay {
position: absolute;
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
background-color: rgba(14, 14, 14, 0.2);
}
.dark-section {
background-color: #025E73;
color: white;
box-shadow: inset 0px 0px 20px 10px rgba(0,0,0,0.2);
h2 {
color: white;
}
}
.trailer-section {
@extend .dark-section;
.video {
z-index: 3;
position: relative;
}
}
.landing-section {
@extend .dark-section;
position: relative;
.side-icon {
position: absolute;
z-index: 1;
left: 20px;
bottom: -100px;
svg {
2024-02-26 15:45:51 +00:00
opacity: 0.3;
width: 300px;
}
}
.section-title {
padding-top: 2rem;
}
2024-02-26 15:44:34 +00:00
.landing-section__content {
z-index: 2;
position: relative;
}
}
.news-section {
.side-icon {
left: -50px;
bottom: -75px;
svg {
width: 500px;
}
}
.separator {
width: 100%;
border: 1px solid rgba(255, 255, 255, 0.2);
margin: 1rem 0;
}
.article-cards {
margin-bottom: 1rem;
}
}
@keyframes cover_title_in {
0% {
left: -10rem;
}
100% {
left: 0;
}
}
2023-04-10 17:25:39 +00:00
.cover__title-container {
position: relative;
2023-05-06 06:45:31 +00:00
padding-top: 1rem;
padding-bottom: 1rem;
animation: cover_title_in 0.5s cubic-bezier(.39,.58,.57,1);
2023-05-06 06:45:31 +00:00
background-color: rgba(1, 1, 1, 0.5);
2023-04-10 17:25:39 +00:00
}
2023-03-31 22:14:22 +00:00
.cover__title {
font-weight: bold;
color: white;
font-size: 3em;
2023-04-10 17:25:39 +00:00
margin: 0;
2023-05-06 06:45:31 +00:00
margin-bottom: 0;
2023-04-10 17:25:39 +00:00
z-index: 2;
// position: absolute;
2023-05-06 06:45:31 +00:00
display: block;
2023-04-10 17:25:39 +00:00
}
.cover__backdrop {
2023-03-31 22:14:22 +00:00
}
.landing__title {
font-weight: 2rem;
}
.accent-separator {
width: 100%;
height: 0;
border-bottom: .3rem solid $accent;
}
2023-05-26 19:44:22 +00:00
@import 'landing/timeline.scss';
2023-07-06 20:28:16 +00:00
@media (max-width: $lg-breakpoint) {
.cover__back {
}
}
@media (min-width: $lg-breakpoint) {
.cover__back {
background-position-x: center;
// background-position-y: -1.5rem;
}
}
2023-05-26 19:44:22 +00:00
.compare-section {
.compare-items {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 1rem;
figure {
margin: 0;
}
}
.compare-item {
display: block;
margin-bottom: 1rem;
img {
display: block;
width: 100%;
object-fit: contain;
}
}
2023-05-27 15:28:51 +00:00
@keyframes compare-anim {
0% {
}
100% {
}
}
.compare-items-dynamic {
.compare-duet {
border-radius: 4px;
2023-05-27 15:28:51 +00:00
overflow: hidden;
position: relative;
.compare-hidden {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
clip-path: inset(100% 100% 100% 0%);
}
.compare-hidden {
clip-path: inset(100% 100% 100% 0%);
transition: clip-path 2s cubic-bezier(.86,0,.07,1);
animation-fill-mode: forwards;
}
2023-05-27 15:28:51 +00:00
}
.compare-duet:hover {
.compare-hidden {
clip-path: inset(100% 100% 100% 100%);
2023-05-27 15:28:51 +00:00
}
}
}
2023-05-26 19:44:22 +00:00
}
2023-05-27 15:28:51 +00:00
@media (max-width: $sm-breakpoint) {
.compare-section {
.compare-items {
grid-template-columns: 1fr;
}
}
}
2023-05-26 19:44:22 +00:00
.history-summary {
display: grid;
grid-template-columns: 3fr 1fr;
grid-column-gap: 2rem;
}
.history-summary__image {
display: flex;
align-items: center;
}
.landing-main {
2023-07-05 12:31:16 +00:00
section:first-of-type {
border-top: 1px solid rgba(1, 1, 1, 0.2);
}
2023-05-26 19:44:22 +00:00
section {
border-bottom: 1px solid rgba(1, 1, 1, 0.2);
}
}
2023-05-27 15:28:51 +00:00
2023-06-23 21:19:30 +00:00
2023-07-05 12:31:16 +00:00
.partners-container .carousel {
border-top: 1px solid #eee;
}
2023-06-23 21:19:30 +00:00
.partner-comment__container {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: rgba(1, 1, 1, 0.05);
.partner-comment {
padding-bottom: 1rem;
display: flex;
flex-direction: column;
align-items: center;
}
2023-07-05 12:31:16 +00:00
.partner-comment__quote-container {
display: flex;
width: 80%;
margin: 0 auto;
p {
text-align: center;
margin: 2.5rem auto;
position: relative;
display: block;
font-style: italic;
font-weight: 300;
}
.quote-decoration {
display: flex;
flex-direction: column;
svg {
fill: rgba(0, 0, 0, 0.2);
width: 3rem;
height: 3rem;
}
2023-06-23 21:19:30 +00:00
}
2023-07-05 12:31:16 +00:00
.quote-before {
justify-content: flex-start;
2023-06-23 21:19:30 +00:00
}
2023-07-05 12:31:16 +00:00
.quote-after {
justify-content: flex-end;
svg {
transform: rotate(180deg)
}
2023-06-23 21:19:30 +00:00
}
}
2023-07-05 12:31:16 +00:00
2023-06-23 21:19:30 +00:00
.partner-comment__author {
2023-07-05 12:31:16 +00:00
margin-top: .5rem;
2023-06-23 21:19:30 +00:00
display: flex;
flex-direction: column;
align-items: center;
}
.partner-comment__author-picture {
2023-07-05 12:31:16 +00:00
width: 10rem;
2023-06-23 21:19:30 +00:00
aspect-ratio: 1;
// border-radius: 50%;
}
.partner-comment__author-name {
margin-top: .5rem;
}
2023-07-05 12:31:16 +00:00
.partner-comment__author-link:hover {
opacity: 0.6;
}
}
.history-component__content {
}
2024-01-11 07:56:39 +00:00
.history-carousel {
background: rgba(1, 1, 1, 0.05);
}
2023-07-05 12:31:16 +00:00
.history-container {
.double-horizontal-image-container {
display: grid;
grid-template-columns: 1fr 1fr;
img {
width: 100%;
height: 17rem;
object-fit: cover;
}
}
}
@media (max-width: $md-breakpoint) {
2024-03-03 11:50:58 +00:00
.cover__back {
background-position-y: 0;
}
2023-07-05 12:31:16 +00:00
.history-container {
}
.side-icon {
display: none;
}
2023-06-23 21:19:30 +00:00
}
2023-07-05 12:31:16 +00:00
2024-03-03 11:50:58 +00:00
@media (min-width: $md-breakpoint) {
.cover__back {
background-position-y: -5em;
}
}
@media (min-width: $lg-breakpoint) {
.cover__back {
background-position-y: -10em;
}
}
@media (min-width: $xl-breakpoint) {
.cover__back {
background-position-y: -15em;
}
}