Skip to content

Commit 0d1e9f0

Browse files
committed
Add 'Learn JavaScript' CTA to header
With the homepage being /news, this adds a CTA to the header for jumping right to the course and learning JavaScript.
1 parent ba3a8f9 commit 0d1e9f0

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

client/stylesheets/components/_button.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878

7979
// ----- Sizes ----- //
8080
81+
.btn--s
82+
font-size: $b-fontSize-s
83+
8184
.btn--l
8285
font-size: $b-fontSize-l
8386

client/stylesheets/structures/_header.sass

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
// Scaffolding
2525
// -------------------------------------
2626
27+
// ----- Button ----- //
28+
29+
.header-btn
30+
position: relative
31+
z-index: 1
32+
2733
// ----- Link ----- //
2834
2935
.header-link

server/views/layouts/layout-course.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ html.courseLayout.js-courseLayout(lang='en')
2121
nav.split-cell(role='navigation')
2222
a.underline.header-link(href='/news') News
2323
a.underline.header-link(href='/resources') Resources
24+
a.btn.btn--s.header-btn(href='/try') Learn JavaScript
2425

2526
button.courseLayout-header-toggle.js-courseLayout-toggle Toggle Navigation
2627

server/views/partials/_header.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ header.row.header(class=(headerPartial.bleed ? 'bc-regent' : '' ) role='banner')
1919
a.underline.header-link.is-active(href=url class=(headerPartial.bleed ? 'underline--alt' : '' ))= title
2020
else
2121
a.underline.header-link(href=url class=(headerPartial.bleed ? 'underline--alt' : '' ))= title
22+
a.btn.btn--s.header-btn(href='/try') Learn JavaScript

0 commit comments

Comments
 (0)