File: /home/imensosw/imenso.imenso.co/wp-content/themes/imensosoftware/front-page.php
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package imensosoftware
*/
get_header();
get_template_part( 'template-parts/home/home','banner');
get_template_part( 'template-parts/home/home','services');
get_template_part( 'template-parts/home/home','works');
get_template_part( 'template-parts/home/home','technologies');
get_template_part( 'template-parts/home/home','reviews');
get_template_part( 'template-parts/home/home','industries');
//get_template_part( 'template-parts/home/home','blogs');
?>
<?php get_footer(); ?>
<script type="text/javascript">
const cursorBee = document.querySelector(".cursor-bee");
const cursorEye = document.querySelector(".cursor-eye");
let scale = 1;
function mousemoveHandler(e) {
const target = e.target;
const tl = gsap.timeline({
defaults: {
x: e.clientX,
y: e.clientY,
ease: "power2.out"
}
});
// JUST FOR MY LOGO
if (
target.closest(".page-footer") ||
target.classList.contains("page-footer")
) {
gsap.to(".cursor", {
opacity: 0
});
return;
}
if (target.tagName.toLowerCase() === "img" && target.closest(".image-grid")) {
tl.to(cursorBee, {
opacity: 0
}).to(
cursorEye,
{
opacity: 1
},
"-=0.5"
);
} else {
if (target.classList.contains("line-animation")) {
scale = 4;
} else {
scale = 1;
}
tl.to(cursorBee, {
opacity: 1,
scale: scale
}).to(
cursorEye,
{
opacity: 0
},
"-=0.5"
);
}
}
function mouseleaveHandler() {
gsap.to(cursorBee, {
opacity: 0
});
}
document.addEventListener("mousemove", mousemoveHandler);
document.addEventListener("mouseleave", mouseleaveHandler);
</script>
<script type="text/javascript">
/*Review*/
var swiper = new Swiper(".testimonial_review", {
loop: true,
slidesPerView: "auto",
centeredSlides: true,
spaceBetween: 30,
// pagination: {
// el: ".swiper-pagination",
// clickable: true,
// },
autoplay: {
delay: 13500,
disableOnInteraction: false,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
</script>
<script>
var swiper = new Swiper(".swiper-industries", {
slidesPerView: 1,
spaceBetween: 0,
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
// Responsive breakpoints
breakpoints: {
567: {
slidesPerView: 2,
},
768: {
slidesPerView: 3,
},
1024: {
slidesPerView: 4,
},
},
});
</script>
</body>
</html>