diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro
new file mode 100644
index 0000000..e8ea55e
--- /dev/null
+++ b/web/src/components/photos/carousel.astro
@@ -0,0 +1,78 @@
+---
+import { authPB } from "src/utils/pocketbase";
+import type { RecordModel } from 'pocketbase'
+
+// export const prerender = false
+
+const pb = await authPB()
+const photos = await pb.collection('photos').getFullList({
+ sort: '-created'
+})
+
+const getImageLink = async (record: any) => {
+ return pb.files.getURL(record, record.image)
+}
+---
+
+
+
+
+
+
{JSON.stringify(photos)}
+
+
+
+

+
+
+
\ No newline at end of file
diff --git a/web/src/layout/Base.astro b/web/src/layout/Base.astro
index c6da82d..191609b 100644
--- a/web/src/layout/Base.astro
+++ b/web/src/layout/Base.astro
@@ -1,6 +1,7 @@
---
import BaseHead from "./BaseHead.astro"
import Sidebar from "@components/sidebar"
+import Navbar from "@components/index/navbar"
import Footer from "@components/footer"
---
@@ -16,6 +17,13 @@ import Footer from "@components/footer"
+
+
diff --git a/web/src/pages/photos/index.astro b/web/src/pages/photos/index.astro
index 9e5b148..9c044fc 100644
--- a/web/src/pages/photos/index.astro
+++ b/web/src/pages/photos/index.astro
@@ -1,48 +1,33 @@
---
import Base from "src/layout/Base.astro"
+import Carousel from "@components/photos/carousel"
import Sidebar from "src/components/sidebar.astro"
import { authPB } from 'src/utils/pocketbase'
import type { RecordModel } from 'pocketbase'
-export const prerender = false
const pb = await authPB()
const photos = await pb.collection('photos').getFullList({
sort: '-created'
})
-
-const getImageLink = async (record: RecordModel) => {
- const link = await pb.files.getURL(record, record.image)
- return link.substring(21)
-}
---
-
Photography :)
- Chuck me an email if you'd like a print of these, I'll see what I can do
+
{photos[0].title === "" ? "Untitled" : photos[0].title}
+
📸 {photos[0].camera}
+
📌 {photos[0].location}
+
+
+
+
+
+
- {
- photos.map(photo => (
-
-
-
-

-
-
-
{photo.title === "" ? "Untitled" : photo.title}
-
-
-
📌 {photo.location}
-
📷 {photo.camera}
-
-
-
-
- ))
- }
+
\ No newline at end of file