Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Share button on Mobile Devices #221

Open
MoPaMo opened this issue Jul 14, 2021 · 0 comments
Open

Share button on Mobile Devices #221

MoPaMo opened this issue Jul 14, 2021 · 0 comments

Comments

@MoPaMo
Copy link

MoPaMo commented Jul 14, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant