diff --git a/website/assets/js/components/scrollable-tweets.component.js b/website/assets/js/components/scrollable-tweets.component.js index d42f167703..512187f70a 100644 --- a/website/assets/js/components/scrollable-tweets.component.js +++ b/website/assets/js/components/scrollable-tweets.component.js @@ -150,7 +150,7 @@ parasails.registerComponent('scrollableTweets', { this.tweetCardWidth = firstTweetCardDiv.clientWidth + 16; let usersScreenWidth = window.innerWidth; // Get the number of tweets that can be visible on the user's screen - this.numberOfTweetsPerPage = Math.floor(usersScreenWidth/this.tweetCardWidth); + this.numberOfTweetsPerPage = Math.max(Math.floor(usersScreenWidth/this.tweetCardWidth), 1); // Divide the number of tweet cards by the number of tweets that can fit on a users screen this.numberOfTweetPages = Math.ceil(this.numberOfTweetCards / this.numberOfTweetsPerPage); await this.forceRender(); @@ -163,6 +163,9 @@ parasails.registerComponent('scrollableTweets', { // Divide the current amount scrolled by the width of a tweet card, and divide that value by how many tweet cards we can show on a page. let pageCurrentlyViewed = ((currentTweetDivScrollAmount) / this.tweetCardWidth) / this.numberOfTweetsPerPage; let pageToIndicate = Math.ceil(pageCurrentlyViewed + 1); + if(pageToIndicate > this.numberOfTweetPages){ + pageToIndicate = this.numberOfTweetPages; + } // Update the currentTweetPage value this.currentTweetPage = pageToIndicate; }, diff --git a/website/assets/js/pages/fleet-mdm.page.js b/website/assets/js/pages/fleet-mdm.page.js index 44e3999983..ef298e5197 100644 --- a/website/assets/js/pages/fleet-mdm.page.js +++ b/website/assets/js/pages/fleet-mdm.page.js @@ -45,6 +45,11 @@ parasails.registerPage('device-management', { closeModal: function () { this.modal = ''; }, + typeClearOneFormError: async function(field) { + if(this.formErrors[field]){ + this.formErrors = _.omit(this.formErrors, field); + } + }, submittedForm: function() { this.showSignupFormSuccess = true; }, diff --git a/website/assets/styles/pages/fleet-mdm.less b/website/assets/styles/pages/fleet-mdm.less index 0a8256f971..511497dd95 100644 --- a/website/assets/styles/pages/fleet-mdm.less +++ b/website/assets/styles/pages/fleet-mdm.less @@ -72,7 +72,26 @@ justify-content: center; align-items: center; color: #FFF; + position: relative; } + [purpose='mdm-beta-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='mdm-beta-button']:hover:before { + opacity: 0; + left: 160px; + width: 110%; + } + [purpose='animated-arrow-button-red'] { display: inline; padding-right: 40px; @@ -207,7 +226,8 @@ label { font-weight: 700; } - min-width: 450px; + width: 100%; + max-width: 450px; } [purpose='submit-button'] { @@ -390,11 +410,9 @@ } [purpose='modal-content'] { + margin-top: 40px; padding: 40px 20px 80px 20px; } - [purpose='modal-form'] { - min-width: auto; - } } } diff --git a/website/views/pages/fleet-mdm.ejs b/website/views/pages/fleet-mdm.ejs index 2d06bde4c3..6f31321b4b 100644 --- a/website/views/pages/fleet-mdm.ejs +++ b/website/views/pages/fleet-mdm.ejs @@ -94,16 +94,18 @@ -
+

Don’t know osquery?

Dedicated support from osquery experts

Osquery is the open-source agent that powers Fleet. And we have the most osquery experts around. We’ll help you realize the potential of this tool for your organization.

- +
+
- +
+
The Snowflake logo The Wayfair logo @@ -123,18 +125,18 @@
- +
Please enter your name.
- -
Please enter your email address.
+ +
This doesn’t appear to be a valid email address
- -
Please enter your Job title.
+ +
Please enter your job title.