Website: Update alignment of mobile nav links & homepage statistics styles (#23708)

Closes: #23640

Changes:
- Updated the styles of mobile nav links to keep text vertically
aligned.
- Updated the statistics on the homepage to stack vertically on smaller
screens
- Reduced the padding and font size of the homepage hero on smaller
screens
This commit is contained in:
Eric 2024-11-11 19:07:01 -06:00 committed by GitHub
parent 59c85b6ddd
commit a026d94c5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 17 deletions

View file

@ -316,6 +316,9 @@ html, body {
font-weight: 700;
cursor: pointer;
color: @core-fleet-black;
display: flex;
flex-direction: row;
align-items: center;
&:hover {
color: @core-vibrant-blue;
text-decoration: none;

View file

@ -84,6 +84,7 @@
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 64px;
h4 {
color: #515774;
text-align: center;
@ -1372,7 +1373,7 @@
@media (max-width: 575px) {
h1 {
font-size: 36px;
font-size: 32px;
}
h4 {
font-size: 14px;
@ -1386,29 +1387,35 @@
}
[purpose='homepage-hero'] {
padding-bottom: 320px;
padding-top: 32px;
padding-left: 24px;
padding-right: 24px;
}
[purpose='category-switch'] {
margin-top: 32px;
}
[purpose='statistics'] {
flex-direction: column;
max-width: fit-content;
margin-left: auto;
margin-right: auto;
[purpose='customers-and-countries-row'] {
order: 2;
margin-top: 32px;
h4 {
margin-bottom: 0px;
}
[purpose='customers'] {
padding: 16px 48px 16px 32px;
padding: 0px 64px 24px 64px;
border-right: none;
}
[purpose='devices'] {
order: 1;
border-top: 1px solid #E2E4EA;
border-bottom: 1px solid #E2E4EA;
padding: 16px 32px;
padding: 24px;
border-right: none;
}
[purpose='countries'] {
padding: 16px 32px 16px 48px;
padding: 24px 64px 0px 64px;
border-right: none;
}
@ -1521,6 +1528,7 @@
[purpose='hero-logos'] {
padding-left: 20px;
padding-right: 20px;
margin-bottom: 32px;
}
[purpose='video-modal'] {
[purpose='modal-content'] {

View file

@ -21,21 +21,15 @@
<div purpose="hero-logos" class="mx-auto">
<logo-carousel></logo-carousel>
<div purpose="statistics">
<div purpose="customers-and-countries-row" class="d-flex flex-row justify-content-center">
<div purpose="customers">
<h4>100+</h4>
<p>customers</p>
</div>
<div purpose="countries" class="d-flex d-sm-none">
<h4>90+</h4>
<p>countries</p>
</div>
<div purpose="customers">
<h4>100+</h4>
<p>customers</p>
</div>
<div purpose="devices">
<h4>2,000,000+</h4>
<p>computing devices</p>
</div>
<div purpose="countries" class="d-none d-sm-flex">
<div purpose="countries" >
<h4>90+</h4>
<p>countries</p>
</div>