create home page php

This commit is contained in:
kankys
2024-10-20 09:53:43 +02:00
commit 69f561ff1a
15 changed files with 729 additions and 0 deletions

9
assets/footer.php Normal file
View File

@ -0,0 +1,9 @@
<footer>
Copyright &copy;
<a
href="https://git.archoslinux.cz/kankys"
target="_blank"
>Lukáš Kaňka</a
>
2024
</footer>

152
assets/fullStyle.css Normal file
View File

@ -0,0 +1,152 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
max-width: 1600px;
margin: 0 auto;
font-family: "Ubuntu", sans-serif;
}
/* EOS ( header) */
header {
display: flex;
align-items: center;
background-color: #313131;
height: 70px;
flex-direction: row;
border-radius: 5px;
margin: 7px;
}
.logo {
flex-grow: 1;
}
.logo img {
width: 150px;
margin-left: 40px;
}
/* EOS - navigation */
nav {
margin-right: 40px;
}
nav li {
display: inline-block;
list-style-type: none;
margin-right: 20px;
}
nav li a {
text-decoration: none;
color: #734f96;
/*border: 1px solid #734f96;*/
}
/* EOS - navigation icons */
.menu-icon {
display: none;
margin-right: 30px;
}
.welcome {
/*background: url("image/background.webp");*/
min-height: calc(100vh - 70px);
background-size: cover;
/*background-position: center;*/
text-align: center;
}
h2 {
color: #734f96;
margin-top: 50px;
margin-bottom: 50px;
}
a {
color: #734f96;
margin-top: 50px;
margin-bottom: 50px;
}
h4 {
color: #734f96;
margin-top: 50px;
margin-bottom: 50px;
}
.text {
color: #734f96;
margin-top: 50px;
margin-bottom: 50px;
}
p {
margin: 10px;
}
.p {
text-align: center;
}
@media (max-width: 600px) {
header {
position: relative;
}
header nav {
position: absolute;
top: 70px;
background-color: #313131;
width: 100%;
display: none;
}
.menu-icon {
display: block;
color: var(--special-white);
font-size: 23px;
}
header nav li {
display: block !important;
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
}
/*Code Box*/
.code-box {
position: relative;
width: 500px;
height: auto;
border: 1px solid #734f96;
padding: 5px;
overflow: auto;
background-color: #734f96;
color: black;
margin: auto;
text-align: left;
border-radius: 7px;
}
#copy-button {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
color: whitesmoke;
background-color: transparent;
border: 1px solid #734f96;
}

66
assets/header.php Normal file
View File

@ -0,0 +1,66 @@
<header>
<!-- EOS - logo () -->
<div class="logo">
<a href="../index.php">
<img alt="" src="img/EndeavourOS-logo.webp"/>
</a>
</div>
<!-- EOS - navigation -->
<nav>
<ul>
<li><a href="/index.php">Domů</a></li>
<li>
<a href="/wiki/index.php"
>Wiki</a
>
</li>
<li>
<a href="/novinky/index.php"
>Novinky</a
>
</li>
<li>
<a href="/clanky/index.php"
>Články</a
>
</li>
<li>
<a
href="https://forum.arch-linux.cz/"
target="_blank"
>Fórum</a
>
</li>
<li>
<a
href="https://t.me/eoscz"
target="_blank"
>Telegram</a
>
</li>
<li>
<a href="/o-nas/index.php"
>O nás</a
>
</li>
<li>
<a href="/rozcestnik/index.php"
>Rozcestník</a
>
</li>
<li>
<a href="/odkazy/index.php"
>Odkazy</a
>
</li>
</ul>
</nav>
<div class="menu-icon">
<!-- Ikona hamburger -->
<i class="fa-solid fa-bars"></i>
<!-- Ikona cross -->
<!-- <i class="fa-solid fa-xmark"></i> -->
</div>
</header>

3
assets/returnbutton.php Normal file
View File

@ -0,0 +1,3 @@
<button onclick="scrollToTop()" id="scrollToTopBtn" title="Go to top">
<i class="fas fa-arrow-up"></i>
</button>

35
assets/script.js Normal file
View File

@ -0,0 +1,35 @@
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
}

70
assets/style.css Normal file
View File

@ -0,0 +1,70 @@
/* EOS - Welcome*/
/* 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;
}