diff --git a/generate/build.tsx b/generate/build.tsx
index 30dda74..6bd26c9 100644
--- a/generate/build.tsx
+++ b/generate/build.tsx
@@ -123,7 +123,7 @@ Object.keys(items).forEach((year) => {
const html = renderToString(
-
+
{Object.keys(items).sort().reverse().map((year) => (
= 48rem) {
- justify-content: space-between;
- }
- }
.md\:gap-2 {
@media (width >= 48rem) {
gap: calc(var(--spacing) * 2);
@@ -824,30 +807,12 @@
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
- .lg\:text-base {
- @media (width >= 64rem) {
- font-size: var(--text-base);
- line-height: var(--tw-leading, var(--text-base--line-height));
- }
- }
- .lg\:text-lg {
- @media (width >= 64rem) {
- font-size: var(--text-lg);
- line-height: var(--tw-leading, var(--text-lg--line-height));
- }
- }
.lg\:text-sm {
@media (width >= 64rem) {
font-size: var(--text-sm);
line-height: var(--tw-leading, var(--text-sm--line-height));
}
}
- .lg\:text-xl {
- @media (width >= 64rem) {
- font-size: var(--text-xl);
- line-height: var(--tw-leading, var(--text-xl--line-height));
- }
- }
.xl\:grid-cols-7 {
@media (width >= 80rem) {
grid-template-columns: repeat(7, minmax(0, 1fr));
diff --git a/generate/static/js/initGalleries.js b/generate/static/js/initGalleries.js
index 5fbaf86..9c4a1f4 100644
--- a/generate/static/js/initGalleries.js
+++ b/generate/static/js/initGalleries.js
@@ -31,6 +31,14 @@ Images.forEach((item) => {
availableTags.push(imTags[i]);
}
}
+ if (item.querySelector("img").height > 0) {
+ item.querySelector("[data-overlay]").classList.remove("invisible");
+ } else {
+ item.querySelector("img").addEventListener("load", () => {
+ item.querySelector("[data-overlay]").classList.remove("invisible");
+ this.removeEventListener("load", this);
+ });
+ }
}
});
diff --git a/generate/templates/Base.tsx b/generate/templates/Base.tsx
index b2bb243..df3344c 100644
--- a/generate/templates/Base.tsx
+++ b/generate/templates/Base.tsx
@@ -65,7 +65,7 @@ export default function Base({ children, isDev }: BaseProps) {
-
+
{children}
diff --git a/generate/templates/YearPhotos.tsx b/generate/templates/YearPhotos.tsx
index 1aff731..45846c2 100644
--- a/generate/templates/YearPhotos.tsx
+++ b/generate/templates/YearPhotos.tsx
@@ -29,7 +29,7 @@ export default function YearPhotos({ year, images }: YearPhotosProps) {
return (
1.05
@@ -38,11 +38,11 @@ export default function YearPhotos({ year, images }: YearPhotosProps) {
}`}
key={`${year}-${image.id}`}
data-slide-name={image.id}
- data-src={image.thumbnail[2048]}
- data-srcset={`${image.thumbnail[512]} 480w, ${image.thumbnail[1024]} 1440w, ${image.thumbnail[2048]} 2001w`}
- data-sizes="(max-width: 1000x) 480px,
- (max-width: 2000px) 1440px,
- 2001px"
+ data-src={image.thumbnail[1024]}
+ data-srcset={`${image.thumbnail[512]} 512w, ${image.thumbnail[1024]} 1024w, ${image.thumbnail[2048]} 2048w`}
+ data-sizes="(max-width: 1281x) 512px,
+ (max-width: 2400px) 1024px,
+ 2048px"
data-download-url={image.image}
data-type="image"
data-tags={image.tags.join(",")}
@@ -61,15 +61,15 @@ export default function YearPhotos({ year, images }: YearPhotosProps) {
>
-
+
{image.width}x{image.height}