atom/atom.io

Share button on Mobile Devices

MoPaMo opened this issue · 0 comments

Summary

Make the not installable section on mobile devices clickable to open the native share dialog.

Motivation

Make the home site more interactive, make it easier for user on mobile devices to install Atom, spread Atom

Describe alternatives you've considered

It’s just a tiny feature…

Full Text 😅

When browsing atom.io on mobile devices, the download button is hidden and there’s a section saying […] Check back on your desktop computing device to download a copy which is ok but also kind of “rejecting” the user...
I thought it might give users more interaction with the site if they could just click on that paragraph and thereby open a native share menu to send it to their computer. web.dev has a pretty good article on how to do that:

if (navigator.share) {
  navigator.share({
    title: 'Atom',
    text: 'A hackable text editor for the 21st Century',
    url: 'https://atom.io/',
  })
    .then(() => console.log('Successful share'))
    .catch((error) => console.log('Error sharing', error));
}

Additional context

2F496E31-1DF9-4EDF-A6EB-29FD9FA01781