From d6a75ebc8bfdd2dc4981859d066616afa89b3d76 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 20 Nov 2025 16:58:07 -0600 Subject: [PATCH] Website: Update "Try it yourself" links (#36095) Closes: https://github.com/fleetdm/fleet/issues/36007 Related to: https://github.com/fleetdm/fleet/issues/35263 Changes: - Created a new component: ``. A button that opens the signup modal for non-logged-in users, and takes logged-in users to the /try page - Replaced "Try it yourself" links on the /device-management, /orchestration, /software-management, /testimonials, and the homepage with the `` component. - Updated the hover styles of the links on the support page. --- .../js/components/signup-button.component.js | 57 +++++++++++++++++++ website/assets/styles/pages/support.less | 6 ++ website/views/layouts/layout.ejs | 1 + website/views/pages/device-management.ejs | 4 +- website/views/pages/homepage.ejs | 2 +- website/views/pages/observability.ejs | 4 +- website/views/pages/software-management.ejs | 4 +- website/views/pages/testimonials.ejs | 2 +- 8 files changed, 72 insertions(+), 8 deletions(-) create mode 100644 website/assets/js/components/signup-button.component.js diff --git a/website/assets/js/components/signup-button.component.js b/website/assets/js/components/signup-button.component.js new file mode 100644 index 0000000000..bc819681c3 --- /dev/null +++ b/website/assets/js/components/signup-button.component.js @@ -0,0 +1,57 @@ +/** + * + * ----------------------------------------------------------------------------- + * An animated arrow button that either opens the signup model or sends logged-in users to the Fleet Premium trial page. + * + * @type {Component} + * + * Example usage: + * + * + * ----------------------------------------------------------------------------- + */ + +parasails.registerComponent('signupButton', { + // ╔═╗╦═╗╔═╗╔═╗╔═╗ + // ╠═╝╠╦╝║ ║╠═╝╚═╗ + // ╩ ╩╚═╚═╝╩ ╚═╝ + props: [ + 'isLoggedIn', + ], + + // ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗ + // ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣ + // ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝ + data: function (){ + return {}; + }, + + // ╦ ╦╔╦╗╔╦╗╦ + // ╠═╣ ║ ║║║║ + // ╩ ╩ ╩ ╩ ╩╩═╝ + template: ` +
+ Try it yourself + Try it yourself +
+ `, + + // ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗ + // ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣ + // ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝ + beforeMount: function() { + //… + }, + mounted: async function(){ + //… + }, + beforeDestroy: function() { + //… + }, + // ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗ + // ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗ + // ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝ + methods: { + //… + } +}); diff --git a/website/assets/styles/pages/support.less b/website/assets/styles/pages/support.less index ac895504db..7ea7d4fa97 100644 --- a/website/assets/styles/pages/support.less +++ b/website/assets/styles/pages/support.less @@ -74,6 +74,9 @@ a { text-decoration: none; min-width: 0px; + &:hover { + color: @core-fleet-black-75; + } } [purpose='support-card'] { width: 100%; @@ -87,6 +90,9 @@ a { text-decoration: none; min-width: 0px; + &:hover { + color: @core-fleet-black-75; + } } flex-direction: column; [purpose='support-row'] { diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs index 8d8d6b43d0..062800ebb3 100644 --- a/website/views/layouts/layout.ejs +++ b/website/views/layouts/layout.ejs @@ -885,6 +885,7 @@ + diff --git a/website/views/pages/device-management.ejs b/website/views/pages/device-management.ejs index 7849b7c7fc..aad5fe96f9 100644 --- a/website/views/pages/device-management.ejs +++ b/website/views/pages/device-management.ejs @@ -824,7 +824,7 @@
Get a demo - Try it yourself +
<%/* Shorten the feedback loop section */%> @@ -914,7 +914,7 @@

Your last MDM migration

Get a demo - Try it yourself +
diff --git a/website/views/pages/homepage.ejs b/website/views/pages/homepage.ejs index 85034fcd28..8e60b3c67d 100644 --- a/website/views/pages/homepage.ejs +++ b/website/views/pages/homepage.ejs @@ -1452,7 +1452,7 @@
Get a demo - Try it yourself +
diff --git a/website/views/pages/observability.ejs b/website/views/pages/observability.ejs index 0241bdf7ff..4a5423578e 100644 --- a/website/views/pages/observability.ejs +++ b/website/views/pages/observability.ejs @@ -28,7 +28,7 @@ <% }%>
Get a demo - Try it yourself +
@@ -272,7 +272,7 @@

<%= pagePersonalization==='eo-security'? 'Instrument your endpoints' : 'Talk to your computers'%>

Get a demo - Try it yourself +
diff --git a/website/views/pages/software-management.ejs b/website/views/pages/software-management.ejs index ad1cc96840..a4d7dfe8c0 100644 --- a/website/views/pages/software-management.ejs +++ b/website/views/pages/software-management.ejs @@ -7,7 +7,7 @@

Pick from a curated software catalog or upload your own custom packages. Configure custom installation scripts if you need or let Fleet do it for you.

Get a demo - Try it yourself +
@@ -220,7 +220,7 @@

Manage software consistently

Get a demo - Try it yourself +
diff --git a/website/views/pages/testimonials.ejs b/website/views/pages/testimonials.ejs index 0d5d1e452d..d7cd2c2b29 100644 --- a/website/views/pages/testimonials.ejs +++ b/website/views/pages/testimonials.ejs @@ -164,7 +164,7 @@

Easily get security data

Get a demo - Try it yourself +