detail page port

This commit is contained in:
nicwands
2026-05-29 11:22:56 -04:00
parent b85d28c142
commit e22d75c50a
65 changed files with 7006 additions and 4044 deletions

View File

@@ -0,0 +1,27 @@
<template>
<img
class="prismic-image"
:alt="alt"
:width="width"
:height="height"
:src="src"
/>
</template>
<script setup>
import { computed } from 'vue'
const props = defineProps({
field: {
type: [String, Object],
required: true,
},
})
const src = computed(() =>
typeof props.field == 'string' ? props.field : props.field?.url,
)
const width = computed(() => props.field?.width || '')
const height = computed(() => props.field?.height || '')
const alt = computed(() => props.field?.alt || '')
</script>