Skip to content

Commit 6fde46e

Browse files
authored
Merge pull request jsonwebtoken#422 from jsonwebtoken/feature/ab-jwt-ebook-banner
Add ebook banner variation
2 parents f1f64ab + 5ceac1a commit 6fde46e

File tree

7 files changed

+115
-18
lines changed

7 files changed

+115
-18
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ dist
33
.tmp
44
.DS_Store
55
npm-debug.log
6-
6+
.dockerignore
7+
Dockerfile
8+
yarn.lock

Gruntfile.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@ module.exports = grunt => {
7272
dest: 'dist/extension/css/'
7373
}]
7474
}
75-
},
75+
},
7676

7777
crx: {
7878
pack: {
7979
src: "dist/extension/**/*",
80-
dest: 'dist/chrome-jwt-debugger-extension-v' +
80+
dest: 'dist/chrome-jwt-debugger-extension-v' +
8181
`${extensionManifest.version}.zip`
8282
}
8383
},
8484

8585
exec: {
8686
firefoxExtensionPack: {
87-
command: 'node_modules/web-ext/bin/web-ext build ' +
88-
'--source-dir=dist/extension --artifacts-dir=dist ' +
87+
command: 'node_modules/web-ext/bin/web-ext build ' +
88+
'--source-dir=dist/extension --artifacts-dir=dist ' +
8989
'--overwrite-dest'
9090
},
9191
renameFirefoxExtension: {
92-
command: `mv dist/jwt_debugger-${extensionManifest.version}.zip ` +
93-
'dist/firefox-jwt-debugger-extension-' +
92+
command: `mv dist/jwt_debugger-${extensionManifest.version}.zip ` +
93+
'dist/firefox-jwt-debugger-extension-' +
9494
`v${extensionManifest.version}.zip`
9595
}
9696
},
@@ -118,13 +118,14 @@ module.exports = grunt => {
118118
},
119119
files: {
120120
'dist/website/index.html': 'views/website/index.pug',
121-
'dist/website/introduction/index.html':
121+
'dist/website/home/index.html': 'views/website/home.pug',
122+
'dist/website/introduction/index.html':
122123
'views/website/introduction.pug'
123124
}
124125
},
125126
extension: {
126127
files: {
127-
'dist/extension/index.html': 'views/extension/index.pug'
128+
'dist/extension/index.html': 'views/extension/index.pug'
128129
}
129130
}
130131
},
@@ -201,7 +202,7 @@ module.exports = grunt => {
201202
// Higher default timeout to account for some animations
202203
timeout: 10000
203204
},
204-
src: ['test/functional/**.js']
205+
src: ['test/functional/**.js']
205206
}
206207
},
207208

@@ -248,30 +249,30 @@ module.exports = grunt => {
248249
'exec:firefoxExtensionPack',
249250
'exec:renameFirefoxExtension'
250251
]);
251-
252+
252253
grunt.registerTask('build-extension-dev', [
253254
'clean:extension',
254-
'copy:extension',
255+
'copy:extension',
255256
'build-extension-views',
256257
'webpack:extensionDev'
257258
]);
258-
259+
259260
grunt.registerTask('build', ['build-website', 'build-extension']);
260-
261+
261262
grunt.registerTask('build-dev', [
262263
'build-website-dev',
263264
'build-extension-dev'
264265
]);
265266

266267
grunt.registerTask('unit-tests', ['webpack:unitTests', 'mochaTest:unit']);
267-
268+
268269
grunt.registerTask('functional-tests', [
269270
'build-website-dev',
270-
'connect:website',
271+
'connect:website',
271272
'mochaTest:functional'
272273
]);
273274

274275
grunt.registerTask('test', ['unit-tests', 'functional-tests']);
275-
276+
276277
grunt.registerTask('default', ['build-dev', 'connect:website', 'watch']);
277278
};

img/website/ebook.png

105 KB
Loading

stylus/website/index.styl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,39 @@ body
423423
text-align: center;
424424
text-decoration: none;
425425

