diff --git a/css/dark.css b/css/dark.css new file mode 100644 index 0000000..e69de29 diff --git a/css/light.css b/css/light.css new file mode 100644 index 0000000..dd1b8ec --- /dev/null +++ b/css/light.css @@ -0,0 +1,4 @@ + +body { + font-family: Arial, Helvetica, sans-serif; +} diff --git a/header.php b/header.php index 28424b1..ecfaa1f 100644 --- a/header.php +++ b/header.php @@ -4,5 +4,11 @@ <?php echo "$title"; ?> + + diff --git a/images/earth1.webp b/images/earth1.webp new file mode 100644 index 0000000..155e695 Binary files /dev/null and b/images/earth1.webp differ diff --git a/images/earth2.jfif b/images/earth2.jfif new file mode 100644 index 0000000..0151328 Binary files /dev/null and b/images/earth2.jfif differ diff --git a/index.php b/index.php index bee831a..989a366 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,40 @@ - +// zobrazení obrázku podle parametru "img" v URL +if (isset($_GET["img"])) { + if ($_GET["img"] == "1") { + echo "\"\""; + } + elseif ($_GET["img"] == "2") { + echo "\"\""; + } + else { + echo "

Chyba, takový obrázek tu není

"; + } +} +else { + echo "\"\""; +} + +include "footer.php"; +?> \ No newline at end of file diff --git a/paragraph.php b/paragraph.php new file mode 100644 index 0000000..0aaf053 --- /dev/null +++ b/paragraph.php @@ -0,0 +1,3 @@ +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate labore illum possimus consectetur tempora ipsa eos necessitatibus! Dolores eius qui officia ipsam dolorem iure voluptatum voluptas ut. Quas, qui recusandae! +

\ No newline at end of file diff --git a/test.php b/test.php new file mode 100644 index 0000000..347e12e --- /dev/null +++ b/test.php @@ -0,0 +1,8 @@ +

+ výchozí stránka + stránka s odstavcem + stránka s obrázkem 1 + stránka s obrázkem 2 + stránka s chybnou hodnotou obrázku + stránka s červeným textem +