css/style.css

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #e0e0e0;
    color: #222;
}

header {
    background-color: #3a6ee7; 
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    width: 150px;
}

aside ul li a.active {
    font-weight: bold;
    color: #dbff3b;
}

header h1 {
    margin-left: 20px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

aside {
    background-color: #fff;
    color: white;
    padding: 15px;
    width: 212px;
    float: left;
}

main {
    margin-left: 20%;
    padding: 15px;
    background-color: #fff;
    min-height: 400px;
}

footer {
    background-color: #3a6ee7;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    clear: both;
}

footer a {
    color: #ff3b3b;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: aquamarine;
}

nav {
    display: flex;
    gap: 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

nav ul li a:hover {
    color: #ff0000;
}

GALERIA folder a obrazok

aside.php

Galéria
    
        $folder";
            }
        }
        ?>

footer.php

© 2024 KB S.R.O. | [email protected]

header.php

Stránka
    
    
    




    
    Kristian Balaz
    
        
             Domov
             O nás
             Kontakt
             Galéria
        
    





    Enter fullscreen mode
    


    Exit fullscreen mode
    




index.php





    

    
        Galéria: $folder";
                $images = glob("$folder_path/*.{jpg,jpeg,png,gif}", GLOB_BRACE);
                if ($images) { 
                    foreach ($images as $image) {
                        echo "";
                    }
                } else {
                    echo "bez obrazka";
                }
            } else { 
                echo "galeria neexistuje.";
            }
        } else { 
            echo "GalérieVyberte si galériu:";
            $subdirs = glob("$directory/*", GLOB_ONLYDIR);

            if ($subdirs) { 
                foreach ($subdirs as $subdir) {
                    $name = basename($subdir); 
                    echo "$name";
                }
            } else { 
                echo "galeria neexistuje.";
            }
        }
        ?>
    










    Enter fullscreen mode
    


    Exit fullscreen mode
    




logo.png