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 %> -