Added images and and made a page to display images
|
|
@ -131,6 +131,39 @@ background: linear-gradient(0deg, rgba(9, 38, 38, 1) 0%, rgba(20, 52, 66, 1) 64%
|
|||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.gallery-container {
|
||||
max-width: 1920px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(250px, 1fr));
|
||||
gap: 15px;
|
||||
padding: 20px;
|
||||
grid-template-rows: 300px;
|
||||
|
||||
@media screen and (min-width: 1440px) {
|
||||
grid-template-columns: repeat(4, minmax(250px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
height: 300px;
|
||||
width: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
p {
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
|
|
|||
21
images.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="gallery-container">
|
||||
<?php
|
||||
$dir = 'img/';
|
||||
$images = glob($dir . "*.{jpg,jpeg,png,gif,webp,svg}", GLOB_BRACE);
|
||||
foreach ($images as $image) {
|
||||
echo '<div class="gallery-item">';
|
||||
echo '<img src="' . $image . '" alt="Photo">';
|
||||
echo '<p>' . $image . '</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
img/1.webp
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
img/10.gif
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
img/11.gif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
img/12.webp
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
img/13.gif
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
img/14.gif
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
img/15.gif
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
img/16.gif
Normal file
|
After Width: | Height: | Size: 578 KiB |
BIN
img/17.gif
Normal file
|
After Width: | Height: | Size: 6 MiB |
BIN
img/18.gif
Normal file
|
After Width: | Height: | Size: 259 KiB |
BIN
img/19.gif
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
img/2.gif
Normal file
|
After Width: | Height: | Size: 180 KiB |
BIN
img/20.gif
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
img/21.webp
Normal file
|
After Width: | Height: | Size: 301 KiB |
BIN
img/22.gif
Normal file
|
After Width: | Height: | Size: 175 KiB |
BIN
img/23.webp
Normal file
|
After Width: | Height: | Size: 172 KiB |
BIN
img/24.gif
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
img/25.gif
Normal file
|
After Width: | Height: | Size: 359 KiB |
BIN
img/26.gif
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
img/27.gif
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
img/28.gif
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
img/29.gif
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
img/3.gif
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
img/30.webp
Normal file
|
After Width: | Height: | Size: 437 KiB |
BIN
img/31.gif
Normal file
|
After Width: | Height: | Size: 4 KiB |
BIN
img/32.webp
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
img/33.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
img/34.webp
Normal file
|
After Width: | Height: | Size: 611 KiB |
BIN
img/35.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
img/36.gif
Normal file
|
After Width: | Height: | Size: 390 KiB |
BIN
img/37.gif
Normal file
|
After Width: | Height: | Size: 177 KiB |
BIN
img/38.gif
Normal file
|
After Width: | Height: | Size: 178 KiB |
BIN
img/39.gif
Normal file
|
After Width: | Height: | Size: 622 KiB |
BIN
img/4.webp
Normal file
|
After Width: | Height: | Size: 392 KiB |
BIN
img/40.webp
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
img/41.gif
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
img/43.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
img/44.webp
Normal file
|
After Width: | Height: | Size: 420 KiB |
BIN
img/45.webp
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
img/46.webp
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
BIN
img/47.gif
Normal file
|
After Width: | Height: | Size: 7 KiB |
BIN
img/48.gif
Normal file
|
After Width: | Height: | Size: 230 KiB |
BIN
img/49.gif
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
img/5.gif
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
img/50.webp
Normal file
|
After Width: | Height: | Size: 444 KiB |
BIN
img/51.gif
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
img/52.gif
Normal file
|
After Width: | Height: | Size: 3.5 MiB |
BIN
img/53.gif
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
img/54.gif
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
img/55.gif
Normal file
|
After Width: | Height: | Size: 213 KiB |
BIN
img/6.webp
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/7.gif
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
img/8.webp
Normal file
|
After Width: | Height: | Size: 742 KiB |
BIN
img/9.gif
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
<?php
|
||||
$dir = 'pages/*.php';
|
||||
<?php
|
||||
$dir = 'pages/*.html';
|
||||
$files = glob($dir);
|
||||
|
||||
if(empty($files)) {
|
||||
|
|
@ -10,5 +10,5 @@
|
|||
$randomPage = $files[array_rand($files)];
|
||||
|
||||
echo file_get_contents($randomPage);
|
||||
?>
|
||||
?>
|
||||
|
||||
18
pages/2.php
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>Hej från 2.php</div>
|
||||
</main>
|
||||
<footer>
|
||||
<a href="/info.php">Vad är detta för nåt?</a>
|
||||
<div class="footer-text">
|
||||
vBytes | vbytes.se
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
18
pages/3.php
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>Hej från 3.php</div>
|
||||
</main>
|
||||
<footer>
|
||||
<a href="/info.php">Vad är detta för nåt?</a>
|
||||
<div class="footer-text">
|
||||
vBytes | vbytes.se
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
18
pages/4.php
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>Hej från 4.php</div>
|
||||
</main>
|
||||
<footer>
|
||||
<a href="/info.php">Vad är detta för nåt?</a>
|
||||
<div class="footer-text">
|
||||
vBytes | vbytes.se
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
18
pages/5.php
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>Hej från 5.php</div>
|
||||
</main>
|
||||
<footer>
|
||||
<a href="/info.php">Vad är detta för nåt?</a>
|
||||
<div class="footer-text">
|
||||
vBytes | vbytes.se
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
18
pages/6.php
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="sv">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>Hej från 6.php</div>
|
||||
</main>
|
||||
<footer>
|
||||
<a href="/info.php">Vad är detta för nåt?</a>
|
||||
<div class="footer-text">
|
||||
vBytes | vbytes.se
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||