diff --git a/bambus.jpg b/assets/bambus.jpg similarity index 100% rename from bambus.jpg rename to assets/bambus.jpg diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000..6e8fbc6 Binary files /dev/null and b/assets/favicon.png differ diff --git a/assets/script.js b/assets/script.js new file mode 100644 index 0000000..e69de29 diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..a1c461b --- /dev/null +++ b/assets/style.css @@ -0,0 +1,110 @@ +body, html { + margin: 0; + padding: 0; + font-family: Arial, sans-serif; + display: flex; + flex-direction: column; + min-height: 100vh; + align-items: center; + background-color: #b9b9b9; +} + +header #top { + background-image: url(/assets/bambus.jpg); + color: #fff; + text-shadow: #363636 5px 4px; + padding: 20px; + text-align: center; +} + +header nav { + display: flex; + align-items: center; + flex-grow: 1; + background-color: #444444b7; + padding: 10px; + text-align: center; +} + +header nav > * { + display: flex; + align-items: center; + flex-direction: row; + list-style: none; + padding: 0; + justify-content: center; + width: 100%; + color: #dfd07a; + text-decoration: none; + margin: 0 10px; +} + +nav a:hover { + color: rgb(189, 189, 42); +} + +.dropdown { + position: relative; + display: inline-block; +} + +.dropdown-content { + display: none; + position: absolute; + background-color: #585a59; + min-width: 100px; + z-index: 1; +} + +.dropdown:hover .dropdown-content { + display: block; +} + +.dropdown-content a { + color: #fff; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.dropdown-content a:hover { + background-color: #363636; +} + +section { + padding: 20px; +} + +footer { + background-color: #333333c7; + color: #fff; + text-align: center; + padding: 10px 0; + position: fixed; + width: 100%; + bottom: 0; +} + +footer, header { + text-align: center; + padding: 10px 0; + display: flex; + align-items: center; + width: 100%; +} + +footer > * { + display: inline; + flex: 1; +} + +main { + display: flex; + flex-grow: 1; + align-items: center; + flex-direction: column; +} + +h1, h2, h3, h4, h5, h6 { + text-align: center; +} \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..ce544dc --- /dev/null +++ b/index.php @@ -0,0 +1,37 @@ +"; +if (!file_exists($cesta_k_skriptu)){ + $script_obsah = ''; +} +$out = str_replace('__TEMPLATE_SCRIPT__', $script_obsah, $out); + +$cesta_k_stylu = "styly/$nazov_stranky.css"; +$style_obsah = ""; +if (!file_exists($cesta_k_stylu)){ + $style_obsah = ''; +} +$out = str_replace('__TEMPLATE_STYLE__', $style_obsah, $out); + +echo $out; +?> \ No newline at end of file diff --git a/old/bambus.jpg b/old/bambus.jpg new file mode 100644 index 0000000..7d8f75a --- /dev/null +++ b/old/bambus.jpg @@ -0,0 +1 @@ +$R�0���h�v��>-��h�$�Z)ݣ 6�]4�}6ӎ��M��Mt�m5�N��m8�N��1�$R#�� �j�Qoz��Pj�����o�PM���ג�J��f��ԯ���4�1K����aDC6O���m;��~-�'N� \ No newline at end of file diff --git a/index.html b/old/index.html similarity index 90% rename from index.html rename to old/index.html index 9baaaa1..d47bc7e 100644 --- a/index.html +++ b/old/index.html @@ -2,7 +2,7 @@ Bambusové ponožky - +