Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions theme/css/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,25 @@ body {
margin-top: 32px;
}

.survey__banner {
background-color: #761D72;
padding: 10px;
text-align: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 100;
box-sizing: border-box;
}

.survey__banner a {
color: white;
font-size: 15px;
font-weight: 500;
margin: 0;
}

@media only screen and (min-width: 1200px) {
h1 {
font-size: 72px;
Expand Down
24 changes: 23 additions & 1 deletion theme/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
</head>

<body>

<div class="survey__banner">
<a href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC">
Shape the future of Keras! Take a quick 3-minute survey by October 17 to share your experience.
</a>
</div>

<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
Expand Down Expand Up @@ -661,6 +668,21 @@ <h2 class="contacts__title text--white">Contributions welcome!</h2>

<script src="./js/glide.min.js"></script>

<script>
function adjustNavMargin() {
const banner = document.querySelector('.survey__banner');
const nav = document.querySelector('.nav__container');

if (banner && nav) {
const bannerHeight = banner.offsetHeight;
nav.style.marginTop = bannerHeight + 'px';
}
}

document.addEventListener('DOMContentLoaded', adjustNavMargin);
window.addEventListener('resize', adjustNavMargin);
</script>

<script>
const carousels = document.querySelector(".glide");
let perView = 3;
Expand Down Expand Up @@ -700,4 +722,4 @@ <h2 class="contacts__title text--white">Contributions welcome!</h2>
<script src="./js/prism.min.js"></script>
<script src="./js/prism-python.min.js"></script>
</body>
</html>
</html>