From 2c36eb05bcbe5c4cab7aab62af7cd59499111631 Mon Sep 17 00:00:00 2001 From: Uncledaviss Date: Thu, 16 May 2024 09:08:13 +0200 Subject: [PATCH] =?UTF-8?q?Co-authored-by:=20Bruno=20Ryb=C3=A1rsky=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/global.css | 249 ++++++++++++++++++++++++++++++ global/global.js | 8 + stranky/index.html | 54 ++++++- stranky/jarilo.html | 0 stranky/{test.html => perun.html} | 0 stranky/svarog.html | 0 stranky/veles.html | 0 templates/footer.html | 2 +- templates/header.html | 44 +++++- templates/skeleton.html | 2 +- 10 files changed, 355 insertions(+), 4 deletions(-) create mode 100644 stranky/jarilo.html rename stranky/{test.html => perun.html} (100%) create mode 100644 stranky/svarog.html create mode 100644 stranky/veles.html diff --git a/global/global.css b/global/global.css index e69de29..8ba3740 100644 --- a/global/global.css +++ b/global/global.css @@ -0,0 +1,249 @@ +body{ + min-width: 100%; + margin: 0; +} +.wrapper { + display: flex; + flex-flow: row wrap; + font-weight: bold; + text-align: center; + background-color: #333333; +} + +.wrapper > * { + /*padding: 10px;*/ + flex: 1 100%; +} + +.container{ + /* We first create a flex layout context */ + display: flex; + + /* Then we define the flow direction + and if we allow the items to wrap + * Remember this is the same as: + * flex-direction: row; + * flex-wrap: wrap; + */ + flex-flow: row wrap; + /* Then we define how is distributed the remaining space */ + justify-content: space-around; + margin-right: auto; + margin-left: auto; + min-height: auto; + max-width: 1200px; + min-width: auto; +} + +.container_menu{ + /* We first create a flex layout context */ + display: flex; + + /* Then we define the flow direction + and if we allow the items to wrap + * Remember this is the same as: + * flex-direction: row; + * flex-wrap: wrap; + */ + flex-flow: row wrap; + /* Then we define how is distributed the remaining space */ + justify-content: left; + margin-right: auto; + margin-left: auto; + min-height: auto; + max-width: 1200px; + min-width: auto; +} + +/******* header *******/ +header{ + background-color: #151b54; +} + +#header .flex-item { + padding: 5px; + margin: 5px; + width: auto; + height: 30px; + line-height: 30px; + color: white; + font-weight: bold; + font-size: 1em; + text-align: center; +} + + +#header p{ + margin: 0; + padding: 0; +} + +/* navigation */ +/* Add a black background color to the top navigation */ +nav{ + background-color: #333; +} +.topnav { + background-color: #333; + overflow: hidden; +} + +/* Style the links inside the navigation bar */ +.topnav a { + color: #f2f2f2; + text-align: center; + padding: 14px 16px; + text-decoration: none; + font-size: 17px; +} + +/* Add an active class to highlight the current page */ +.active { + background-color: #000080; + color: white; +} + +/* Hide the link that should open and close the topnav on small screens */ +.topnav .icon { + display: none; +} + +/* Dropdown container - needed to position the dropdown content */ +.dropdown { + float: left; + overflow: hidden; +} + +/* Style the dropdown button to fit inside the topnav */ +.dropdown .dropbtn { + font-size: 17px; + border: none; + outline: none; + color: white; + padding: 14px 16px; + background-color: inherit; + font-family: inherit; + margin: 0; +} + +/* Style the dropdown content (hidden by default) */ +.dropdown-content { + display: none; + position: absolute; + background-color: #f9f9f9; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 1; +} + +/* Style the links inside the dropdown */ +.dropdown-content a { + float: none; + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; + text-align: left; +} + +/* Add a dark background on topnav links and the dropdown button on hover */ +.topnav a:hover, .dropdown:hover .dropbtn { + background-color: #555; + color: white; +} + +/* Add a grey background to dropdown links on hover */ +.dropdown-content a:hover { + background-color: #ddd; + color: black; +} + +/* Show the dropdown menu when the user moves the mouse over the dropdown button */ +.dropdown:hover .dropdown-content { + display: block; +} + +main +{ + background-color: #eeeeee; +} + + +/* Medium screens */ +@media all and (max-width: 600px) { + /******* header *******/ + #header { + /* When on medium sized screens, we center it by evenly distributing empty space around items */ + flex-flow: column wrap; + } + + #header .flex-item{ + padding: 2px; + margin: 2px; + line-height: 25px; + height: 25px; + margin-left: 0 !important; + } + + /******* navigation *******/ + + +} + + +/* Small screens */ +@media all and (max-width: 500px) { + /******* header *******/ + #header { + /* On small screens, we are no longer using row direction but column */ + flex-flow: column wrap; + } + #header .flex-item{ + padding: 2px; + margin: 2px; + line-height: 25px; + height: 25px; + color: black; + } + + /******* navigation *******/ + /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */ + .topnav a:not(:first-child), .dropdown .dropbtn { + display: none; + } + .topnav a.icon { + float: right; + display: block; + } + + .container_menu{ + display: flex; + flex-flow: row; + } + + /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ + .topnav.responsive {position: relative;} + .topnav.responsive a.icon { + position: absolute; + right: 0; + top: 0; + } + .topnav.responsive a { + float: none; + display: block; + text-align: left; + } + .topnav.responsive .dropdown {float: none;} + .topnav.responsive .dropdown-content {position: relative;} + .topnav.responsive .dropdown .dropbtn { + display: block; + width: 100%; + text-align: left; + } + + .responsive{ + display: flex; + flex-flow: column; + } + +} \ No newline at end of file diff --git a/global/global.js b/global/global.js index e69de29..9b237d1 100644 --- a/global/global.js +++ b/global/global.js @@ -0,0 +1,8 @@ +function myFunction() { + var x = document.getElementById("myTopnav"); + if (x.className === "topnav container_menu") { + x.className += " responsive"; + } else { + x.className = "topnav container_menu"; + } +} \ No newline at end of file diff --git a/stranky/index.html b/stranky/index.html index 148690a..0d8d636 100644 --- a/stranky/index.html +++ b/stranky/index.html @@ -1 +1,53 @@ -

jello

\ No newline at end of file +

Úvod

+
+

Slovanská mytológia patrí medzi už skoro zabudnúté mytológie, ale je veľmi fascinujúca.

+
+
+

Krajiny v ktorých sa vyznávalo slovanské náboěnstvo. + Aktuálne Rusko, Ukrajina, Bielorusko, Česko, Poľsko, Slovensko, Srbsko, Slovinsko, Chorvátsko a aj časti Maďarska. +

+

+
+
+ + + + + + + + + + + + + + +
Slovanskí bohovia a bohyneBohovia a bohyne s iných mytológií
PerúnZeus, Thor
VelesHades, Loki
+ +
+ +
+

white Orbs

+ +
+ +
+

Blue Orbs

+ +
+ +
+

Purple Orbs

+ +
+ +
+

Yellow Orbs

+ +
+ +
+

Gold Orbs

+ +
\ No newline at end of file diff --git a/stranky/jarilo.html b/stranky/jarilo.html new file mode 100644 index 0000000..e69de29 diff --git a/stranky/test.html b/stranky/perun.html similarity index 100% rename from stranky/test.html rename to stranky/perun.html diff --git a/stranky/svarog.html b/stranky/svarog.html new file mode 100644 index 0000000..e69de29 diff --git a/stranky/veles.html b/stranky/veles.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/footer.html b/templates/footer.html index 4ac8c9e..67aaa4a 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1 +1 @@ -

pata

\ No newline at end of file +

Späť nahor

\ No newline at end of file diff --git a/templates/header.html b/templates/header.html index dee2c7b..065ed8c 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1 +1,43 @@ -

hlava

\ No newline at end of file + + diff --git a/templates/skeleton.html b/templates/skeleton.html index acf73bf..f0bdc43 100644 --- a/templates/skeleton.html +++ b/templates/skeleton.html @@ -17,7 +17,7 @@ -
+
__TEMPLATE_HEADER__