Merge pull request #16 from DenverCoder1/new-wallpaper

This commit is contained in:
Jonah Lawrence 2022-01-10 12:22:34 -07:00 committed by GitHub
commit f924c382f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

View File

@ -99,6 +99,7 @@ if (isset($_GET['random'])) {
.gallery img {
width: 100%;
height: 100%;
min-height: 122px;
border-radius: 8px;
display: flex;
align-items: center;
@ -111,6 +112,14 @@ if (isset($_GET['random'])) {
.gallery img:hover {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.glightbox-clean .gslide-description {
background: #1d1d1d
}
div.gslide-desc {
color: #fff;
}
</style>
</head>
@ -146,8 +155,9 @@ if (isset($_GET['random'])) {
<div class="gallery">
<?php foreach ($images as $image) : ?>
<a href="<?= $image; ?>" class="glightbox">
<img src="<?= $imgproxy_prefix . basename($image); ?>" loading="lazy" alt="<?php echo basename($image); ?>" title="<?php echo basename($image); ?>">
<?php $dimensions = getimagesize($image); ?>
<a href="<?= $image; ?>" class="glightbox" data-description="<?= basename($image); ?> • <?= $dimensions[0] . 'x' . $dimensions[1]; ?>">
<img src="<?= $imgproxy_prefix . basename($image); ?>" loading="lazy" alt="<?= basename($image); ?>" title="<?= basename($image); ?>">
</a>
<?php endforeach; ?>
</div>