Skip to content

Commit 058c244

Browse files
committed
feat(website/nodejs#7443): progress on simplified download layout
1 parent 0bc5be1 commit 058c244

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

apps/site/next.dynamic.constants.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import {
44
provideBlogCategories,
55
provideBlogPosts,
66
} from './next-data/providers/blogData';
7+
import provideReleaseData from './next-data/providers/releaseData';
78
import { BASE_PATH, BASE_URL } from './next.constants.mjs';
89
import { siteConfig } from './next.json.mjs';
910
import { defaultLocale } from './next.locales.mjs';
10-
import provideReleaseData from './next-data/providers/releaseData';
1111

1212
/**
1313
* This is a list of all static routes or pages from the Website that we do not
@@ -49,7 +49,10 @@ export const DYNAMIC_ROUTES = new Map([
4949
// Provides Routes for all Node.js major version download pages
5050
['en/download/simplified', 'download-simple'],
5151
// Add dynamic routes for each major version
52-
...provideReleaseData().map(release => [`en/download/${release.major}`, 'download-simple']),
52+
...provideReleaseData().map(release => [
53+
`en/download/${release.major}`,
54+
'download-simple',
55+
]),
5356
]);
5457

5558
/**

apps/site/pages/en/download/simplified.mdx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,46 @@ layout: download-simple
33
title: Download Node.js
44
---
55

6+
<section>
7+
8+
Get Node.js® <Release.VersionDropdown /> for <Release.OperatingSystemDropdown /> using <Release.InstallationMethodDropdown /> with <Release.PackageManagerDropdown />
9+
10+
<Release.ReleaseCodeBox />
11+
12+
<Release.Provider>
13+
14+
Or get a prebuilt Node.js® for <Release.OperatingSystemDropdown /> running a <Release.PlatformDropdown /> architecture.
15+
16+
<Release.PrebuiltDownloadButtons />
17+
18+
</Release.Provider>
19+
20+
</section>
21+
22+
<section>
23+
24+
Read the <Release.ChangelogLink>changelog</Release.ChangelogLink> for this version.
25+
26+
Read the <Release.BlogPostLink>blog post</Release.BlogPostLink> for this version.
27+
28+
Learn how to <LinkWithArrow href="https://github.com/nodejs/node#verifying-binaries">verify</LinkWithArrow> signed SHASUMS.
29+
30+
Looking for Node.js source? Download a signed <Release.DownloadLink kind="source">Node.js source</Release.DownloadLink> tarball.
31+
32+
Check out our <LinkWithArrow href="https://nodejs.org/download/nightly/">nightly</LinkWithArrow> binaries or
33+
all <LinkWithArrow href="https://nodejs.org/download/release/">previous releases</LinkWithArrow>
34+
or the <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">unofficial</LinkWithArrow> binaries for other platforms.
35+
36+
<noscript>
37+
<div className="noscript-warning">
38+
<p>
39+
<strong>It looks like JavaScript is disabled in your browser.</strong>
40+
</p>
41+
<p>
42+
For a better experience with JavaScript-free downloads, please visit our{' '}
43+
<Link href="/en/download/simplified/20">simplified download page</Link>.
44+
</p>
45+
</div>
46+
</noscript>
47+
48+
</section>

0 commit comments

Comments
 (0)