Skip to content

Commit 80cc883

Browse files
Simplify navigation and improve page styling consistency.
Replaced the navigation structure for cleaner, more responsive design and added new links for better usability. Enhanced styling with scroll margin adjustments and removed unused "Server Side Sessions" card to declutter the interface.
1 parent 6595eb2 commit 80cc883

File tree

2 files changed

+28
-43
lines changed

2 files changed

+28
-43
lines changed

src/Pages/Index.cshtml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</noscript>
1313
<!-- End Google Tag Manager (noscript) -->
1414

15-
<section class="text-center container border-bottom mb-3">
15+
<section class="text-center container border-bottom pb-3 mb-5">
1616
<div class="row py-lg-2">
1717
<div class="col-lg-6 col-md-8 mx-auto">
1818
<img src="duende-logo.svg" alt="Duende Software Logo" class="img-fluid w-75"/>
@@ -38,7 +38,7 @@
3838
</section>
3939

4040
<div class="welcome-page">
41-
<h2 id="features">Features</h2>
41+
<h2 id="features" style="scroll-margin-top: 3em;">Features</h2>
4242
<p>
4343
This dashboard provides access to various IdentityServer functionalities for demo purposes only.
4444
</p>
@@ -91,15 +91,6 @@
9191
</a>
9292
</div>
9393
</div>
94-
<div class="card m-2" style="width: 18rem;">
95-
<div class="card-body">
96-
<h5 class="card-title">
97-
<i class="glyphicon glyphicon-paperclip"></i>
98-
Server Side Sessions
99-
</h5>
100-
<p class="card-text">View your current server side sessions.</p>
101-
</div>
102-
</div>
10394
<div class="card m-2" style="width: 18rem;">
10495
<div class="card-body">
10596
<h5 class="card-title">
@@ -117,7 +108,7 @@
117108
</div>
118109
</div>
119110

120-
<h2 id="references">References</h2>
111+
<h2 id="references" style="scroll-margin-top: 3em;">References</h2>
121112
<p>To learn more about Duende products and how to implement them, check out our source repositories and samples.</p>
122113
<div class="d-flex align-content-between flex-wrap mb-3">
123114
<div class="card m-2" style="width: 18rem;">
@@ -169,7 +160,7 @@
169160
</div>
170161
</div>
171162

172-
<h2 id="demo-clients">Demo clients</h2>
163+
<h2 id="demo-clients" style="scroll-margin-top: 3em;">Demo clients</h2>
173164
<p>
174165
You can use this demo server for different types of clients.
175166
Use the below configurations to work with them in your own demo applications
@@ -291,7 +282,7 @@
291282
}
292283
</div>
293284

294-
<h2 id="sample-apis">Sample APIs</h2>
285+
<h2 id="sample-apis" style="scroll-margin-top: 3em;">Sample APIs</h2>
295286
<p>
296287
This demo server provides several sample API endpoints:
297288
</p>
@@ -306,7 +297,7 @@
306297
</li>
307298
</ul>
308299

309-
<h2 id="sample-keys">RSA key for JWT/JAR samples</h2>
300+
<h2 id="sample-keys" style="scroll-margin-top: 3em;">RSA key for JWT/JAR samples</h2>
310301
<p>
311302
You can use the below RSA key for all clients requiring private key JWT authentication or JAR:
312303
</p>

src/Pages/Shared/_Nav.cshtml

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,25 @@
88
}
99
}
1010

11-
<div class="nav-page">
12-
<nav class="navbar navbar-light bg-primary">
13-
14-
<div class="container">
15-
<div class="row">
16-
<a href="~/" class="navbar-brand">
17-
<img src="~/duende-white.svg" class="icon-banner" alt="Duende IdentityServer"/>
18-
<span class="text-white">IdentityServer</span>
19-
<small class="text-white-50 font-italic">(demo.duendesoftware.com)</small>
20-
</a>
21-
22-
@if (!string.IsNullOrWhiteSpace(name))
23-
{
24-
<ul class="navbar-nav mr-auto">
25-
<li class="nav-item dropdown">
26-
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">@name <b
27-
class="caret"></b></a>
28-
29-
<div class="dropdown-menu">
30-
<a class="dropdown-item" asp-page="/Account/Logout/Index">Logout</a>
31-
</div>
32-
</li>
33-
</ul>
34-
}
35-
</div>
36-
</div>
37-
</nav>
38-
</div>
11+
<nav class="site-header sticky-top py-1 bg-primary">
12+
<div class="container d-flex flex-column flex-md-row justify-content-between">
13+
<a href="~/" class="navbar-brand py-2 d-md-inline-block">
14+
<img src="~/duende-white.svg" class="icon-banner" alt="Duende IdentityServer"/>
15+
<span class="text-white">IdentityServer</span>
16+
<small class="text-white-50 font-italic">(demo.duendesoftware.com)</small>
17+
</a>
18+
<a class="text-white py-3 d-none d-md-inline-block" href="/#features">Features</a>
19+
<a class="text-white py-3 d-none d-md-inline-block" href="/#references">References</a>
20+
<a class="text-white py-3 d-none d-md-inline-block" href="/#demo-clients">Clients</a>
21+
<a class="text-white py-3 d-none d-md-inline-block" href="/#sample-apis">APIs</a>
22+
<a class="text-white py-3 d-none d-md-inline-block" href="/#sample-keys">Keys</a>
23+
@if (!string.IsNullOrWhiteSpace(name))
24+
{
25+
<a class="text-white py-3 d-md-inline-block" asp-page="/Account/Logout/Index">
26+
<span class="font-weight-bold">@name</span>
27+
<span class="text-white-50 font-italic">Logout</span>
28+
<i class="glyphicon glyphicon-log-out"></i>
29+
</a>
30+
}
31+
</div>
32+
</nav>

0 commit comments

Comments
 (0)