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) +} +--- + + + +
+ + + + + + + +
+ \ 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" + +