1+ <%
2+ const css = {
3+ navLinkDesktop: " md_Txd-n md_C-$brand_h Ts-$shortTs" ,
4+ navLinkMobile: " C-$reAccent900 Txd-n C-$brand_a Pb2u Bdb1;s;$brand md_Bdb-n" ,
5+ navLi: " md_Pb0 md_Bd-n md_M10"
6+ }
7+ %>
8+
9+ <header class =" D-f Jc-sb Ai-c P15u;4u;2u md_P0;5.5p Bgc-$core950 Bcf -Blr0.4 Ps-f H-$headerH W100p C-$headerC Zi20" >
10+
11+ <% # Logo %>
12+ <div class =" W40 H16 md_W83 md_H34" >
13+ <a href =" /" id =" header-logo" class =" D-f Jc-c Ai-c -Sz100p <%= it.cssHeaderLogoVisibility %> Ts-O;$shortTs" >
14+ <svg class =" -Sz100p" alt =" mlut logo" >
15+ <use href =" /assets/img/icons.svg#header-logo" ></use >
16+ </svg >
17+ </a >
18+ </div >
19+
20+ <% # Menu %>
21+ <div class =" D-f Fld-r Jc-fe md_D-f md_Jc-e md_Gap8u md_Fns-$headerFns" >
22+
23+ <% - include (' ./burger.ejs' ) %>
24+
25+ <div class =" Bgc-$core950 Ps-a R0 T-$headerH Ts-$longTs Tf -Trx101p Bd1;s;$brand Bdr-n Bdtlr3u Bdblr3u Mxw50u ^burger:c:~_-Trx0 W50vw P10u;0 md_All-ust @:h<420_P3u;0" >
26+ <nav class =" M0;0;9u md_M0" >
27+ <h2 class =" P0;5u M0;0;7u Txa-r C-$brand md_D-n @:h<420_M0;0;4u" > Menu </h2 >
28+ <ul id =" nav-menu" class =" C-$reAccent900 H40p D-f Jc-c Fld-c Gap6u P0;5u Txa-r Fns4u Lsst-n M0 md_Fld-r md_Jc-sb md_P0 md_H100p md_Gap8u md_Txa-c md_Fns3u @:h<420:w<gMd_Fld-r @:h<420:w<gMd_Flw-w @:h<420:w<gMd_Jc-fe" >
29+ <% for (let navLink of it .navLinksRedesign ) {% >
30+ < li class = " <%= css.navLi %>" >
31+ < a href= " <%= navLink.link %>" class = " <%= css.navLinkMobile %> <%= css.navLinkDesktop %>" >
32+ < %= navLink .text % >
33+ < / a>
34+ < / li>
35+ < % }%>
36+ </ul >
37+ <script type =" module" >
38+ if (window .location .href .includes (' productradar' )) {
39+ const navMenu = document .getElementById (' nav-menu' );
40+ const newItem = navMenu .lastElementChild .cloneNode (true );
41+ const link = newItem .firstElementChild ;
42+
43+ link .textContent = ' Вебинар' ;
44+ link .href = ' https://forms.gle/GjneTZGWHkeCavev5' ;
45+ link .setAttribute (' target' , ' blank' );
46+ link .classList .add (' Fnw-b' );
47+ navMenu .appendChild (newItem);
48+ }
49+ </script >
50+ </nav >
51+
52+ <% # External links %>
53+ <div >
54+ <h2 class =" P0;5u Txa-r M0;0;3u C-$brand md_D-n @:h<420_M0;0;4u" > Find us</h2 >
55+ <div class =" D-f Fld-r Jc-fe Ai-c Gap3u P0;5u H8u md_D-n" >
56+ <% for (let extLink of it .extLinksRedesign ) {% >
57+ < %- include (' ../components/sm-link.ejs' ,{
58+ icon: ` ${ extLink .icon } ` ,
59+ link: ` ${ extLink .link } ` ,
60+ name: ` ${ extLink .name } `
61+ }) % >
62+ < % }%>
63+ </div >
64+ </div >
65+ </div >
66+
67+ <% # Desktop links %>
68+ <div class =" Ai-c Jc-sb P1u;2.5u D-n md_D-f md_Gap8u md_P0" >
69+ <% for (let extLink of it .extLinksRedesign ) { % >
70+ < %- include (' ../components/sm-link.ejs' ,{
71+ icon: ` ${ extLink .icon } ` ,
72+ link: ` ${ extLink .link } ` ,
73+ name: ` ${ extLink .name } `
74+ }) % >
75+ < % } %>
76+ </div >
77+ </div >
78+
79+ </header >
0 commit comments