diff --git a/assets/header.php b/assets/header.php index 1481692..161ef0f 100644 --- a/assets/header.php +++ b/assets/header.php @@ -46,7 +46,7 @@ >
  • - Rozcestník
  • diff --git a/rozcestnik/img/nicubunu.png b/img/nicubunu.png similarity index 100% rename from rozcestnik/img/nicubunu.png rename to img/nicubunu.png diff --git a/rozcestnik/index.html b/rozcestnik.php similarity index 52% rename from rozcestnik/index.html rename to rozcestnik.php index 9a2c4f1..3c66042 100644 --- a/rozcestnik/index.html +++ b/rozcestnik.php @@ -13,9 +13,8 @@ content="width=device-width, initial-scale=1.0" name="viewport" /> - - - + + + + + diff --git a/rozcestnik/script.js b/rozcestnik/script.js deleted file mode 100644 index b44da4b..0000000 --- a/rozcestnik/script.js +++ /dev/null @@ -1,35 +0,0 @@ -const menuIcon = document.querySelector(".menu-icon"); -const menuList = document.querySelector("nav"); -const hamburgerIcon = document.querySelector(".fa-solid"); - -menuIcon.addEventListener("click", () => { - if (hamburgerIcon.classList[1] === "fa-bars") { - hamburgerIcon.classList.add("fa-xmark"); - hamburgerIcon.classList.remove("fa-bars"); - menuList.style.display = "block"; - } else { - hamburgerIcon.classList.add("fa-bars"); - hamburgerIcon.classList.remove("fa-xmark"); - menuList.style.display = "none"; - } -}); - -// Tlačítko go to top -// Zobrazení tlačítka od rolovaní části stránky (víc logické než až na konci) -window.onscroll = function () { - scrollFunction(); -}; - -function scrollFunction() { - if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { - document.getElementById("scrollToTopBtn").style.display = "block"; - } else { - document.getElementById("scrollToTopBtn").style.display = "none"; - } -} - -// Posunout nahoru, když uživatel klikne na tlačítko -function scrollToTop() { - document.body.scrollTop = 0; // Pro Safari - document.documentElement.scrollTop = 0; // Pro ostatní prohlížeče -} diff --git a/rozcestnik/style.css b/rozcestnik/style.css deleted file mode 100644 index 3dfc5a0..0000000 --- a/rozcestnik/style.css +++ /dev/null @@ -1,83 +0,0 @@ -/* About sekce */ - -.about-section { - margin: 45px 0; -} - -.about-section-wrapper { - width: 65%; - margin: 0 auto; - display: flex; - gap: 20px; -} - -.about-text { - flex: 1; -} - -.about-img { - flex: 1; -} - -img { - width: 100%; - height: 100%; - object-fit: cover; -} - -@media (max-width: 768px) { - .about-section-wrapper { - flex-direction: column; - width: 90%; - margin: 0 auto; - } - - .about-text { - text-align: left; - } - - .about-img { - text-align: center; - } - - .about-text-p { - padding-top: 15px; - } -} - -footer { - text-align: center; - margin-top: 20px; - margin-bottom: 20px; -} - -/* Go to go */ -#scrollToTopBtn { - display: none; - position: fixed; - bottom: 20px; - right: 20px; - /*butoon přes obsah*/ - z-index: 99; - outline: none; - cursor: pointer; - padding: 15px; - border-radius: 50%; - background-color: transparent; -} - -/* Pro rozcestník extra*/ - -img { - width: 25%; -} - -h1 { - color: #734f96; - margin-top: 50px; - font-size: 50px; -} - -h4 a { - color: #734f96; -}