diff --git a/website/.eslintrc b/website/.eslintrc index de92b9c3fb..7fe6deb437 100644 --- a/website/.eslintrc +++ b/website/.eslintrc @@ -5,7 +5,7 @@ // A set of basic code conventions designed to encourage quality and consistency // across your Sails app's code base. These rules are checked against // automatically any time you run `npm test`. - // + // // > An additional eslintrc override file is included in the `assets/` folder // > right out of the box. This is specifically to allow for variations in acceptable // > global variables between front-end JavaScript code designed to run in the browser @@ -22,6 +22,8 @@ // or could use some advice, come by https://sailsjs.com/support. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + "root": true, // « ignore eslintrc files in parent directories + "env": { "node": true }, @@ -40,7 +42,7 @@ // Models: "User": true - + // …and any others. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }, diff --git a/website/assets/js/pages/homepage.page.js b/website/assets/js/pages/homepage.page.js index 2eaf683ebe..8354de7c32 100644 --- a/website/assets/js/pages/homepage.page.js +++ b/website/assets/js/pages/homepage.page.js @@ -20,6 +20,16 @@ parasails.registerPage('homepage', { // ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗ // ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝ methods: { - //… + clickChatButton: function() { + // Temporary hack to open the chat + // (there's currently no official API for doing this outside of React) + // + // > Alex: hey mike! if you're just trying to open the chat on load, we actually have a `defaultIsOpen` field + // > you can set to `true` :) i haven't added the `Papercups.open` function to the global `Papercups` object yet, + // > but this is basically what the functions look like if you want to try and just invoke them yourself: + // > https://github.com/papercups-io/chat-widget/blob/master/src/index.tsx#L4-L6 + // > ~Dec 31, 2020 + window.dispatchEvent(new Event('papercups:open')); + } } }); diff --git a/website/assets/styles/pages/homepage.less b/website/assets/styles/pages/homepage.less index 6ddfad4950..fa63c38041 100644 --- a/website/assets/styles/pages/homepage.less +++ b/website/assets/styles/pages/homepage.less @@ -31,6 +31,9 @@ .quote-mark { font-family: @header-font; } + .footer-fade { + background: linear-gradient(360deg, #201E43 0%, #353D62 100%); + } @media (max-width: 1175px) { .hero-bg { background-position: -1100px bottom; diff --git a/website/config/routes.js b/website/config/routes.js index d677c2c421..16bcaf1d23 100644 --- a/website/config/routes.js +++ b/website/config/routes.js @@ -34,6 +34,7 @@ module.exports.routes = { '/company/about': '/blog', // FUTURE: brief "about" page explaining the origins of the company '/company/stewardship': 'https://github.com/fleetdm/fleet', // FUTURE: page about how we approach open source and our commitments to the community + // 'GET /company/contact': { action: 'view-contact' }, '/company/contact': (req, res)=>{ // FUTURE: Page about this. See “Contacting Fleet” in google drive for verbiage (updated holiday hours) - better to just make it all open source and check it in here. For inspiration, see also: https://about.gitlab.com/company/contact/ res.redirect('mailto:todo@example.com?subject=I have a question&body=Please do not send this email!\n\nWe are a very young company and still working on our processes. For now, if you have questions or feedback for us, please create an issue at https://github.com/fleetdm/fleet/issues. Thank you!'); @@ -44,7 +45,6 @@ module.exports.routes = { // 'GET /faq': { action: 'view-faq' }, // 'GET /legal/terms': { action: 'legal/view-terms' }, // 'GET /legal/privacy': { action: 'legal/view-privacy' }, - // 'GET /contact': { action: 'view-contact' }, // 'GET /signup': { action: 'entrance/view-signup' }, // 'GET /email/confirm': { action: 'entrance/confirm-email' }, diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs index c3baf2d4b8..c0c29c1841 100644 --- a/website/views/layouts/layout.ejs +++ b/website/views/layouts/layout.ejs @@ -52,7 +52,7 @@ <%- body %> -
+
@@ -106,6 +106,11 @@ (https://sailsjs.com/docs/concepts/assets/task-automation) */ %> + <% /* Chat (Papercups) */ %> + + + + <%/* Stripe.js */%> @@ -219,7 +224,7 @@ document.body.style.padding = '75px 0'; } } - })();//† + })(); diff --git a/website/views/pages/homepage.ejs b/website/views/pages/homepage.ejs index 6d3ed6a932..b226916c7c 100644 --- a/website/views/pages/homepage.ejs +++ b/website/views/pages/homepage.ejs @@ -8,7 +8,7 @@

Open source
 device management

Ask questions about your servers, containers, and laptops running Linux, Windows, and macOS. Quickly deploy osquery and scale your fleet to 50,000+ devices on top of a stable core technology.

- Get started with Fleet + Get started with Fleet
@@ -140,9 +140,9 @@
-

Fleet is hands down the best osquery platform out there. Zach and I created Fleet as a natural extension to our original vision for osquery and this has manifested in the ease-of-use, flexibility, and adoption it has today. Look to Fleet for the future of open-source endpoint monitoring.

-

- Mike Arpaia, Creator of osquery

- Atlassian logo +

I've been using Fleet to manage thousands of hosts running osquery. Fleet itself is pretty low-maintenance; mostly I don't have to worry about Fleet uptime and instead focus on what matters: deploying osquery, developing better queries, and getting the most out of osquery logs.

+

- Brendan Shaklovitz, Senior Site Reliability Engineer, Security Team @ Atlassian

+ Atlassian logo
@@ -159,13 +159,139 @@
-

I've been using Fleet to manage thousands of hosts running osquery. Fleet itself is pretty low-maintenance; mostly I don't have to worry about Fleet uptime and instead focus on what matters: deploying osquery, developing better queries, and getting the most out of osquery logs.

-

- Brendan Shaklovitz, Senior Site Reliability Engineer, Security Team @ Atlassian

- Atlassian logo +

Fleet is hands down the best osquery platform out there. Zach and I created Fleet as a natural extension to our original vision for osquery and this has manifested in the ease-of-use, flexibility, and adoption it has today. Look to Fleet for the future of open-source endpoint monitoring.

+

- Mike Arpaia, Co-creator of osquery

+ osquery logo
- +