426+
.jwt-ebook-banner-image
427+
position: relative;
428+
padding: 45px 0 235px;
429+
background: #E3E5E7 url('/img/ebook.png') 100% 100% no-repeat;
430+
431+
p
432+
margin-top: 0;
433+
434+
.btn-download-ebook
435+
display: block;
436+
437+
&::after
438+
content: '';
439+
position: absolute
440+
bottom: 202px;
441+
left: 0;
442+
right: 0;
443+
width: 100%;
444+
height: 35px;
445+
background: linear-gradient(rgba(227, 229, 231,1), rgba(227, 229, 231,0));
446+
447+
448+
@media (min-width: 768px)
449+
height: 235px;
450+
padding: 65px 0;
451+
text-align: left;
452+
453+
.btn-download-ebook
454+
display: inline-block;
455+
456+
&::after
457+
display: none;
458+
426459
// debugger-jwt
427460

428461
.jwt-select

views/website/ebook-image.pug

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
section.jtw-ebook-banner.jwt-ebook-banner-image
2+
.container
3+
p
4+
strong Get the JWT Handbook for free!
5+
|  Download it now and get up-to-speed faster.
6+
a.btn.btn-download-ebook(href='https://auth0.com/resources/ebooks/jwt-handbook?utm_source=jwtio&utm_medium=variation&utm_campaign=gc_jwt_test_10_2019', target='_blank') Download Ebook

views/website/ebook.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ section.jtw-ebook-banner
22
span
33
strong Get the JWT Handbook for free!
44
|  Spread the word and download it now.
5-
a.btn.btn-download-ebook(href='https://auth0.com/resources/ebooks/jwt-handbook?utm_source=jwtio&utm_medium=%3Cspan%20class="x x-first x-last">sc&utm_campaign=rotating_banner', target='_blank') Download Ebook
5+
a.btn.btn-download-ebook(href='https://auth0.com/resources/ebooks/jwt-handbook?utm_source=jwtio&utm_medium=%3Cspan%20class="x x-first x-last">control&utm_campaign=gc_jwt_test_10_2019', target='_blank') Download Ebook

views/website/home.pug

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
extends layout
2+
3+
block content
4+
nav.navbar.closed
5+
.container
6+
.top-mobile
7+
.menu-trigger
8+
span
9+
10+
a.brand(href='/')
11+
img(src='/img/pic_logo.svg').icon
12+
img(src='/img/logo.svg').logo
13+
14+
nav.menu
15+
a(href='#debugger-io').scrollto Debugger
16+
a(href='#libraries-io').scrollto Libraries
17+
a(href='/introduction') Introduction
18+
a(href='https://community.auth0.com/c/identity/jwt', target='_blank') Ask
19+
a(href='http://swag.auth0.com/', target='_blank') Get a T-shirt!
20+
21+
.social
22+
a.a0(href='https://auth0.com/?utm_source=jwtio&utm_campaign=craftedby', target='_blank')
23+
span.by-text Crafted by
24+
img(src='/img/pic_logo_ft.svg', alt='Token Based Authentication')
25+
26+
a.supported(href='https://auth0.com/?utm_source=jwtio&utm_campaign=craftedby', target="_blank")
27+
| Supported by
28+
img(src='/img/ico_logo.svg', alt='Token Based Authentication')
29+
30+
section.banner-jwt
31+
.container
32+
a.logo(href='/')
33+
img(src='/img/pic_logo.svg', alt='Token Based Authentication')
34+
35+
p
36+
| JSON Web Tokens are an open, industry standard 
37+
a(href='https://tools.ietf.org/html/rfc7519', target='_blank') RFC 7519
38+
| method for representing claims securely between two parties.
39+
p JWT.IO allows you to decode, verify and generate JWT.
40+
41+
a.btn.btn-lg(href="/introduction") Learn more about jwt
42+
43+
include extension.pug
44+
45+
include ebook-image.pug
46+
47+
include token-editor.pug
48+
49+
include libraries.pug
50+
51+
include assets.pug
52+
53+
include counter.pug
54+
55+
script(src='/js/index.js')

0 commit comments

Comments
 (0)