Skip to content

Commit

Permalink
feat(docs): add a Kestra banner
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Oct 11, 2022
1 parent f4e3284 commit 4e253ac
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 14 deletions.
27 changes: 27 additions & 0 deletions docs/.vuepress/components/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
<div>
<!-- Start Featured Slider -->

<div id="kestra">

<a href="https://kestra.io" target="_blank">
Discover <img height="22px" src="https://kestra.io/logo.svg" alt="" />, infinitely scalable open source orchestration & scheduling platform.
</a>
</div>

<section id="mu-hero">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -487,9 +494,29 @@ export default {


<style lang="scss">
@import "../styles/variable";
.landing {
@import "../styles/home/style";
@import "../styles/home/akhq-theme";
header.navbar, #mu-hero {
margin-top: 29px;
}
}
#kestra {
z-index: 1000;
display: block;
position: fixed;
top: 0;
width: 100%;
padding: 4px;
text-align: center;
background: $teal;
cursor: pointer;
a {
color: darken($teal, 25%);
}
}
</style>
36 changes: 22 additions & 14 deletions docs/.vuepress/public/assets/js/custom.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
/**
Custom JS
1. FIXED MENU
2. MENU SMOOTH SCROLLING
3. USERS TESTIMONIALS ( SLICK SLIDER )
4. MOBILE MENU CLOSE
**/

(function( $ ){
Expand All @@ -20,16 +20,16 @@
if ($(window).scrollTop() > 150) {

$('#mu-header').addClass('mu-fixed-nav');

} else {
$('#mu-header').removeClass('mu-fixed-nav');
}
});


/* ----------------------------------------------------------- */
/* 2. MENU SMOOTH SCROLLING
/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */

//MENU SCROLLING WITH ACTIVE ITEM SELECTED

Expand All @@ -50,7 +50,7 @@
menuItems.click(function(e){
var href = $(this).attr("href"),
offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+22;
jQuery('html, body').stop().animate({
jQuery('html, body').stop().animate({
scrollTop: offsetTop
}, 1500);
e.preventDefault();
Expand All @@ -60,7 +60,7 @@
jQuery(window).scroll(function(){
// Get container scroll position
var fromTop = $(this).scrollTop()+topMenuHeight;

// Get id of current scroll item
var cur = scrollItems.map(function(){
if ($(this).offset().top < fromTop)
Expand All @@ -69,14 +69,14 @@
// Get the id of the current element
cur = cur[cur.length-1];
var id = cur && cur.length ? cur[0].id : "";

if (lastId !== id) {
lastId = id;
// Set/remove active class
menuItems
.parent().removeClass("active")
.end().filter("[href=\\#"+id+"]").parent().addClass("active");
}
}
});


Expand All @@ -95,13 +95,21 @@

/* ----------------------------------------------------------- */
/* 4. MOBILE MENU CLOSE
/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */

jQuery('.mu-menu').on('click', 'li a', function() {
$('.mu-navbar .in').collapse('hide');
});

})( jQuery );



/* ----------------------------------------------------------- */
/* 5. Kestra
/* ----------------------------------------------------------- */


jQuery('#app').click(function () {
console.log('sdfsd')
});


})( jQuery );
4 changes: 4 additions & 0 deletions docs/.vuepress/styles/home/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#app::before {
content: "sbla";
display: block;

}

/* ========= BUTTON =========*/

Expand Down

0 comments on commit 4e253ac

Please sign in to comment.