diff --git a/dist/assets/favicon.ico b/dist/assets/favicon.ico new file mode 100644 index 0000000..9356735 Binary files /dev/null and b/dist/assets/favicon.ico differ diff --git a/dist/assets/img/bg2.jpg b/dist/assets/img/bg2.jpg new file mode 100644 index 0000000..17a21ec Binary files /dev/null and b/dist/assets/img/bg2.jpg differ diff --git a/dist/assets/img/bis-sf.maria.png b/dist/assets/img/bis-sf.maria.png new file mode 100644 index 0000000..59a7e6d Binary files /dev/null and b/dist/assets/img/bis-sf.maria.png differ diff --git a/dist/assets/img/casa-doina-crama.png b/dist/assets/img/casa-doina-crama.png new file mode 100644 index 0000000..4305f46 Binary files /dev/null and b/dist/assets/img/casa-doina-crama.png differ diff --git a/dist/assets/img/close-icon.svg b/dist/assets/img/close-icon.svg new file mode 100644 index 0000000..3924563 --- /dev/null +++ b/dist/assets/img/close-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/assets/img/header-bg.jpg b/dist/assets/img/header-bg.jpg new file mode 100644 index 0000000..6859c95 Binary files /dev/null and b/dist/assets/img/header-bg.jpg differ diff --git a/dist/js/scripts.js b/dist/js/scripts.js new file mode 100644 index 0000000..55e815b --- /dev/null +++ b/dist/js/scripts.js @@ -0,0 +1,54 @@ +/*! +* Start Bootstrap - nunta v1.0.0 (https://startbootstrap.com/theme/agency) +* Copyright 2013-2023 Start Bootstrap +* Licensed under MIT (https://github.com/StartBootstrap/nunta-radulescu/blob/master/LICENSE) +*/ +// +// Scripts +// + +window.addEventListener('DOMContentLoaded', event => { + + // Navbar shrink function + var navbarShrink = function () { + const navbarCollapsible = document.body.querySelector('#mainNav'); + if (!navbarCollapsible) { + return; + } + if (window.scrollY === 0) { + navbarCollapsible.classList.remove('navbar-shrink') + } else { + navbarCollapsible.classList.add('navbar-shrink') + } + + }; + + // Shrink the navbar + navbarShrink(); + + // Shrink the navbar when page is scrolled + document.addEventListener('scroll', navbarShrink); + + // Activate Bootstrap scrollspy on the main nav element + const mainNav = document.body.querySelector('#mainNav'); + if (mainNav) { + new bootstrap.ScrollSpy(document.body, { + target: '#mainNav', + rootMargin: '0px 0px -40%', + }); + }; + + // Collapse responsive navbar when toggler is visible + const navbarToggler = document.body.querySelector('.navbar-toggler'); + const responsiveNavItems = [].slice.call( + document.querySelectorAll('#navbarResponsive .nav-link') + ); + responsiveNavItems.map(function (responsiveNavItem) { + responsiveNavItem.addEventListener('click', () => { + if (window.getComputedStyle(navbarToggler).display !== 'none') { + navbarToggler.click(); + } + }); + }); + +});