mirror of
https://codeberg.org/Kankys/EOS_PHP.git
synced 2026-02-01 06:10:34 +00:00
Grafické úpravy
This commit is contained in:
9
assets/footer.php
Normal file
9
assets/footer.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<footer>
|
||||
Copyright ©
|
||||
<a
|
||||
href="https://git.archoslinux.cz/kankys"
|
||||
target="_blank"
|
||||
>Lukáš Kaňka</a
|
||||
>
|
||||
2024
|
||||
</footer>
|
||||
91
assets/header.php
Normal file
91
assets/header.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<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="search.php">Vyhledávání</a></li>
|
||||
|
||||
<li>
|
||||
<a href="novinky.php"
|
||||
>Novinky</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="wiki.php"
|
||||
>Wiki</a
|
||||
>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="clanky.php"
|
||||
>Články</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="z-internetu.php"
|
||||
>Z internetu</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="https://forum.arch-linux.cz/"
|
||||
target="_blank"
|
||||
>Fórum</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="o-nas.php"
|
||||
>O nás</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="rozcestnik.php"
|
||||
>Rozcestník</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a href="odkazy.php"
|
||||
>Odkazy</a
|
||||
>
|
||||
</li>
|
||||
<li> <button id="shareButton">Sdílet</button>
|
||||
</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>
|
||||
<!-- Unami -->
|
||||
<script defer src="https://analytics.oscloud.cz/script.js" data-website-id="2ccb6c76-451a-44e2-bae5-7b8b3cab0fd4"></script>
|
||||
</header>
|
||||
<style>
|
||||
/* Styl pro tlačítko */
|
||||
#shareButton {
|
||||
background-color: #c5a3e8; /* Zelená barva pozadí */
|
||||
color: #734f96; /* barva textu */
|
||||
border: none; /* Bez okrajů */
|
||||
padding: 15px 32px; /* Vnitřní odsazení */
|
||||
text-align: center; /* Vycentrování textu */
|
||||
text-decoration: none; /* Bez podtržení */
|
||||
display: inline-block; /* Inline-block zobrazení */
|
||||
/* font-size: 16px; /* Velikost písma */ */
|
||||
margin: 4px 2px; /* Vnější odsazení */
|
||||
cursor: pointer; /* Kurzor ukazuje, že je to tlačítko */
|
||||
border-radius: 12px; /* Zaoblené rohy */
|
||||
transition: background-color 0.3s ease; /* Plynulá změna barvy pozadí */
|
||||
}
|
||||
|
||||
/* Styl pro tlačítko při najetí myší */
|
||||
#shareButton:hover {
|
||||
background-color: #45a049; /* Tmavší odstín zelené při najetí myší */
|
||||
}
|
||||
</style>
|
||||
3
assets/returnbutton.php
Normal file
3
assets/returnbutton.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<button onclick="scrollToTop()" id="scrollToTopBtn" title="Go to top">
|
||||
<i class="fas fa-arrow-up"></i>
|
||||
</button>
|
||||
60
assets/script.js
Normal file
60
assets/script.js
Normal file
@@ -0,0 +1,60 @@
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
// Tlačítko sdílet
|
||||
document.getElementById('shareButton').addEventListener('click', function() {
|
||||
if (navigator.share) {
|
||||
navigator.share({
|
||||
title: 'Sdílej tuto stránku',
|
||||
text: 'Toto je text, který se zobrazí při sdílení.',
|
||||
url: window.location.href
|
||||
})
|
||||
.then(() => console.log('Sdílení úspěšné'))
|
||||
.catch((error) => console.log('Chyba při sdílení', error));
|
||||
} else {
|
||||
// Zkopírovat pouze adresu URL do schránky
|
||||
const url = window.location.href;
|
||||
|
||||
navigator.clipboard.writeText(url)
|
||||
.then(() => {
|
||||
alert('Adresa URL byla zkopírována do schránky. Nyní ji můžete vložit a sdílet.');
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Chyba při kopírování do schránky:', error);
|
||||
});
|
||||
}
|
||||
});
|
||||
247
assets/style.css
Normal file
247
assets/style.css
Normal file
@@ -0,0 +1,247 @@
|
||||
* {
|
||||
margin: 0;
|
||||
|
||||
padding: 0;
|
||||
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
background-color: #2a2828;
|
||||
}
|
||||
p {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* 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;*/
|
||||
}
|
||||
|
||||
hr {
|
||||
color: #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;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #734f96;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #734f96;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
|
||||
h3 {
|
||||
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 {
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/*Code Box*/
|
||||
.code-box {
|
||||
position: relative;
|
||||
width: 600px;
|
||||
height: auto;
|
||||
border: 1px solid #734f96;
|
||||
padding: 5px;
|
||||
overflow: auto;
|
||||
background-color: #734f96;
|
||||
color: black;
|
||||
margin: auto;
|
||||
text-align: left;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
|
||||
/* 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;
|
||||
}
|
||||
.code-box {
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
color {
|
||||
color:#c5a3e8
|
||||
}
|
||||
285
assets/wiki.css
Normal file
285
assets/wiki.css
Normal file
@@ -0,0 +1,285 @@
|
||||
/* 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;
|
||||
}
|
||||
|
||||
h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* What We Do */
|
||||
|
||||
.what-section {
|
||||
background-color: var(--background-one);
|
||||
color: var(--word-white);
|
||||
}
|
||||
|
||||
.what-section-wrapper {
|
||||
width: 65%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.what-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.h2-what-we {
|
||||
font-size: 38px;
|
||||
text-align: center;
|
||||
padding-top: 45px;
|
||||
padding-bottom: 35px;
|
||||
}
|
||||
|
||||
.where-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.icon-what-section {
|
||||
margin-top: 45px;
|
||||
padding: 45px;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.img-icons {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.icon-text {
|
||||
text-align: center;
|
||||
padding-top: 15px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.what-section-wrapper {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.icon-what-section {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.img-icons {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.icon-text {
|
||||
padding-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reviews section */
|
||||
|
||||
.reviews-section {
|
||||
width: 45%;
|
||||
margin: 0 auto;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.h2-reviews {
|
||||
text-align: center;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.reviews-text {
|
||||
width: 132px;
|
||||
height: 59px;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.reviews-card-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
gap: 300px;
|
||||
}
|
||||
|
||||
.reviews-card {
|
||||
width: 378.49px;
|
||||
height: 346px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.reviews-card-1 {
|
||||
width: 378.49px;
|
||||
height: 346px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.reviews-card-2 {
|
||||
width: 378.49px;
|
||||
height: 346px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.reviews-card img {
|
||||
width: 122.13px;
|
||||
height: 111px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.reviews-card-1 img {
|
||||
width: 122.13px;
|
||||
height: 111px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.reviews-card-2 img {
|
||||
width: 122.13px;
|
||||
height: 111px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.reviews-card-text {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.reviews-name {
|
||||
font-weight: 700;
|
||||
padding-top: 50px;
|
||||
height: 19px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.reviews-section {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.reviews-card-wrapper {
|
||||
flex-direction: column;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
gap: 95px;
|
||||
}
|
||||
|
||||
.reviews-card {
|
||||
width: 324px;
|
||||
}
|
||||
|
||||
.reviews-card-1 {
|
||||
width: 324px;
|
||||
}
|
||||
|
||||
.reviews-card-2 {
|
||||
width: 324px;
|
||||
}
|
||||
|
||||
.reviews-text {
|
||||
width: 263px;
|
||||
}
|
||||
|
||||
.h2-reviews {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.reviews-name {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 30%;
|
||||
}
|
||||
Reference in New Issue
Block a user