cleaning up
This commit is contained in:
@@ -67,11 +67,7 @@ const getImageLink = async (record: any) => {
|
|||||||
(window as any).dec = dec;
|
(window as any).dec = dec;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<!-- Hidden element to pass server data to client -->
|
||||||
<!-- Hidden element to pass server data to client -->
|
|
||||||
<div class="hidden" id="carousel-data">{JSON.stringify(photos)}</div>
|
<div class="hidden" id="carousel-data">{JSON.stringify(photos)}</div>
|
||||||
|
|
||||||
<div class="flex flex-col max-h-10/12 self-center">
|
|
||||||
<img id="carousel-img" class="rounded-lg w-full h-full object-cover" src={ pb.files.getURL(photos[0], photos[0].image) } />
|
<img id="carousel-img" class="rounded-lg w-full h-full object-cover" src={ pb.files.getURL(photos[0], photos[0].image) } />
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,10 +1,7 @@
|
|||||||
---
|
---
|
||||||
import Base from "src/layout/Base.astro"
|
import Base from "src/layout/Base.astro"
|
||||||
import Carousel from "@components/photos/carousel"
|
import Carousel from "@components/photos/carousel"
|
||||||
import Sidebar from "src/components/sidebar.astro"
|
|
||||||
import { authPB } from 'src/utils/pocketbase'
|
import { authPB } from 'src/utils/pocketbase'
|
||||||
import type { RecordModel } from 'pocketbase'
|
|
||||||
|
|
||||||
|
|
||||||
const pb = await authPB()
|
const pb = await authPB()
|
||||||
const photos = await pb.collection('photos').getFullList({
|
const photos = await pb.collection('photos').getFullList({
|
||||||
@@ -27,7 +24,7 @@ const photos = await pb.collection('photos').getFullList({
|
|||||||
<p class="text-left">Chuck me an email if you'd like a print of these, I'll see what I can do</p> -->
|
<p class="text-left">Chuck me an email if you'd like a print of these, I'll see what I can do</p> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div slot="content">
|
<div slot="content" class="">
|
||||||
<Carousel/>
|
<Carousel/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user