Skip to content

Commit bfb944d

Browse files
leoLabhanshAgrawal
andauthored
Add dedicated download button for Apple Silicon (#254)
* Add arm64 download links (#249) * Added npm lockfile * Fixed table styling * Add dedicated button for M1 * Fixed readme Co-authored-by: Labhansh Agrawal <[email protected]>
1 parent 369e0b2 commit bfb944d

File tree

6 files changed

+9136
-41
lines changed

6 files changed

+9136
-41
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Want to submit a plugin or theme to the Hyper Store? Follow [the guide on the we
99
To submit a feature, bug fix, or enhancement to the Hyper website proceed as follows:
1010

1111
1. Clone this repo
12-
2. Within your terminal, run `yarn` to install the dependencies
13-
3. Once the dependencies are installed, run `yarn dev` to start the dev server on `localhost:3000`
12+
2. Within your terminal, run `npm install` to install the dependencies
13+
3. Once the dependencies are installed, run `npm run dev` to start the dev server on `localhost:3000`
1414

1515
We really appreciate any contribution
1616

components/download-button/download-button.module.css

+14
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,17 @@
2222
.root svg {
2323
margin-right: 12px;
2424
}
25+
26+
.doubleWrap {
27+
display: flex;
28+
}
29+
30+
.doubleWrap a:nth-child(2) {
31+
margin-left: 10px;
32+
}
33+
34+
@media screen and (max-width: 900px) {
35+
.doubleWrap a:nth-child(1) {
36+
display: none;
37+
}
38+
}

components/download-button/index.js

+25-14
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,26 @@ const DownloadButton = () => {
77

88
if (os === 'mac') {
99
return (
10-
<a
11-
className={styles.root}
12-
href="https://releases.hyper.is/download/mac"
13-
target="_blank"
14-
rel="noopener noreferrer"
15-
>
16-
<Apple size={16} />
17-
<strong>Download Hyper</strong>
18-
</a>
10+
<div className={styles.doubleWrap}>
11+
<a
12+
className={styles.root}
13+
href="https://releases.hyper.is/download/mac"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
>
17+
<Apple size={16} />
18+
<strong>Download for Intel Chip</strong>
19+
</a>
20+
<a
21+
className={styles.root}
22+
href="https://releases.hyper.is/download/mac_arm64"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
>
26+
<Apple size={16} />
27+
<strong>Download for Apple Chip</strong>
28+
</a>
29+
</div>
1930
)
2031
} else if (os === 'windows') {
2132
return (
@@ -26,7 +37,7 @@ const DownloadButton = () => {
2637
rel="noopener noreferrer"
2738
>
2839
<Windows size={16} />
29-
<strong>Download Hyper</strong>
40+
<strong>Download</strong>
3041
</a>
3142
)
3243
} else if (os === 'fedora') {
@@ -38,7 +49,7 @@ const DownloadButton = () => {
3849
rel="noopener noreferrer"
3950
>
4051
<Linux size={16} />
41-
<strong>Download Hyper</strong>
52+
<strong>Download</strong>
4253
</a>
4354
)
4455
} else if (os === 'ubuntu') {
@@ -50,7 +61,7 @@ const DownloadButton = () => {
5061
rel="noopener noreferrer"
5162
>
5263
<Linux size={16} />
53-
<strong>Download Hyper</strong>
64+
<strong>Download</strong>
5465
</a>
5566
)
5667
} else if (os === 'linux') {
@@ -62,14 +73,14 @@ const DownloadButton = () => {
6273
rel="noopener noreferrer"
6374
>
6475
<Linux />
65-
<strong>Download Hyper</strong>
76+
<strong>Download</strong>
6677
</a>
6778
)
6879
} else {
6980
return (
7081
<a href="/#installation" className={styles.root}>
7182
<Download height={12} width={16} />
72-
<strong>Download Hyper</strong>
83+
<strong>Download</strong>
7384
</a>
7485
)
7586
}

0 commit comments

Comments
 (0)