Skip to content

Commit

Permalink
Website: update order of statistics on mobile homepage (#26427)
Browse files Browse the repository at this point in the history
Closes: fleetdm/confidential#9668

Changes:
- Updated the order of the stacked statistics on the homepage on mobile
devices (<575px)
  • Loading branch information
eashaw authored Feb 18, 2025
1 parent f596b9f commit ba61420
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
14 changes: 8 additions & 6 deletions website/assets/styles/pages/homepage.less
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,9 @@
margin-top: 32px;
}
[purpose='statistics'] {
[purpose='statistics-column'] {
flex-direction: column-reverse;
}
flex-direction: column;
max-width: fit-content;
margin-left: auto;
Expand All @@ -1474,22 +1477,21 @@
margin-bottom: 0px;
}
[purpose='customers'] {
padding: 0px 24px 24px 24px;
border-right: none;
padding: 24px 24px 0px 24px;
}
[purpose='devices'] {
border-top: 1px solid #E2E4EA;
border-bottom: 1px solid #E2E4EA;
padding: 24px;
padding: 0px 24px 24px 24px;
border-right: none;
}
[purpose='response-time'] {
padding: 24px;
border-bottom: 1px solid #E2E4EA;
}
[purpose='countries'] {
order: 1;
padding: 24px 24px 0px 24px;
// order: 1;
border-top: 1px solid #E2E4EA;
border-bottom: 1px solid #E2E4EA;
border-right: none;
}
}
Expand Down
12 changes: 10 additions & 2 deletions website/views/pages/homepage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,28 @@
<logo-carousel></logo-carousel>
<div purpose="statistics">
<div purpose="statistics-column">
<div purpose="customers">
<div purpose="customers" class="d-none d-sm-block">
<h4>100+</h4>
<p>customers</p>
</div>
<div purpose="countries" class="d-block d-sm-none">
<h4>90+</h4>
<p>countries</p>
</div>
<div purpose="devices">
<h4>2,000,000+</h4>
<p>computing devices</p>
</div>
</div>
<div purpose="statistics-column">
<div purpose="countries">
<div purpose="countries" class="d-none d-sm-block">
<h4>90+</h4>
<p>countries</p>
</div>
<div purpose="customers" class="d-block d-sm-none">
<h4>100+</h4>
<p>customers</p>
</div>
<div purpose="response-time">
<h4>8 minutes</h4>
<p>avg support response time</p>
Expand Down

0 comments on commit ba61420

Please sign in to comment.