File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {% extends template.self %}
2+
3+ {% block body %}
4+ < div class ="FmCta ">
5+ < a class ="FmCtaLogo " href ="https://frontendmasters.com/ ">
6+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 206.7 145.8 " class ="logo "> < path d ="M182.6 20c1.7-1.8 4.2-2.7 7.7-2.7 2.5 0 5 .4 7.4 1.1 3.2 1 6.2 2.3 9 4a335.5 335.5 0 0 0-14.8 49.7 357 357 0 0 0-4.6 24c-1 6.3-1.6 12.8-1.7 19.3 0 2.2.3 4.5 1 6.6a8 8 0 0 0 2.7 4.2 16.1 16.1 0 0 1-7.1 5.2 23.5 23.5 0 0 1-8.7 1.7c-4 .1-7.7-1.2-10.6-3.8-3-2.5-4.4-6.8-4.4-13 0-3 .4-6 .8-9.1a492 492 0 0 1 10.8-47.4l-1.3.1c-.4.2-.7.5-1 .9l-40.6 62a40.8 40.8 0 0 1-13 2.5c-2.4 0-4.8-.5-7-1.5a9.1 9.1 0 0 1-4.3-5.4 273.5 273.5 0 0 0 1.8-21.5 949 949 0 0 0 1.4-29.6v-5.9c0-.6-.2-1.1-.4-1.6a1.3 1.3 0 0 0-1.1-.4c-9 16.2-16.7 29.8-23.3 40.8a307.2 307.2 0 0 1-17.8 27A69 69 0 0 1 50 141.2c-4.1 3-8.1 4.5-12 4.4-4.2.1-8.2-1.6-11-4.7-3-3.1-5-7.4-6-12.8.7.2 1.4.3 2.2.3 4.7 0 9.3-2 13.7-6 5.1-4.5 9.7-9.7 13.7-15.3 4.7-6.4 9.5-13.7 14.4-21.8C69.9 77.3 75 69 80.7 60.6c2-3.4 4.6-6.6 7.5-9.4 2.2-2 5-3.1 8-3 2 0 4 .3 5.9.8 1.1.1 2.1-.7 2.1-1.9-.7-9-3.4-15.8-8-20.6-4.7-4.7-11.3-7-19.8-7-6.9-.1-13.6 1.6-19.6 4.8-6.1 3.3-11.5 7.7-15.9 13a64 64 0 0 0-14.5 40.5c0 5.1 1.6 8.5 4.7 10a20.6 20.6 0 0 1-6.9 6 17.5 17.5 0 0 1-8.4 2.2c-4.2.1-8.2-1.4-11.2-4.3S0 84.2 0 77.9c0-7 1.1-13.8 3.4-20.4A79.4 79.4 0 0 1 26.6 23a96.9 96.9 0 0 1 36-20.3C69.2 1 75.7 0 82.5 0c16.2 0 28.5 5 36.6 15.1 8.2 10 12.3 25.8 12.3 47.1a308.6 308.6 0 0 1-1 26.3c.5 0 1 0 1.4-.2.4-.2.7-.5.8-.8l15-21.9h-.1c5.1-7.2 23.7-34.6 28.8-41.9.2-.4 1.6-2.8 3.2-3.2h.4l1.2-.1h.2a5.8 5.8 0 0 0 1.4-.3z "> </ path > </ svg >
7+ </ a >
8+ < div class ="FmCtaText ">
9+ < a href ="https://frontendmasters.com/trial/ "> Get free, lifetime access to 5 popular courses</ a >
10+ </ div >
11+ < button data-cta-close class ="FmCtaClose "> ×</ button >
12+ </ div >
13+
14+ {{ super() }}
15+
16+ < script >
17+ var $ctaCloseButton = document . querySelector ( "[data-cta-close]" ) ;
18+ if ( $ctaCloseButton ) {
19+ if ( sessionStorage . fmCtaReactEnlightenmentClosed ) {
20+ $ctaCloseButton . parentElement . remove ( ) ;
21+ } else {
22+ $ctaCloseButton . addEventListener ( "click" , function ( ) {
23+ sessionStorage . fmCtaReactEnlightenmentClosed = "yes" ;
24+ $ctaCloseButton . parentElement . remove ( ) ;
25+ } )
26+ }
27+ }
28+ </ script >
29+ {% endblock %}
Original file line number Diff line number Diff line change 1+ body {
2+ display : flex;
3+ flex-direction : column;
4+ }
5+
16cite {
27 margin-top : -30px ;
38 font-size : 10px ;
@@ -10,14 +15,69 @@ cite{
1015}
1116
1217.book .book-body .page-wrapper .page-inner section .normal hr {
13- height : 1px ;
14- padding : 0 ;
15- margin : 0.7em 0 ;
16- overflow : hidden;
17- background-color : # e7e7e7 ;
18- border : none;
18+ height : 1px ;
19+ padding : 0 ;
20+ margin : 0.7em 0 ;
21+ overflow : hidden;
22+ background-color : # e7e7e7 ;
23+ border : none;
1924}
2025
2126table code , .markdown-section table code {
2227 background-color : transparent !important ;
2328}
29+
30+ small {
31+ font-size : 10px ;
32+ }
33+
34+ .FmCta {
35+ align-items : flex-start;
36+ background : # 000 ;
37+ color : # fff ;
38+ display : flex;
39+ gap : 15px ;
40+ line-height : 2 ;
41+ padding : 10px 15px ;
42+ }
43+
44+ .FmCtaLogo svg {
45+ fill : # c02d28 ;
46+ vertical-align : middle;
47+ width : 25px ;
48+ }
49+
50+ .FmCtaLogo : hover svg {
51+ fill : # dd625e ;
52+ }
53+
54+ .FmCtaText {
55+ display : flex;
56+ flex : 1 ;
57+ gap : 15px ;
58+ }
59+
60+ .FmCtaText a {
61+ color : # ccc ;
62+ font-weight : bold;
63+ }
64+
65+ .FmCtaText a : hover {
66+ color : # fff ;
67+ }
68+
69+ .FmCtaClose {
70+ background : none;
71+ border : none;
72+ color : # 888 ;
73+ font-size : 25px ;
74+ height : 30px ;
75+ line-height : 1 ;
76+ outline : none;
77+ padding-bottom : 5px ;
78+ width : 30px ;
79+ }
80+
81+ .FmCtaClose : hover {
82+ color : # fff ;
83+ }
You can’t perform that action at this time.
0 commit comments