Created subpages instead of snippets

This commit is contained in:
Anna-Sara Sélea 2026-03-18 20:15:13 +01:00
parent 3f07b49b40
commit 0ed491e6ea
7 changed files with 110 additions and 23 deletions

View file

@ -1,11 +1,4 @@
<!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>
<?php <?php
$dir = 'pages/*.html'; $dir = 'pages/*.html';
$files = glob($dir); $files = glob($dir);
@ -18,12 +11,4 @@
echo file_get_contents($randomPage); echo file_get_contents($randomPage);
?> ?>
</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>

View file

@ -1 +1,18 @@
<div>Hej från 1.html</div> <!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 1.html</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>

View file

@ -1 +1,18 @@
<div>Hej från 2.html</div> <!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.html</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>

View file

@ -1 +1,18 @@
<div>Hej från 3.html</div> <!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.html</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>

View file

@ -1 +1,18 @@
<div>Hej från 4.html</div> <!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.html</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>

View file

@ -1 +1,18 @@
<div>Hej från 5.html</div> <!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.html</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>

View file

@ -1 +1,18 @@
<div>Hej från 6.html</div> <!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.html</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>