Skip to content

Conversation

@chrisd8088
Copy link
Member

With the advent of Apple's M1-based systems we now need to offer two download options for macOS users on our home page, as there is no convenient and reliable way to distinguish between hardware platforms in JavaScript.

Therefore we add a second "Apple Silicon" download button for macOS users, and rename the original button "Intel Silicon".

Rather than try to continue the existing practice of sharing the HTML code for the first download button with Windows, we refactor the download button HTML into three sections, one each for Windows, macOS, and Linux. This in turn allows us to delete the js-os-data CoffeeScript as each HTML section is now fully independent.

Having made this change for macOS, it also makes some sense for us to make a parallel change for Linux users, promoting the Intel/AMD x86-64 download option to a button aligned below the packagecloud.io install option button.

Because we now have two primary download options for macOS, and for Linux as well, we drop the hyperlink around the "Download" text in the our set of instructions for new users, as it is not useful to have that text always link to just one of several possible download options.

Lastly we add some simple whitespace-based padding just to make some of our text strings align slightly better in both the macOS and Linux versions of the home page.

The macOS version of the page now renders as:

Screen Shot 2022-02-08 at 10 44 27 PM

The Linux version now renders as:

Screen Shot 2022-02-08 at 10 44 59 PM

And the Windows version continues to render as it does currently:

Screen Shot 2022-02-08 at 10 45 26 PM

Fixes git-lfs/git-lfs#4836.
/cc @tecandrew as reporter.

With the advent of Apple's M1-based systems we now need to offer
two download options for macOS users on our home page, as there is
no convenient and reliable way to distinguish between hardware
platforms in JavaScript.

Therefore we add a second "Apple Silicon" download button for
macOS users, and rename the original button "Intel Silicon".

Rather than try to continue the existing practice of sharing the
HTML code for the first download button with Windows, we refactor
the download button HTML into three sections, one each for Windows,
macOS, and Linux.  This in turn allows us to delete the "js-os-data"
CoffeeScript as each HTML section is now fully independent.

Having made this change for macOS, it also makes some sense for us
to make a parallel change for Linux users, promoting the Intel/AMD
x86-64 download option to a button aligned below the packagecloud.io
install option button.

Because we now have two primary download options for macOS, and for
Linux as well, we drop the hyperlink around the "Download" text in
the our set of instructions for new users, as it is not useful to have
that text always link to just one of several possible download options.

Lastly we add some simple whitespace-based padding just to make some
of our text strings align slightly better in both the macOS and Linux
versions of the home page.
@chrisd8088 chrisd8088 requested a review from a team February 9, 2022 07:43
@chrisd8088 chrisd8088 merged commit 590696c into main Feb 9, 2022
@chrisd8088 chrisd8088 deleted the chrisd-revise-download-buttons branch February 9, 2022 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no choice for mac arch type on git-lfs.github.com

3 participants