Skip to content

Commit a2a4217

Browse files
committed
fix: replace h3 navigation with semantic nav in starter pages
1 parent 89bd79e commit a2a4217

File tree

8 files changed

+13
-16
lines changed

8 files changed

+13
-16
lines changed

css/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,6 @@ div.desktop-lang-switcher {
871871
.page-navigation {
872872
margin-top: 2rem;
873873
padding: 1rem 0;
874-
border-top: 1px solid var(--border);
875874
display: flex;
876875
justify-content: space-between;
877876
align-items: center;

de/starter/hello-world.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,4 @@ $ node app.js
4444

4545
Laden Sie dann [http://localhost:3000/](http://localhost:3000/) in einen Browser, um die Ausgabe zu sehen.
4646

47-
<div class="page-navigation">
48-
[Previous: Installing ](/{{ page.lang }}/starter/installing.html) [Next: Express Generator ](/{{ page.lang }}/starter/generator.html)
49-
</div>
47+
### [Previous: Installing ](/{{ page.lang }}/starter/installing.html)&nbsp;&nbsp;&nbsp;&nbsp;[Next: Express Generator ](/{{ page.lang }}/starter/generator.html)

en/starter/basic-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ app.delete('/user', (req, res) => {
6565

6666
For more details about routing, see the [routing guide](/{{ page.lang }}/guide/routing.html).
6767

68-
<div class="page-navigation">
68+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
6969
[Previous: Express application generator ](/{{ page.lang }}/starter/generator.html) [Next: Serving static files in Express ](/{{ page.lang }}/starter/static-files.html)
70-
</div>
70+
</nav>

en/starter/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ These are some additional examples with more extensive integrations.
1818
- [prisma-fullstack](https://github.com/prisma/prisma-examples/tree/latest/pulse/fullstack-simple-chat) - Fullstack app with Express and Next.js using [Prisma](https://www.npmjs.com/package/prisma) as an ORM
1919
- [prisma-rest-api-ts](https://github.com/prisma/prisma-examples/tree/latest/orm/express) - REST API with Express in TypeScript using [Prisma](https://www.npmjs.com/package/prisma) as an ORM
2020

21-
<div class="page-navigation">
21+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
2222
[Previous: Static Files ](/{{ page.lang }}/starter/static-files.html) [Next: FAQ ](/{{ page.lang }}/starter/faq.html)
23-
</div>
23+
</nav>

en/starter/generator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ The generated app has the following directory structure:
125125
The app structure created by the generator is just one of many ways to structure Express apps. Feel free to use this structure or modify it to best suit your needs.
126126
</div>
127127

128-
<div class="page-navigation">
128+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
129129
[Previous: Hello World ](/{{ page.lang }}/starter/hello-world.html) [Next: Basic routing](/{{ page.lang }}/starter/basic-routing.html)
130-
</div>
130+
</nav>

en/starter/hello-world.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ $ node app.js
4848

4949
Then, load `http://localhost:3000/` in a browser to see the output.
5050

51-
<div class="page-navigation">
51+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
5252
[Previous: Installing ](/{{ page.lang }}/starter/installing.html) [Next: Express Generator ](/{{ page.lang }}/starter/generator.html)
53-
</div>
53+
</nav>

en/starter/installing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ $ npm install express --no-save
5050
By default with version npm 5.0+, `npm install` adds the module to the `dependencies` list in the `package.json` file; with earlier versions of npm, you must specify the `--save` option explicitly. Then, afterwards, running `npm install` in the app directory will automatically install modules in the dependencies list.
5151
</div>
5252

53-
<div class="page-navigation">
53+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
5454
[Next: Hello World ](/{{ page.lang }}/starter/hello-world.html)
55-
</div>
55+
</nav>

en/starter/static-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ app.use('/static', express.static(path.join(__dirname, 'public')))
7878

7979
For more details about the `serve-static` function and its options, see [serve-static](/resources/middleware/serve-static.html).
8080

81-
<div class="page-navigation">
81+
<nav aria-label="breadcrumb" class="page-navigation" markdown="1">
8282
[Previous: Basic Routing ](/{{ page.lang }}/starter/basic-routing.html) [Next: More examples ](/{{ page.lang }}/starter/examples.html)
83-
</div>
83+
</nav>

0 commit comments

Comments
 (0)