Skip to content

Commit 1fe9b23

Browse files
author
Stefan Buck
committed
Add safari link
1 parent 5e2128e commit 1fe9b23

File tree

7 files changed

+56
-35
lines changed

7 files changed

+56
-35
lines changed

components/install.js

+51-35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dynamic from 'next/dynamic';
2-
2+
import Image from 'next/image';
33
const InstallButton = dynamic(import ('./installButton'),{ssr:false});
44

55
export default function Install() {
@@ -18,42 +18,58 @@ export default function Install() {
1818
padding-left: 1em;
1919
}
2020
}
21+
22+
.logos {
23+
display: flex;
24+
gap: 12px;
25+
margin-top: 12px;
26+
}
27+
28+
@media only screen and (min-width: 768px) {
29+
.logos {
30+
justify-content: center;
31+
}
32+
}
2133
`}</style>
2234
<p>
23-
OctoLinker is a browser extension and available on{" "}
24-
<a
25-
href="https://chrome.google.com/webstore/detail/octo-linker/jlmafbaeoofdegohdhinkhilhclaklkp"
26-
onClick={function() { window.plausible("install: chrome")}}
27-
rel="nofollow"
28-
>
29-
<nobr>Chrome Web Store</nobr>
30-
</a>
31-
,{" "}
32-
<a
33-
href="https://addons.mozilla.org/en-US/firefox/addon/octolinker/"
34-
onClick={function() { window.plausible("install: mozilla")}}
35-
rel="nofollow"
36-
>
37-
<nobr>Mozilla Add-ons Store</nobr>
38-
</a>
39-
,{" "}
40-
<a
41-
href="https://microsoftedge.microsoft.com/addons/detail/lbbanfffjfmfdahnfbklminikafhcjjb"
42-
onClick={function() { window.plausible("install: edge")}}
43-
rel="nofollow"
44-
>
45-
<nobr>Microsoft Store</nobr>
46-
</a>
47-
{" and "}
48-
<a
49-
href="https://addons.opera.com/en/extensions/details/octolinker/"
50-
onClick={function() { window.plausible("install: opera")}}
51-
rel="nofollow"
52-
>
53-
<nobr>Opera Add-ons Store</nobr>
54-
</a>.
55-
<br />
56-
Install and enhance your GitHub experience.
35+
OctoLinker is a browser extension. Install and enhance your GitHub experience.
36+
<div className="logos">
37+
<a
38+
href="https://chrome.google.com/webstore/detail/octo-linker/jlmafbaeoofdegohdhinkhilhclaklkp"
39+
onClick={function() { window.plausible("install: chrome")}}
40+
rel="nofollow"
41+
>
42+
<Image alt="Chrome Web Store" src="/static/chrome.png" width="48" height="48" />
43+
</a>
44+
<a
45+
href="https://addons.mozilla.org/en-US/firefox/addon/octolinker/"
46+
onClick={function() { window.plausible("install: mozilla")}}
47+
rel="nofollow"
48+
>
49+
<Image alt="Mozilla Add-ons Store" src="/static/firefox.png" width="48" height="48" />
50+
</a>
51+
<a
52+
href="https://apps.apple.com/app/octolinker/id1549308269"
53+
onClick={function() { window.plausible("install: safari")}}
54+
rel="nofollow"
55+
>
56+
<Image alt="Mac App Store" src="/static/safari.png" width="48" height="48" />
57+
</a>
58+
<a
59+
href="https://microsoftedge.microsoft.com/addons/detail/lbbanfffjfmfdahnfbklminikafhcjjb"
60+
onClick={function() { window.plausible("install: edge")}}
61+
rel="nofollow"
62+
>
63+
<Image alt="Microsoft Store" src="/static/edge.png" width="48" height="48" />
64+
</a>
65+
<a
66+
href="https://addons.opera.com/en/extensions/details/octolinker/"
67+
onClick={function() { window.plausible("install: opera")}}
68+
rel="nofollow"
69+
>
70+
<Image alt="Opera Add-ons Store" src="/static/opera.png" width="48" height="48" />
71+
</a>
72+
</div>
5773
</p>
5874
<InstallButton />
5975
<div className="install-count">

components/installButton.js

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export default function Install({ children, compact }) {
2323
eventName: 'install: edge',
2424
text: "Install for Microsoft Edge",
2525
url: "https://microsoftedge.microsoft.com/addons/detail/lbbanfffjfmfdahnfbklminikafhcjjb"
26+
},
27+
'safari': {
28+
eventName: 'install: safari',
29+
text: "Install for Safari",
30+
url: "https://apps.apple.com/app/octolinker/id1549308269"
2631
}
2732
};
2833

static/chrome.png

11.9 KB
Loading

static/edge.png

11 KB
Loading

static/firefox.png

14.7 KB
Loading

static/opera.png

5.61 KB
Loading

static/safari.png

23.5 KB
Loading

0 commit comments

Comments
 (0)