import { contactDialog } from '$utils/dialog'; import { initIntroAnimation } from './animations/intro'; import { initAboutSectionAnimation } from './animations/sections/about'; import { initCtaSectionAnimation } from './animations/sections/cta'; import { initEpostboxSectionAnimation } from './animations/sections/epostbox'; import { initFaqSectionAnimation } from './animations/sections/faq'; import { initHeroHeaderSectionAnimation } from './animations/sections/heroHeader'; import { initIntroHeroHeaderSectionAnimation } from './animations/sections/introHeroHeader'; import { initLogoMarqueeSectionAnimation } from './animations/sections/logoMarquee'; import { initServiceComparisonSectionAnimation } from './animations/sections/serviceComparison'; import { initServiceFeaturesSectionAnimation } from './animations/sections/serviceFeatures'; import { initServiceOverviewSectionAnimation } from './animations/sections/serviceOverview'; import { initServiceStepSectionAnimation } from './animations/sections/serviceStep'; import { initStatsSectionAnimation } from './animations/sections/stats'; import { initSustainabilitySectionAnimation } from './animations/sections/sustainability'; import { initTestimonialsSliderSectionAnimation } from './animations/sections/testimonialsSlider'; import { Navbar } from './components/navbar'; import { initNewsSliderSection } from './sections/newsSlider'; document.addEventListener('DOMContentLoaded', () => { const contactModal = document.querySelector('#contact-modal'); new Navbar(); // check if contact modal exists if (contactModal) { new contactDialog(contactModal); } // init section animations if (document.querySelector('.intro-hero_wrap')) { initIntroAnimation(); } else { initIntroHeroHeaderSectionAnimation(); initServiceOverviewSectionAnimation(); } initNewsSliderSection(); initHeroHeaderSectionAnimation(); initAboutSectionAnimation(); initServiceStepSectionAnimation(); initServiceFeaturesSectionAnimation(); initServiceComparisonSectionAnimation(); initEpostboxSectionAnimation(); initFaqSectionAnimation(); initCtaSectionAnimation(); initTestimonialsSliderSectionAnimation(); initLogoMarqueeSectionAnimation(); initStatsSectionAnimation(); initSustainabilitySectionAnimation(); });