This commit is contained in:
2025-01-01 23:30:28 +01:00
parent 1106b4d942
commit 82ce2594ac
13 changed files with 444 additions and 2 deletions

13
public/templates/404.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
/**
* @var string $uri
*/
?>
<h1>Not Found</h1>
<p>
Sorry, Nothing could be found at the requested
<?php echo $uri; ?>
path;
</p>

View File

@@ -0,0 +1,18 @@
<?php
/**
* @var Category[] $categories
*/
?>
<div class="gallery-grid">
<?php foreach ($categories as $category): ?>
<a href="./<?php echo $category->name; ?>" class="gallery-item">
<img src="<?php echo $category->thumb ?>" alt="<?php echo $category->name; ?>" loading="lazy">
<h3><?php echo $category->name; ?></h3>
</a>
<?php endforeach; ?>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* @var string $category
* @var Image[] $images
*/
?>
<header>
<a href="./">Back</a>
<span>|</span>
<h1>Category: <?php echo $category; ?></h1>
</header>
<div class="gallery-grid">
<?php foreach ($images as $image): ?>
<a href="<?php echo $image->uri; ?>" target="_blank" class="gallery-item">
<img src="<?php echo $image->thumb; ?>" alt="<?php echo $image->name; ?>" loading="lazy">
<h3>
<?php echo $image->name; ?>
<small>[<?php echo $image->width; ?>x<?php echo $image->height; ?>]</small>
</h3>
</a>
<?php endforeach; ?>
</div>

View File

@@ -0,0 +1,18 @@
<footer>
<p>
By <a href="<?php echo $config['author_link']; ?>" target="_blank" rel="noreferrer noopener"><?php echo $config['author_text']; ?></a>
</p>
<p>|</p>
<p>
Images are licensed as
<a href="<?php echo $config['license_link']; ?>" target="_blank" rel="noreferrer noopener"><?php echo $config['license_text']; ?></a>
</p>
<p>|</p>
<p>
<a href="https://github.com/ssddanbrown/gallery" target="_blank" rel="noreferrer noopener">Gallery Source Code</a>
</p>
</footer>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<base href="<?php echo $config['base_url']; ?>">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo $config['title']; ?></title>
<link rel="stylesheet" href="styles.css">
</head>
<body>