images page works and adding title

main
mwinter 1 year ago
parent 7b4f8a9b3f
commit d52bf602f5

@ -6,6 +6,12 @@
</div> </div>
</template> </template>
<script setup>
useHead({
titleTemplate: 'Michael Winter'
})
</script>
<style> <style>
.page-enter-active, .page-enter-active,
.page-leave-active { .page-leave-active {

@ -1,6 +1,7 @@
<template> <template>
<div class="flex min-h-full items-center justify-center text-center"> <div class="flex min-h-full items-center justify-center text-center">
<embed :src="'https://unboundedpress.org/api/' + route.params.files + '.files/' + metadata._id.$oid + '/binary'" class="w-[85%] h-[88vh]" /> <embed v-if="route.params.filename.split('.').pop()==='pdf'" :src="'https://unboundedpress.org/api/' + route.params.files + '.files/' + metadata._id.$oid + '/binary'" class="w-[85%] h-[88vh]" />
<nuxt-img v-else-if="route.params.filename.split('.').pop()==='jpg'" :src="'https://unboundedpress.org/api/' + route.params.files + '.files/' + metadata._id.$oid + '/binary'" class="w-[85%]"/>
</div> </div>
</template> </template>

Loading…
Cancel
Save