File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,25 @@ body {
390390 margin-top : 32px ;
391391}
392392
393+ .survey__banner {
394+ background-color : # A30000 ;
395+ padding : 10px ;
396+ text-align : center;
397+ position : fixed;
398+ top : 0 ;
399+ left : 0 ;
400+ width : 100% ;
401+ z-index : 100 ;
402+ box-sizing : border-box;
403+ }
404+
405+ .survey__banner a {
406+ color : white;
407+ font-size : 15px ;
408+ font-weight : 500 ;
409+ margin : 0 ;
410+ }
411+
393412@media only screen and (min-width : 1200px ) {
394413 h1 {
395414 font-size : 72px ;
Original file line number Diff line number Diff line change 8383 </ head >
8484
8585 < body >
86+
87+ < div class ="survey__banner ">
88+ < a href ="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC ">
89+ Shape the future of Keras! Take a quick 3-minute survey by October 17 to share your experience.
90+ </ a >
91+ </ div >
92+
8693 <!-- Google Tag Manager (noscript) -->
8794 < noscript
8895 > < iframe
@@ -661,6 +668,21 @@ <h2 class="contacts__title text--white">Contributions welcome!</h2>
661668
662669 < script src ="./js/glide.min.js "> </ script >
663670
671+ < script >
672+ function adjustNavMargin ( ) {
673+ const banner = document . querySelector ( '.survey__banner' ) ;
674+ const nav = document . querySelector ( '.nav__container' ) ;
675+
676+ if ( banner && nav ) {
677+ const bannerHeight = banner . offsetHeight ;
678+ nav . style . marginTop = bannerHeight + 'px' ;
679+ }
680+ }
681+
682+ document . addEventListener ( 'DOMContentLoaded' , adjustNavMargin ) ;
683+ window . addEventListener ( 'resize' , adjustNavMargin ) ;
684+ </ script >
685+
664686 < script >
665687 const carousels = document . querySelector ( ".glide" ) ;
666688 let perView = 3 ;
@@ -700,4 +722,4 @@ <h2 class="contacts__title text--white">Contributions welcome!</h2>
700722 < script src ="./js/prism.min.js "> </ script >
701723 < script src ="./js/prism-python.min.js "> </ script >
702724 </ body >
703- </ html >
725+ </ html >
You can’t perform that action at this time.
0 commit comments