fleet/website/assets/styles/pages/homepage.less
Eric c6693617c3
Website: Update homepage hero background on large screen sizes (#12143)
Changes:
- Updated the homepage hero background size on screens larger than
1400px.

---------

Co-authored-by: Mike Thomas <mthomas@fleetdm.com>
Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2023-06-06 08:21:51 +09:00

777 lines
16 KiB
Plaintext
Vendored

#homepage {
h1 {
font-weight: 800;
font-size: 56px;
line-height: 54px;
}
h3 {
font-weight: 800;
font-size: 24px;
line-height: 32px;
margin-bottom: 24px;
}
h2 {
font-weight: 800;
font-size: 36px;
line-height: 48px;
margin-bottom: 24px;
}
h4 {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 24px;
color: @core-fleet-black-75;
margin-bottom: 4px;
}
p {
color: @core-fleet-black-75;
}
a {
color: @core-vibrant-blue;
}
[purpose='hero-container'] {
background: #E4F4F4;
overflow: hidden;
}
[purpose='hero-background-image'] {
background: url('/images/homepage-hero-background-1921x555@2x.png');
background-size: 1921px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-hero'] {
padding-top: 40px;
padding-left: 40px;
padding-right: 40px;
padding-bottom: 40px;
max-width: 1200px;
height: 750px;
}
[purpose='hero-text'] {
padding-top: 20px;
min-width: 540px;
text-align: center;
h1 {
margin-bottom: 16px;
}
p {
margin-bottom: 40px;
font-size: 18px;
max-width: 520px;
}
[purpose='button-row'] {
margin-bottom: 40px;
}
}
[purpose='hero-logos'] {
margin-top: 32px;
margin-bottom: 120px;
[purpose='snowflake-logo'] {
height: 30px;
}
[purpose='wayfair-logo'] {
height: 33px;
}
[purpose='uber-logo'] {
height: 30px;
}
[purpose='atlassian-logo'] {
height: 21px;
}
[purpose='segment-logo'] {
height: 32px;
}
[purpose='bottom-row-uber-logo'] {
display: none;
}
}
[purpose='logo-column'] {
img {
margin-right: 35px;
margin-left: 35px;
}
}
[purpose='homepage-content'] {
max-width: 1200px;
}
[purpose='homepage-text-block'] {
margin-top: 160px;
margin-bottom: 160px;
max-width: 872px;
h2 {
font-weight: 800;
font-size: 32px;
line-height: 48px;
margin-bottom: 24px;
}
p {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
}
[purpose='platform-block'] {
margin-bottom: 100px;
h3 {
font-weight: 800;
font-size: 24px;
line-height: 32px;
}
p {
margin-bottom: 24px;
color: #515774;
font-size: 16px;
line-height: 24px;
}
max-width: 1080px;
}
[purpose='platform-left-text-block'] {
max-width: 480px;
margin-right: 80px;
}
[purpose='platform-right-text-block'] {
max-width: 480px;
margin-left: 80px;
}
[purpose='platform-small-text-block'] {
max-width: 320px;
margin-right: 80px;
}
[purpose='platform-image'] {
width: 520px;
img {
width: 100%;
height: auto;
}
}
[purpose='platform-large-image'] {
width: 620px;
img {
width: 100%;
height: auto;
}
}
[purpose='bottom-gradient'] {
background: linear-gradient(180deg, #FFFFFF 0%, #E9F4F4 100%);
}
[purpose='bottom-cloud-city-banner'] {
background: linear-gradient(180deg, #E9F4F4 0%, #FFFFFF 100%);
img {
width: 100%;
}
}
[purpose='button-row'] {
a {
font-weight: 700;
font-size: 16px;
line-height: 24px;
text-decoration: none;
}
[purpose='cta-button'] {
cursor: pointer;
margin-right: 32px;
background: @core-vibrant-red;
border-radius: 8px;
padding-left: 32px;
padding-right: 32px;
height: 48px;
display: flex;
justify-content: center;
align-items: center;
color: #FFF;
position: relative;
}
[purpose='cta-button']::before {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 1;
content: '';
position: absolute;
top: 0;
left: -5px;
width: 50%;
height: 100%;
transform: skew(-10deg);
transition: left 0.5s ease-in, opacity 0.50s ease-in, width 0.5s ease-in;
}
[purpose='cta-button']:hover:before {
left: 160px;
width: 110%;
}
}
[purpose='animated-arrow-button-red'] {
display: inline;
padding-right: 34px;
cursor: pointer;
position: relative;
width: fit-content;
min-width: auto;
font-weight: bold;
user-select: none;
transition: 0.2s ease-in-out;
-o-transition: 0.2s ease-in-out;
-ms-transition: 0.2s ease-in-out;
-moz-transition: 0.2s ease-in-out;
-webkit-transition: 0.2s ease-in-out;
color: @core-fleet-black;
text-decoration: none;
&:after {
content: url('/images/arrow-right-red-16x16@2x.png');
transform: scale(0.5);
position: absolute;
top: -5px;
right: -5px; // <--- here
transition: 0.2s ease-in-out;
-o-transition: 0.2s ease-in-out;
-ms-transition: 0.2s ease-in-out;
-moz-transition: 0.2s ease-in-out;
-webkit-transition: 0.2s ease-in-out;
/* opacity: 0; */
}
&:hover:after {
right: -10px; // <--- here
transition: 0.2s ease-in-out;
-o-transition: 0.2s ease-in-out;
-ms-transition: 0.2s ease-in-out;
-moz-transition: 0.2s ease-in-out;
-webkit-transition: 0.2s ease-in-out;
/* opacity:1; */
}
}
[purpose='supported-platforms'] {
margin-left: auto;
margin-right: auto;
max-width: 824px;
margin-bottom: 160px;
h2 {
font-size: 32px;
line-height: 48px;
text-align: center;
margin-bottom: 40px;
}
[purpose='supported-platform-row'] {
justify-content: center;
padding-bottom: 24px;
}
[purpose='supported-platform'] {
width: 120px;
margin: 12px;
img {
margin-left: auto;
margin-right: auto;
height: 48px;
width: auto;
}
p {
line-height: 21px;
font-size: 14px;
margin-bottom: 0px;
text-align: center;
span {
font-size: 11px;
line-height: 16.5px;
}
}
}
}
[purpose='two-column-features'] {
max-width: 1080px;
margin-bottom: 160px;
[purpose='feature-row'] {
margin-bottom: 80px;
[purpose='feature'] {
max-width: 510px;
p {
font-size: 16px;
line-height: 24px;
}
}
}
}
[purpose='three-column-features'] {
margin-bottom: 160px;
max-width: 1080px;
[purpose='feature-row'] {
[purpose='feature'] {
max-width: 320px;
p {
font-size: 14px;
line-height: 21px;
}
}
}
h2 {
font-size: 32px;
line-height: 48px;
margin-bottom: 40px;
}
}
[purpose='feature'] {
margin-left: 30px;
margin-right: 30px;
img {
height: 64px;
width: auto;
margin-bottom: 16px;
}
h5 {
font-weight: 800;
font-size: 18px;
line-height: 27px;
margin-bottom: 16px;
}
}
[purpose='homepage-cards'] {
margin-top: 160px;
margin-bottom: 120px;
[purpose='homepage-card'] {
background: #FFFFFF;
box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.1);
border-radius: 16px;
padding: 40px;
width: 390px;
margin-left: 30px;
margin-right: 30px;
border: none;
}
}
@media (max-width: 4599px) {
[purpose='hero-background-image'] {
background-size: 4600px auto;
}
[purpose='homepage-hero'] {
height: 1250px;
}
}
@media (max-width: 3599px) {
[purpose='hero-background-image'] {
background-size: 3600px auto;
}
[purpose='homepage-hero'] {
height: 1050px;
}
}
@media (max-width: 2599px) {
[purpose='hero-background-image'] {
background-size: 1920px auto;
}
[purpose='homepage-hero'] {
height: 750px;
}
}
@media (max-width: 1400px) {
[purpose='hero-background-image'] {
background-size: 1921px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-content'] {
max-width: 1200px;
padding-right: 60px;
padding-left: 60px;
}
[purpose='homepage-hero'] {
max-width: 1080px;
height: 750px;
}
}
@media (max-width: 1200px) {
[purpose='hero-background-image'] {
background-size: 1600px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-hero'] {
max-width: 1080px;
height: 726px;
}
[purpose='homepage-content'] {
max-width: 1200px;
padding-right: 60px;
padding-left: 60px;
}
}
@media (max-width: 991px) {
[purpose='hero-background-image'] {
background-size: 1400px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-hero'] {
max-width: 100%;
height: 720px;
}
[purpose='hero-logos'] {
margin-top: 24px;
img {
display: inline;
}
[purpose='snowflake-logo'] {
height: 22px;
width: auto;
}
[purpose='wayfair-logo'] {
height: 22px;
width: auto;
}
[purpose='uber-logo'] {
height: 22px;
width: auto;
}
[purpose='atlassian-logo'] {
height: 16px;
width: auto;
}
[purpose='segment-logo'] {
height: 24px;
}
}
[purpose='logo-column'] {
img {
margin-right: 20px;
margin-left: 20px;
}
}
[purpose='platform-left-text-block'] {
max-width: 357px;
margin-right: 80px;
}
[purpose='platform-right-text-block'] {
max-width: 357px;
margin-left: 80px;
}
[purpose='platform-small-text-block'] {
max-width: 357px;
margin-right: 80px;
}
[purpose='platform-large-image'] {
width: 453px;
img {
width: 100%;
height: auto;
}
}
[purpose='bottom-cloud-city-banner'] {
max-height: 375px;
height: auto;
width: 100%;
}
}
@media (max-width: 767px) {
[purpose='hero-background-image'] {
background-size: 1200px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-hero'] {
height: 650px;
}
[purpose='homepage-content'] {
padding-right: 40px;
padding-left: 40px;
}
[purpose='button-row'] {
width: 100%;
}
[purpose='hero-text'] {
min-width: unset;
text-align: center;
p {
max-width: 550px;
margin-right: auto;
margin-left: auto;
}
}
[purpose='hero-logos'] {
margin-top: 32px;
margin-bottom: 80px;
[purpose='snowflake-logo'] {
height: 30px;
}
[purpose='wayfair-logo'] {
height: 33px;
}
[purpose='uber-logo'] {
height: 30px;
}
[purpose='atlassian-logo'] {
height: 21px;
}
[purpose='segment-logo'] {
height: 32px;
}
[purpose='bottom-row-uber-logo'] {
display: none;
}
}
[purpose='homepage-text-block'] {
margin-bottom: 80px;
p {
max-width: 527px;
margin: 0 auto;
}
}
[purpose='platform-left-text-block'] {
max-width: 100%;
margin-right: 0px;
margin-bottom: 80px;
}
[purpose='platform-right-text-block'] {
max-width: 100%;
margin-left: 0px;
margin-bottom: 80px;
}
[purpose='platform-small-text-block'] {
max-width: 100%;
margin-right: 0px;
margin-bottom: 80px;
}
[purpose='platform-image'] {
width: 100%;
}
[purpose='platform-large-image'] {
width: 100%;
img {
width: 100%;
height: auto;
}
}
[purpose='supported-platforms'] {
margin-bottom: 100px;
}
[purpose='platform'] {
margin-bottom: 80px;
}
[purpose='homepage-cards'] {
margin-bottom: 100px;
[purpose='homepage-card'] {
background: #FFFFFF;
box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.1);
border-radius: 16px;
padding: 40px;
width: 100%;
margin-left: auto;
margin-right: auto;
border: none;
&:first-of-type {
margin-bottom: 60px;
}
}
}
[purpose='three-column-features'] {
margin-bottom: 120px;
}
}
@media (max-width: 575px) {
[purpose='hero-background-image'] {
background-size: 960px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='homepage-hero'] {
height: 625px;
padding-left: 24px;
padding-right: 24px;
}
h1 {
font-weight: 800;
font-size: 40px;
line-height: 60px;
}
[purpose='hero-text'] {
padding-bottom: 260px;
h1 {
font-size: 40px;
line-height: 60px;
}
h4 {
font-size: 14px;
}
p {
font-size: 16px;
}
}
[purpose='homepage-content'] {
padding-right: 24px;
padding-left: 24px;
}
[purpose='platform-left-text-block'], [purpose='platform-right-text-block'] {
text-align: left;
}
[purpose='button-row'] {
[purpose='cta-button'] {
cursor: pointer;
margin-right: 0px;
width: 100%;
margin-bottom: 24px;
}
}
[purpose='platform-image'] {
width: 100%;
img {
width: 100%;
height: auto;
}
}
[purpose='supported-platform'] {
margin-bottom: 24px;
}
[purpose='two-column-features'] {
margin-bottom: 100px;
[purpose='feature-row'] {
margin-bottom: 60px;
[purpose='feature'] {
margin-left: 0px;
margin-right: 0px;
max-width: 100%;
margin-bottom: 60px;
text-align: center;
img {
margin-right: auto;
margin-left: auto;
}
}
}
}
[purpose='three-column-features'] {
margin-bottom: 100px;
h2 {
text-align: center;
}
[purpose='feature-row'] {
[purpose='feature'] {
max-width: 100%;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 60px;
text-align: center;
img {
margin-right: auto;
margin-left: auto;
}
}
}
}
[purpose='hero-logos'] {
img {
display: inline;
}
[purpose='snowflake-logo'] {
height: 22px;
width: auto;
}
[purpose='wayfair-logo'] {
height: 22px;
width: auto;
}
[purpose='uber-logo'] {
height: 22px;
width: auto;
}
[purpose='atlassian-logo'] {
height: 16px;
width: auto;
}
[purpose='segment-logo'] {
height: 24px;
}
}
}
@media (max-width: 375px) {
[purpose='hero-background-image'] {
background-size: 800px auto;
background-position: center bottom;
background-repeat: no-repeat;
}
[purpose='hero-text'] {
padding-bottom: 260px;
h1 {
font-size: 35px;
line-height: 60px;
}
h4 {
font-size: 14px;
}
p {
font-size: 16px;
}
}
[purpose='homepage-hero'] {
height: 647px;
}
[purpose='homepage-content'] {
padding-right: 20px;
padding-left: 20px;
}
[purpose='hero-logos'] {
img {
display: inline;
}
[purpose='uber-logo'] {
display: none;
}
[purpose='bottom-row-uber-logo'] {
margin-top: 24px;
display: flex;
}
}
}
}