Skip to content

Commit 1c8abdd

Browse files
committed
feat: home page button redirects
1 parent f533ebc commit 1c8abdd

File tree

15 files changed

+10
-1569
lines changed

15 files changed

+10
-1569
lines changed

apps/site/components/Downloads/DownloadButton/index.module.css

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/site/components/Downloads/DownloadButton/index.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

apps/site/next.mdx.use.client.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Blockquote from '@node-core/ui-components/Common/Blockquote';
44
import MDXCodeTabs from '@node-core/ui-components/MDX/CodeTabs';
55

66
import Button from './components/Common/Button';
7-
import DownloadButton from './components/Downloads/DownloadButton';
87
import DownloadLink from './components/Downloads/DownloadLink';
98
import BlogPostLink from './components/Downloads/Release/BlogPostLink';
109
import ChangelogLink from './components/Downloads/Release/ChangelogLink';
@@ -36,8 +35,6 @@ export const clientMdxComponents = {
3635
LinkWithArrow: LinkWithArrow,
3736
// Regular links (without arrow)
3837
Link: Link,
39-
// Renders a Download Button
40-
DownloadButton: DownloadButton,
4138
// Renders a Download Link
4239
DownloadLink: DownloadLink,
4340
// Group of components that enable you to select versions for Node.js

apps/site/pages/en/index.mdx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ layout: home
1414

1515
</div>
1616

17-
<div>
18-
<WithNodeRelease status={['LTS']}>
19-
{({ release }) => (
20-
<>
21-
<DownloadButton release={release}>Download Node.js (LTS)</DownloadButton>
22-
<small>
23-
Downloads Node.js <b>{release.versionWithPrefix}</b>
24-
<sup title="Downloads a Node.js installer for your current platform">1</sup> with long-term support.
25-
Node.js can also be installed via <Link href="/download">version managers</Link>.
26-
</small>
27-
</>
28-
)}
29-
</WithNodeRelease>
17+
<div className="flex gap-4">
18+
19+
<div className="flex flex-col md:flex-row gap-2">
20+
<Button kind="special" className="!hidden dark:!block" href="/download">Download Node.js (LTS)</Button>
21+
22+
<Button kind="primary" className="!block dark:!hidden" href="/download">Download Node.js (LTS)</Button>
23+
24+
<Button kind="secondary" href="/about/get-involved">Getting Involved</Button>
25+
26+
</div>
3027

3128
<WithNodeRelease status={['Current']}>
3229
{({ release }) => (

apps/site/pages/es/index.mdx

Lines changed: 0 additions & 135 deletions
This file was deleted.

apps/site/pages/fa/index.mdx

Lines changed: 0 additions & 133 deletions
This file was deleted.

0 commit comments

Comments
 (0)