Skip to content

Commit 563ae49

Browse files
authored
feat: enable ttb to gather feedback from community (#701)
1 parent 88829bf commit 563ae49

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

src/website/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
shareJwtTextElement,
1212
} from "./dom-elements.js";
1313
import { CCPAModal } from "./ccpa-modal.js";
14+
import { TopBanner } from "./top-banner.js";
1415

1516
import queryString from "querystring";
1617

@@ -55,3 +56,4 @@ setupHighlighting();
5556
setupJwtCounter();
5657
setupShareJwtButton(shareJwtButton, shareJwtTextElement);
5758
CCPAModal();
59+
TopBanner();

src/website/introduction/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import { CCPAModal } from "../ccpa-modal.js";
22
import { setupJwtCounter } from "../counter.js";
33
import { setupHighlighting } from "../highlighting.js";
44
import { setupNavbar } from "../navbar.js";
5+
import { TopBanner } from "../top-banner.js";
56

67
// Initialization
78
setupNavbar();
89
setupHighlighting();
910
setupJwtCounter();
1011
CCPAModal();
12+
TopBanner();

src/website/libraries/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CCPAModal } from "../ccpa-modal.js";
22
import { setupJwtCounter } from "../counter.js";
33
import { setupHighlighting } from "../highlighting.js";
44
import { setupNavbar } from "../navbar.js";
5+
import { TopBanner } from "../top-banner.js";
56
import { setupLibraries } from "./libraries.js";
67

78
// Initialization
@@ -10,3 +11,4 @@ setupLibraries();
1011
setupHighlighting();
1112
setupJwtCounter();
1213
CCPAModal();
14+
TopBanner();

views/website/navigation.pug

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
nav.navbar.closed
1+
.top-banner-bg
2+
.top-banner
3+
.top-banner-container
4+
a(href="https://a0.to/jwt-io-feedback" target="_blank") Help us shape the future of jwt.io! Learn more about upcoming changes and share feedback.
5+
span(aria-hiden="true")
6+
button.close-top-banner +
7+
8+
.top-banner-spacer
9+
10+
nav.navbar.closed.top-banner-open
211
.container
312
.top-mobile
413
.menu-trigger

0 commit comments

Comments
 (0)