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

Share button on Mobile Devices #221

@MoPaMo

Description

@MoPaMo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions