unboundedpress/portfolio-nuxt/layouts/default.vue

33 lines
1.5 KiB
Vue
Raw Normal View History

2023-06-06 19:51:48 +02:00
<template>
<div class="font-thin sticky top-0 bg-white p-2 z-20">
2023-06-12 18:00:37 +02:00
<div class="text-5xl p-2"> <NuxtLink to='/'>michael winter</NuxtLink></div>
2023-06-14 19:35:23 +02:00
<div class="inline-flex text-2xl">
<NuxtLink class="px-8" to='/'>works</NuxtLink>
<NuxtLink class="px-8" to='/events'>events</NuxtLink>
<NuxtLink class="px-8" to='/about'>about</NuxtLink>
<NuxtLink class="px-8" to='https://unboundedpress.org/code'>code</NuxtLink>
2023-06-08 00:30:48 +02:00
</div>
2023-06-06 19:51:48 +02:00
</div>
2023-06-08 00:30:48 +02:00
<slot /> <!-- required here only -->
<div class="sticky bottom-0 bg-white p-2 flex justify-center z-20">
<iframe width="400rem" height="20" scrolling="no" frameborder="no" allow="autoplay"
2023-06-10 01:24:44 +02:00
:src="'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' + audioPlayerStore.soundcloud_trackid + '&inverse=false&auto_play=true&show_user=false'"></iframe>
</div>
2023-06-12 18:00:37 +02:00
<Modal v-model="modalStore.isOpen">
<ModalBody :class="modalStore.aspect">
<ImageSlider v-if="modalStore.type === 'image'" :bucket="modalStore.bucket" :gallery="modalStore.gallery"></ImageSlider>
<iframe v-if="modalStore.type === 'video'" :src="'https://player.vimeo.com/video/' + modalStore.vimeo_trackid" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
2023-06-12 18:00:37 +02:00
</ModalBody>
</Modal>
2023-06-06 19:51:48 +02:00
</template>
<script setup>
import { useAudioPlayerStore } from "@/stores/AudioPlayerStore"
2023-06-12 18:00:37 +02:00
import { useModalStore } from "@/stores/ModalStore"
const audioPlayerStore = useAudioPlayerStore()
2023-06-12 18:00:37 +02:00
const modalStore = useModalStore()
</script>