Untitled
unknown
plain_text
2 years ago
34 kB
4
Indexable
.homepage { h1, h2, h3, h4, h5, h6, p { margin: 0; } overflow: hidden; } $section-height: calc(100vh - 115px); #heroSection { @include breakpoint(md) { margin-top: 115px; } .hero { background: no-repeat center / cover; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 67.85% ); } height: $section-height; //115px is the width of the header. .hero-content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 20px; .hero-bottom { @include breakpoint(md) { align-items: center; flex-direction: column; } } .desktop-image { @include breakpoint(lg) { display: none; } } .mobile-image { display: none; @include breakpoint(lg) { display: block; } } .hero-description { font-family: $font-family-secondary; font-size: 24px; font-weight: 700; line-height: 26px; letter-spacing: -0.02em; text-align: left; color: $color-greyscale-off-white; word-wrap: break-word; overflow-wrap: break-word; width: 32ch; @include breakpoint(md) { text-align: center; } } .hero-cta { .hero-cta-content { @include breakpoint(md) { flex-direction: column; gap: 25px; } } .learn-more { text-decoration: underline; font-family: $font-family; font-size: 15px; line-height: 15px; letter-spacing: -0.02em; font-weight: $font-weight-bold; margin-left: 20px; @include rollingText( $color-greyscale-off-white, $color-greyscale-off-white, 15px ); @include breakpoint(md) { margin-left: 0; } } } } } } /* Get Involved Section */ :root { --cards-per-row: 3; --number-of-rows: 1; } #getInvolved { border-bottom: 1px solid rgba($color-greyscale-grey, 0.8); min-height: $section-height; .get-involved { padding: $section-padding; .top-row { border-bottom: 1px solid rgba($color-greyscale-grey, 0.8); padding: 21px 16px; .get-involved-title { font-family: $font-family; font-weight: 400; font-size: 175px; line-height: 131px; letter-spacing: -0.03em; color: $color-primary-dark-blue; text-align: left; @media screen and (max-width: 1270px) { font-size: 150px; } } .get-involved-subtitle { font-family: $font-family-secondary; font-weight: 700; font-size: 18px; line-height: 20px; letter-spacing: -0.02em; color: $color-primary-dark-blue; position: relative; text-align: left; width: 32ch; // just for text-wrap } img { align-self: flex-end; } } .card-row { @include flex(flex, row, nowrap, flex-start, center); gap: 7px; &::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 1px; background: rgba($color-greyscale-grey, 0.8); } .card-link { /* min-width: calc((100% / var(--cards-per-row)) - 20px); max-height: calc(35vh / var(--number-of-rows)); */ height: 100%; background-position: center; background-repeat: no-repeat; transition: transform 0.3s ease; margin: 16px 0; .card { /* min-width: calc((100% / var(--cards-per-row)) - 20px); max-height: calc(35vh / var(--number-of-rows)); */ position: relative; display: block; transition: transform 0.3s ease; overflow: hidden; // Ensure the image doesn't overflow the card border-radius: 2px; &:not(:last-child) { position: relative; &::after { content: ""; position: absolute; top: 50%; right: -10px; // Adjust this value to control the distance between the cards width: 1px; height: 60%; background-color: rgba($color-greyscale-grey, 0.8); transform: translateY(-50%); } } .card-image { width: 100%; height: 100%; object-fit: cover; // Maintain aspect ratio and cover the card without stretching position: relative; transition: transform 0.3s ease; &:hover { transform: scale(1.1); } } &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 180deg, rgba(24, 27, 23, 0.35) 0%, rgba(24, 27, 23, 0) 36.84% ); z-index: 1; transition: opacity 0.3s ease; // Use opacity instead of background property for the hover effect } &:hover { .card-image { transform: scale(1.1); } &::before { background: none; } .card-header { .card-cta-text, .card-page-link { color: $color-primary-dark-blue; transition: color 0.3s ease; } } } .card-header { flex-direction: column; position: absolute; z-index: 1; top: 0; left: 0; text-align: left; padding: 22px; .card-cta-text { font-family: $font-family-secondary; font-weight: 900; font-size: 24px; line-height: 22px; letter-spacing: -0.03em; color: $color-greyscale-off-white; text-transform: uppercase; margin-bottom: 11px; @include breakpoint(md) { font-size: 18px; line-height: 16px; } } .card-page-link { font-family: $font-family; font-weight: 400; font-size: 48px; line-height: 56px; letter-spacing: -0.05em; color: $color-greyscale-off-white; text-transform: uppercase; width: 100%; @include breakpoint(md) { font-size: 52px; line-height: 40px; margin: 0; padding: 0; max-width: 272px; } } } } @include breakpoint(lg) { :root { --cards-per-row: 2; --number-of-rows: 2; } } @include breakpoint(md) { :root { --cards-per-row: 1; --number-of-rows: 1; } } } } } } /* Big Body Text Section */ #bigBodyText { &.active { background-color: $color-primary-dark-blue; & h3 { color: $color-greyscale-off-white; } } .big-body-text { padding: $section-padding; /* height: $section-height; */ .text-content { margin-bottom: 78px; h3 { font-size: 50px; font-weight: $font-weight-bold; line-height: 52px; font-family: $font-family-secondary; letter-spacing: -0.04em; color: $color-primary-dark-blue; text-align: left; @include breakpoint(md) { font-size: 26px; line-height: 28px; } } } .big-body-text-cta { @include flex(flex, row, nowrap, flex-start, center); width: 100%; a { text-transform: uppercase; } button { margin-right: 10px; @include breakpoint(md) { margin-right: 32px; } } } } } /* Photo slider Section */ #photoSlider { .photo-slider { padding: $section-padding; border-bottom: 1px solid rgba($color-greyscale-grey, 0.8); // Should be 0.2 but invisible .photo-slider-top-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba($color-greyscale-grey, 0.8); // Should be 0.2 but invisible h3 { font-family: $font-family; font-size: 24px; line-height: 22px; letter-spacing: -0.03em; font-weight: 900; color: $color-primary-dark-blue; text-transform: uppercase; @include breakpoint(md) { font-size: 14px; line-height: 16px; } } .photo-slider-control-icons { display: flex; justify-content: space-between; gap: 58px; @include breakpoint(md) { gap: 27px; } svg { cursor: pointer; } } } .photo-slider-gallery { display: flex; overflow: hidden; .image-slider-wrapper { @include flex(flex, row, nowrap, center, center); position: relative; margin: 16px 16px 0 0; @include breakpoint(md) { } img { height: auto; border-radius: 2px; } .location { position: absolute; bottom: 0; left: 0; @include flex(flex, row, nowrap, center, center); p { margin-left: 10px; font-family: $font-family-secondary; font-weight: $font-weight-bold; font-size: 14px; line-height: 16px; letter-spacing: -0.02em; color: $color-greyscale-off-white; } } } } } } /* Upcoming event Section */ #upcomingEvent { padding: $section-padding; .upcoming-event { @include flex(flex, row, nowrap, flex-start, normal); border-bottom: 1px solid rgba($color-greyscale-grey, 0.8); &-main { @include flex(flex, column, nowrap, space-between, flex-start); min-height: $section-height; flex: 1; position: relative; padding: $section-padding; .top-row { @include flex(flex, column, wrap, flex-start, center); .upcoming-event-subtitle { margin-left: 0; margin-bottom: 16px; img { margin-right: 10px; } h5 { margin: 0; font-family: $font-family-secondary; font-size: 14px; font-weight: $font-weight-bold; line-height: 16px; letter-spacing: -0.02em; text-align: left; } } .upcoming-event-title { h2 { margin: 0; font-family: $font-family; font-size: 175px; font-weight: 400; line-height: 131px; letter-spacing: -0.03em; text-align: left; color: $color-primary-dark-blue; @include breakpoint(md) { font-size: 86px; line-height: 71px; } } } } .upcoming-event-mobile-slider { display: none; @include breakpoint(lg) { display: block; // Shows on mobile margin-bottom: 20px; } .upcoming-event-image-controls-mobile { position: relative; height: 3px; margin-top: 20px; width: 100%; .progress-bar { position: relative; top: 0; left: 0; height: 100%; background: rgba($color-primary-dark-blue, 0.3); } .progress { height: 100%; background: $color-primary-dark-blue; opacity: 1; // fully opaque width: 0; transition: width 0.3s ease; } } } .upcoming-event-info { margin-bottom: 35px; @include flex(flex, row, nowrap, flex-start, flex-start); .upcoming-event-time-place { display: flex; flex-flow: row nowrap; @include breakpoint(md) { flex-wrap: wrap; } } .upcoming-event-when, .upcoming-event-where { /* word-break: break-all; */ p { margin: 0; color: $color-primary-dark-blue; font-family: $font-family-secondary; font-size: 24px; font-weight: 700; line-height: 26px; letter-spacing: -0.02em; text-align: left; } span { font-family: $font-family-secondary; font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: -0.02em; text-align: left; opacity: 0.4; color: $color-primary-dark-blue; } } .upcoming-event-what { p { margin: 0; color: $color-primary-dark-blue; font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; /* word-wrap: break-word; overflow-wrap: break-word; overflow: hidden; */ } span { font-family: $font-family-secondary; font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: -0.02em; text-align: left; opacity: 0.4; color: $color-primary-dark-blue; } } } .upcoming-event-cta { button { margin-right: 24px; } } } &-slider { height: inherit; .upcoming-event-image-controls { position: absolute; right: 0; bottom: 0; width: 242px; height: 75px; background-color: $color-greyscale-light-grey; @include flex(flex, row, nowrap, space-between, center); span { margin-left: 22px; font-family: $font-family; font-size: 45px; font-weight: 400; line-height: 35px; letter-spacing: -0.03em; text-align: right; color: $color-primary-dark-blue; opacity: 0.4; } .image-controls { margin-right: 22px; gap: 16px; img { margin-left: 16px; cursor: pointer; } } } &-wrapper { height: 100%; .slick-list { height: inherit; .slick-track { height: 100%; .upcoming-event-slider-item { height: 100%; width: 100%; background: no-repeat center / cover; position: relative; box-sizing: border-box; } } } } position: relative; &::after { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: rgba($color-greyscale-grey, 0.8); } @include breakpoint(lg) { display: none; } } } } /* Video Section */ #videoCTA { padding: $section-padding; .video-cta { background-position: 50%; background-repeat: no-repeat; background-size: cover; position: relative; min-height: $section-height; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 272.9deg, rgba(0, 0, 0, 0.7) 21.12%, rgba(0, 0, 0, 0) 61.71% ); } @include breakpoint(md) { &::before { background: linear-gradient( 7.27deg, rgba(0, 0, 0, 0.7) 14.62%, rgba(0, 0, 0, 0) 58.81% ); } } &-content { justify-content: flex-end; &-wrapper { margin-top: 85px; margin-bottom: 86px; } .video-cta-section-title { display: flex; flex-direction: row; color: $color-greyscale-light-grey; font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; margin-bottom: 16px; } .video-cta-title { > div { padding: 0; } color: $color-greyscale-light-grey; font-family: $font-family; font-size: 175px; font-weight: 400; line-height: 131px; letter-spacing: -0.03em; text-align: left; margin-bottom: 32px; @include breakpoint(lg) { font-size: 150px; } @include breakpoint(md) { font-size: 72px; line-height: 54px; } } .video-cta-subtitle { color: $color-greyscale-light-grey; font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; margin-bottom: 32px; } } } } /* Testimonial Section */ #testimonials { .testimonials { padding: $section-padding; .main-row { @include breakpoint(xl) { flex-direction: column; } } &-title { @include breakpoint(lg) { margin-bottom: 52px; } display: flex; flex-direction: row; img { margin-right: 5px; } h5 { margin: 0; font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } } &-main { @include flex(flex, row, nowrap, flex-start, flex-start); @include breakpoint(xl) { flex-direction: column; margin: 0 auto 16px auto; } .testimonial-icon { margin-right: 16px; @include breakpoint(lg) { margin-bottom: 16px; } } .testimonial-wrapper { position: relative; .testimonial-slider { .slick-track { @include flex(flex, row, nowrap, center, stretch); } .testimonial-slide { display: flex; flex-direction: column; height: inherit; } } .testimonial-text { color: $color-primary-dark-blue; font-family: $font-family-secondary; font-size: 50px; font-weight: 700; line-height: 52px; letter-spacing: -0.04em; text-align: left; word-break: break-all; white-space: normal; margin-bottom: 59px; } .testimonial-bottom { margin-top: auto; margin-left: 0; .testimonial-image { @include flex(flex, row, nowrap, flex-start, flex-end); @include breakpoint(lg) { align-items: flex-start; } } .testimonial-name { @include flex(flex, column, nowrap, flex-end, flex-start); margin-left: 10px; h4 { margin: 0; font-family: $font-family-secondary; font-size: 24px; font-weight: 700; line-height: 26px; letter-spacing: -0.02em; text-align: left; } .bottom-text { opacity: 0.4; } } } .testimonial-pagination { position: absolute; right: 0; bottom: 0; width: 242px; background-color: $color-greyscale-light-grey; @include flex(flex, row, nowrap, space-between, center); @include breakpoint(md) { height: auto; } span { margin-left: 22px; font-family: $font-family; font-size: 45px; font-weight: 400; line-height: 35px; letter-spacing: -0.03em; text-align: right; color: $color-primary-dark-blue; opacity: 0.4; @include breakpoint(lg) { margin-left: 0; } } .controls { margin-right: 22px; gap: 16px; img { margin-left: 16px; cursor: pointer; } } } } } } } /* Community Section */ #community { .community { display: flex; justify-content: center; align-items: center; background-color: $color-primary-orche; height: calc(100vh - 115px); overflow: hidden; width: 100vw; max-height: 100vh; @include breakpoint(md) { flex-direction: column; height: auto; padding: $section-padding; } .mobile-top-panel { display: none; @include breakpoint(md) { display: block; } .title { font-family: $font-family; font-size: 52px; font-weight: 900; line-height: 52px; letter-spacing: -0.06em; text-align: left; text-transform: uppercase; } .community-mobile-slider { display: none; overflow: hidden; width: 100%; @include breakpoint(md) { display: block; margin-bottom: 20px; } .community-image-controls-mobile { position: relative; height: 3px; margin-top: 20px; width: 100%; .progress-bar { position: relative; top: 0; left: 0; height: 100%; background: rgba($color-primary-dark-blue, 0.3); } .progress-community { height: 100%; background: $color-primary-dark-blue; opacity: 1; // fully opaque width: 0; transition: width 0.3s ease; } } } } .mobile-bottom-panel { display: none; @include breakpoint(md) { display: block; margin-bottom: 30px; } .subtext { font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; margin-bottom: 34px; } .community-page-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin-bottom: 30px; .community-link { display: flex; flex-direction: row; align-items: flex-start; margin-bottom: -4%; &:hover { text-decoration: none; } img { margin-top: 12px; margin-left: 16px; width: 30px; fill: $color-greyscale-black; .community-link:hover & { fill: white; } } span { font-family: $font-family; color: $color-greyscale-black; font-size: 129px; font-weight: 400; line-height: 111px; letter-spacing: -0.03em; text-align: left; text-transform: uppercase; @include rollingText( $color-greyscale-black, $color-greyscale-off-white, 293px ); } } } .keep-scrolling { display: flex; flex-direction: row; h4 { font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } img { margin-right: 13px; } } } .container-scroller { width: 100%; height: 100%; @include breakpoint(md) { display: none; } .horizontal-content { height: 100%; align-items: center; display: flex; .horizontal-item { display: flex; /* width: 100%; */ padding: 3rem 53px; position: relative; /* height: 100%; */ .big-text-container { position: relative; padding: 150px; max-width: none; h2 { font-family: $font-family-secondary; font-size: 600px; font-weight: 900; line-height: 500px; letter-spacing: -0.06em; text-align: left; text-transform: uppercase; } .image-wrapper { .community-image-on-text { margin-right: 300px; position: absolute; top: 0; &:first-child { margin-left: 40px; } $gap: 650px; $count: 6; @for $i from 1 through $count { &:nth-child(#{$i}) { left: ($i - 1) * $gap; @if $i % 2 == 0 { top: auto; bottom: 223px; } @else { top: 46px; bottom: auto; } } } img { max-width: 100%; height: auto; display: block; } } } } } .right-panel { @include flex(flex, row, nowrap, flex-start, flex-start); padding: 65px 98px; flex-shrink: 0; width: 100vw; .left-side { @include flex(flex, column, nowrap, space-between, flex-start); height: 100%; .subtext { h3 { font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } } .keep-scrolling { display: flex; flex-direction: row; h4 { font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } img { margin-right: 13px; } } } .right-side { display: flex; flex-direction: column; align-items: flex-start; .community-page-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; .community-link { display: flex; flex-direction: row; align-items: flex-start; margin-bottom: -4%; &:hover { text-decoration: none; } svg { margin-top: 40px; margin-left: 20px; width: 75px; fill: $color-greyscale-black; .community-link:hover & { fill: white; } } span { font-family: $font-family; font-size: 275px; font-weight: 400; line-height: 293px; letter-spacing: -0.03em; text-align: left; text-transform: uppercase; @include rollingText( $color-greyscale-black, $color-greyscale-off-white, 293px ); } } } } } } } } } /* Suicide hotline Section */ #hotline { .hotline { padding: 43px 20px; min-height: 550px; @include flex(flex, column, nowrap, space-between, flex-start); .top-row { > div { @include flex(flex, row, nowrap, flex-start, flex-start); p { margin: 0; color: $color-primary-dark-blue; font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } img { margin-right: 8px; } } } .bottom-row { .big-title { padding: 0; h2 { font-family: $font-family; font-size: 175px; font-weight: 400; line-height: 131px; letter-spacing: -0.03em; text-align: left; @include breakpoint(md) { margin-bottom: 13px; } } } .call-text { margin-bottom: 10px; } .call-text, .available, a { font-family: $font-family-secondary; color: $color-primary-dark-blue; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; } a { text-decoration: underline; } } } } /* Secondary hero Section */ #secondaryHero { .secondary-hero { min-height: $section-height; background: no-repeat center / cover; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 67.85% ); } .main-row { padding: $section-padding; margin: 0; display: flex; height: 100%; @include breakpoint(lg) { align-content: flex-end; } .section-title { img { margin-right: 8px; } h5 { font-family: $font-family-secondary; font-size: 14px; font-weight: 700; line-height: 16px; letter-spacing: -0.02em; text-align: left; color: $color-greyscale-off-white; } } .main-content { @include breakpoint(lg) { margin: 0; } > div { margin-left: 0; margin-right: 0; } } .big-title { margin-bottom: 60px; @include breakpoint(lg) { margin-bottom: 16px; } h3 { font-family: $font-family-secondary; font-size: 50px; font-weight: 700; line-height: 52px; letter-spacing: -0.04em; text-align: left; color: $color-greyscale-off-white; @include breakpoint(xl) { font-size: 35px; line-height: 35px; } @include breakpoint(lg) { font-size: 26px; line-height: 26px; } } } .cta-content { @include breakpoint(lg) { margin-left: 0; margin-right: 0; } button { outline: none; border: none; @include breakpoint(lg) { width: 158px; height: 54px; } } button, .ways-to-give { margin-right: 33px; @include breakpoint(lg) { margin-right: 16px; } } .ways-to-give, .volunteer { text-decoration: underline; text-transform: uppercase; font-family: $font-family; font-size: 15px; line-height: 15px; letter-spacing: -0.02em; font-weight: $font-weight-bold; margin-left: 20px; @include rollingText( $color-greyscale-off-white, $color-greyscale-off-white, 15px ); @include breakpoint(md) { margin-left: 0; } } } } } }
Editor is loading...