diff --git a/src/components/Card.astro b/src/components/Card.astro
index bd6d597..ad4929f 100644
--- a/src/components/Card.astro
+++ b/src/components/Card.astro
@@ -1,61 +1,30 @@
---
-interface Props {
- title: string;
- body: string;
- href: string;
+import pb from "../lib/pb";
+
+const { href, title, body, image } = Astro.props;
+let imageURL;
+
+if (image) {
+ imageURL = pb.files.getUrl(image, image.file);
}
-
-const { href, title, body } = Astro.props;
---
-
-
-
- {title}
- →
-
-
- {body}
-
-
-
-
+
diff --git a/src/components/Image.astro b/src/components/Image.astro
index 30f3f29..a36a4ef 100644
--- a/src/components/Image.astro
+++ b/src/components/Image.astro
@@ -1,14 +1,50 @@
---
-import { Image as AstroImage } from "astro:assets";
-const { src, alt } = Astro.props;
+import { Picture as AstroPic } from "astro:assets";
+const { src, alt, nsfw } = Astro.props;
---
-
+
+
+

+ {
+ alt && (
+
+ {alt}
+
+ )
+ }
+
+
+
+
+
+
diff --git a/src/components/IndexSidebar.astro b/src/components/IndexSidebar.astro
new file mode 100644
index 0000000..dbcbd8c
--- /dev/null
+++ b/src/components/IndexSidebar.astro
@@ -0,0 +1,78 @@
+---
+import { Image } from "astro:assets";
+import config from "../../config.yaml";
+import SocialCard from "./SocialCard.astro";
+const {} = Astro.props;
+---
+
+
diff --git a/src/components/Lightbox.astro b/src/components/Lightbox.astro
new file mode 100644
index 0000000..c4cecd4
--- /dev/null
+++ b/src/components/Lightbox.astro
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro
index 1659a20..fdf4cd1 100644
--- a/src/components/Sidebar.astro
+++ b/src/components/Sidebar.astro
@@ -1,24 +1,63 @@
---
import { Image } from "astro:assets";
-import config from "../../config.json";
-
-const {class} = Astro.props
+import config from "../../config.yaml";
+const {} = Astro.props;
---
+
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Gallery.astro
similarity index 73%
rename from src/layouts/Layout.astro
rename to src/layouts/Gallery.astro
index 0904e97..f740aaf 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Gallery.astro
@@ -1,5 +1,6 @@
---
-import config from "../../config.json";
+import config from "../../config.yaml";
+import Lightbox from "../components/Lightbox.astro";
import Sidebar from "../components/Sidebar.astro";
const { title, background } = config;
@@ -16,22 +17,27 @@ const { title, background } = config;
{title}
+
+
+
+