content
This commit is contained in:
78
wiki/index.html
Normal file
78
wiki/index.html
Normal file
@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta
|
||||
name="description"
|
||||
content="EndeavourOS svobodný operační systém...."
|
||||
/>
|
||||
<meta name="keywords" content="EndeavourOS" />
|
||||
<meta name="author" content="Kankys" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<link rel="shortcut icon" href="/img/icons.png" />
|
||||
<script
|
||||
src="https://kit.fontawesome.com/0a43c6cd1f.js"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<!--icons dark, go to up-->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
|
||||
/>
|
||||
|
||||
<!--ubuntu fonts-->
|
||||
<style>
|
||||
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
|
||||
</style>
|
||||
|
||||
<title>EndeavourOS</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<!-- EOS - logo () -->
|
||||
<div class="logo">
|
||||
<img src="/img/EndeavourOS-logo.webp" alt="" />
|
||||
</div>
|
||||
|
||||
<!-- EOS - navigation -->
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/index.html">Domů</a></li>
|
||||
<li><a href="/novinky/index.html">Novinky</a></li>
|
||||
<li><a href="/clanky/index.html">Články</a></li>
|
||||
<li>
|
||||
<a href="https://discord.gg/9YA8A2xf" target="_blank">Discord</a>
|
||||
</li>
|
||||
<li><a href="https://t.me/eoscz" target="_blank">Telegram</a></li>
|
||||
<li><a href="/o-nas/index.html">O nás</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>
|
||||
<main>
|
||||
<section class="welcome">
|
||||
<h2>Na obsahu v této sekci pilně pracuji.</h2>
|
||||
</section>
|
||||
</main>
|
||||
<button onclick="scrollToTop()" id="scrollToTopBtn" title="Go to top">
|
||||
<i class="fas fa-arrow-up"></i>
|
||||
</button>
|
||||
<footer>
|
||||
Copyright ©
|
||||
<a href="https://git.archoslinux.cz/kankys" target="_blank"
|
||||
>Lukáš Kaňka</a
|
||||
>
|
||||
2024
|
||||
</footer>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
35
wiki/script.js
Normal file
35
wiki/script.js
Normal 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
|
||||
}
|
169
wiki/style.css
Normal file
169
wiki/style.css
Normal file
@ -0,0 +1,169 @@
|
||||
* {
|
||||
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;
|
||||
/*position: fixed;*/
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* EOS - Welcome*/
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 5px;
|
||||
}
|
||||
.p {
|
||||
text-align: center;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
header {
|
||||
position: relative;
|
||||
}
|
||||
header nav {
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
background-color: var(--special-blue);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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-bottom: 10px;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
Reference in New Issue
Block a user